Page 1 of 1
Does Oolite ignore calibration in jstest-gtk and if so how to set joystick centre? (solved)
Posted: Sun Jun 29, 2025 8:31 am
by mcarans
According to
https://wiki.alioth.net/index.php/Joyst ... ms_(Linux), "Prior to Oolite v1.80, deadzone and responsiveness issues in Oolite Linux could only be solved by making use of the jscal, jstest and jstest-gtk utilities, but Oolite now has built-in joystick configuration and tuning software, which can solve these problems. A tutorial on how to set up and tune your joystick can be found here. "
Does this mean Oolite > 1.80 ignores calibration in jstest-gtk?
If so, then how do I calibrate a drifting joystick's centre point to be correct?
Re: Does Oolite ignore calibration in jstest-gtk and if so how to set joystick centre?
Posted: Mon Jun 30, 2025 8:38 am
by mcarans
I found the answer in the wiki!
https://wiki.alioth.net/index.php/Joyst ... ms_(Linux) says:
"Button Detection & Axis Range Problems
For unknown reasons, it appears that sometimes SDL (Simple DirectMedia Layer) takes raw input from the evdev device drivers, instead of using the correct joystick device. By adding the appropriate environment variable to either the /etc/environment file, or the .bashrc startup script, you can force SDL to use the "real" joystick driver for input.
Officially speaking, /etc/environment is the correct place for system-wide environment variables. To add the environment variable to the /etc/environment file, as root, open /etc/environment in your text editor, add the following (on a new line) to the file, and save:
SDL_JOYSTICK_DEVICE="/dev/input/js0"
For the change to 'take', you then need to log out and back in again. Rebooting is unnecessary."
After doing that, calibrating in jstest-gtk worked.
Re: Does Oolite ignore calibration in jstest-gtk and if so how to set joystick centre?
Posted: Mon Jun 30, 2025 9:16 am
by Cholmondely
Would this work for the AppleMac too?
I've two problems.
i) Thrustmaster TFlight Hotas 4 needs a complicated button-press ritual to work fully with the AppleMac. But when Murgh tried it on his AppleMac, it would not work.
ii) Can't get my CH Pro Throttle to be recognised when my CH joysick is plugged in.
Would this help with either?
Re: Does Oolite ignore calibration in jstest-gtk and if so how to set joystick centre?
Posted: Mon Jun 30, 2025 10:38 pm
by mcarans
Cholmondely wrote: ↑Mon Jun 30, 2025 9:16 am
Would this work for the AppleMac too?
I've two problems.
i) Thrustmaster TFlight Hotas 4 needs a complicated button-press ritual to work fully with the AppleMac. But when Murgh tried it on his AppleMac, it would not work.
ii) Can't get my CH Pro Throttle to be recognised when my CH joysick is plugged in.
Would this help with either?
I am not familiar with Mac, but I suspect that it wouldn't help. Nevertheless, it is an easy change to try as it just involves setting an environment variable.