[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: 1743
Joined: Thu Aug 12, 2004 4:54 pm
Location: Belgium

[Solved] applesmc default as active joystick

Post by Rxke » Fri Sep 11, 2015 4:44 pm

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: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: applesmc default as active joystick

Post by cim » Fri Sep 11, 2015 5:38 pm

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: 545
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: applesmc default as active joystick

Post by Lone_Wolf » Fri Sep 11, 2015 8:54 pm

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

I am subscribed to the threads for my oxps, if you need my attention just post in them or send a pm.

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

Re: applesmc default as active joystick

Post by Rxke » Sat Sep 12, 2015 4:47 am

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