dustint83's solution works indeed, but it means loosing input hotplug support when adding :
Code:
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
If these lines are enough and don't break anything on your setup, then it's ok for you to use them.
However,
Code:
Section "InputDevice"
Identifier "Configured Joystick"
Driver "joystick"
Option "Device" "/dev/input/event5"
EndSection
isn't necessary for many joysticks (I tried 5 of them before starting the thread), and can cause problems (i.e. some users reported the
Code:
Option "AutoAddDevices" "False"
didn't work for them, but it ended up they added the Section "InputDevice" too, and that was the cause of their problem. I'm not on their setup to check, but
Code:
Option "Device" "/dev/input/event5"
isn't a great way to keep things working, since the joystick won't always be on event5, it can be on different event# depending on what is plugged in your system. That means the user will have to adjust manually xorg.conf each time the joystick won't be on event5, which isn't something I'd advise users to do.
You could point to /dev/input/js0 (just chack your joystick appears as js0 but that's the case most often. And with two joysticks plugged? Well, you'll go back to editing xorg.conf again.
In versions of Ubuntu older than Hardy, I'd have advised editing xorg.conf, even though it's not something we should require our users to do. However, with recent X releases manual editing of xorg.conf is getting more and more risky. For example, with the Option "AutoAddDevices" "False", my keyboard switched from French (my layout) back to English in X, and changing it back in dpkg-reconfigure was no help at all for X. So try this solution in the meantime, but that's an advice that's only possible on a personnal basis, not as a "end all be all" solution.
However, on i386 Intrepid joysticks should work fine, that problem is on amd64, and supposedly will be fixed by updates - so getting lshal output isn't necessary anymore. However, nobody tried the supposed fix in Intrepid yet, and there's only one developer's word saying we'll get an update, so better safe than sorry. Getting the lshal output isn't going to hurt, it's easy to do, and it's a safety in case Ubuntu devs won't/can't/forget to fix the problem.
Bookmarks