Agree whole heartedly with Stephan Sokolow.  We need a way to have the X
server handle the joystick without having it send the mapped events to
other applications.  Was there any response from upstream?

For now, here is how you can enable the joystick within the X server:-

sudo apt-get install xserver-xorg-input-joystick

This creates the file /usr/share/X11/xorg.conf.d/50-joystick.conf

Now to disable the mouse integration, and create a mapping of the
buttons so they all behave as shift keys, edit the file to look as
follows:-

Section "InputClass"
        Identifier "joystick catchall"
        MatchIsJoystick "on"
        MatchDevicePath "/dev/input/event*"
        Driver "joystick"
        Option "StartKeysEnabled" "True"
        Option "StartMouseEnabled" "False"
        Option "MapButton1"        "key=50"
        Option "MapButton2"        "key=50"
        Option "MapButton3"        "key=50"
        Option "MapButton4"        "key=50"
EndSection

Now pressing any of the four mains buttons will prevent the screensaver
from appearing.  Although, this will not work for any games that you
only use the direction pads on.  I think most games involve button
presses, so hopefully this is a practical solution for people until a
proper solution is available.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/30378

Title:
  Joystick activity does not stop the screensaver

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-screensaver/+bug/30378/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to