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 Desktop
Packages, which is subscribed to gnome-screensaver in Ubuntu.
https://bugs.launchpad.net/bugs/30378

Title:
  Joystick activity does not stop the screensaver

Status in GNOME Screensaver:
  Invalid
Status in “gnome-screensaver” package in Ubuntu:
  Confirmed

Bug description:
  While playing games entirely with the joystick the screensaver is
  activated every few minutes.

  Input activity from a joystick should have the same results as
  activity from the mouse or keyboard.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to