[Solved] applesmc default as active joystick

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Rxke
Retired Assassin
Retired Assassin
Posts: 1760
Joined: Thu Aug 12, 2004 4:54 pm
Location: Belgium

[Solved] applesmc default as active joystick

Post by Rxke »

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?)
Last edited by Getafix on Mon Sep 14, 2015 7:46 am, edited 1 time in total.
Reason: Marked as "Solved"
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: applesmc default as active joystick

Post by cim »

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.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: applesmc default as active joystick

Post by Lone_Wolf »

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 .
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Rxke
Retired Assassin
Retired Assassin
Posts: 1760
Joined: Thu Aug 12, 2004 4:54 pm
Location: Belgium

Re: applesmc default as active joystick

Post by Rxke »

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.
Post Reply