Oolite Bulletins
http://bb.aegidian.org/

[Solved] applesmc default as active joystick
http://bb.aegidian.org/viewtopic.php?f=9&t=17724
Page 1 of 1

Author:  Rxke [ Fri Sep 11, 2015 4:44 pm ]
Post subject:  [Solved] applesmc default as active joystick

Very entertaining bug (or feature!)

I just installed Oolite 1.82 in Debian Testing, and it's pretty dang totally amazing (I had a hiatus since somewhere around 1.76, I think)

But... My ship seemed to have a mind of its own... It went everywhere, couldn't fly in a straight line.

Turns out my laptop (Oldish core2duo MacBook) 'sees' the accelerometers (applesmc) as joystick input by default!

I can fly it by tilting the laptop, very cool, amazingly geeky... for about two minutes, then the gorilla arm syndrome kicks in. 't aint no no fancy airbook :mrgreen:

So... How do I fix this?

...

(EDIT: Hmmm this should go in testing and bugreports?)

Author:  cim [ Fri Sep 11, 2015 5:38 pm ]
Post subject:  Re: applesmc default as active joystick

There's probably a way to stop them registering as joysticks at all, but I've no idea what. You should be able to use the Oolite in-game joystick config to unbind them from the axes - or failing that at least set a deadzone large enough that you don't turn unless you really tilt the laptop hard.

Author:  Lone_Wolf [ Fri Sep 11, 2015 8:54 pm ]
Post subject:  Re: applesmc default as active joystick

Rxke,

search for a file with *joystick.conf as name (50-joystick.conf is the most common name, and it's likely in /etc/X11/xorg.conf.d or /usr/share/X11/xorg.conf.d ).

If it's not present on your system, try installing a package called xf86-input-joystick (no idea how debian calls it) .

------------------------
X nowadays mostly uses evdev for input support, and the package xf86-input-joystick is evdev-aware.
By tweaking 50-joystick.conf you can change many settings .

example : by default X sends joystick events not only to the (virtual) joystick input device, but also to mouse and keyboard input devices.
I disabled that behaviour by tweaking 50-joystick.conf .

Author:  Rxke [ Sat Sep 12, 2015 4:47 am ]
Post subject:  Re: applesmc default as active joystick

cim's suggestion of increasing the dead zone did the trick, now I can still use it if I tilt the laptop more than 45-ish degrees.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/