Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#14162 - [udev] event permissions for force feedback
Attached to Project:
Arch Linux
Opened by Edgar Simo-Serra (bobbens) - Thursday, 09 April 2009, 19:00 GMT
Last edited by Jan de Groot (JGC) - Saturday, 13 February 2010, 01:39 GMT
Opened by Edgar Simo-Serra (bobbens) - Thursday, 09 April 2009, 19:00 GMT
Last edited by Jan de Groot (JGC) - Saturday, 13 February 2010, 01:39 GMT
|
DetailsDescription:
/dev/input/event# are all: crw-r----- 1 root root 13, 64 2009-04-09 17:52 /dev/input/event0 While this traditionally has been OK, with the recent advent of the force feedback API, writing is also starting to be necessary for joysticks. All force feedback control is done with ioctl. An example of a package that will confilct with this is SDL 1.3 when it is released. I'd propose adding the joystick /dev/input/event# to the games group. To have something like: crw-rw---- 1 root games 13, 64 2009-04-09 17:52 /dev/input/event0 Steps to reproduce: Start up Arch Linux then run ls -l /dev/input/event*. |
This task depends upon
Closed by Jan de Groot (JGC)
Saturday, 13 February 2010, 01:39 GMT
Reason for closing: Not a bug
Additional comments about closing: Should work fine with ACLs.
Saturday, 13 February 2010, 01:39 GMT
Reason for closing: Not a bug
Additional comments about closing: Should work fine with ACLs.
KERNEL=="event[0-9]*", ENV{ID_CLASS}=="joystick", MODE="0666"
However you might prefer to have it 0664 and be root:games or the likes.
# joysticks
SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ACL_MANAGE}="1"
Doing a "ls -l /dev/input/eventN" will show a "+" like this: "crw-r-----+ 1 root root XX, YY mmm DD HH:MM /dev/input/eventN". Only if your device is matched by this udev rule, consolekit installed and any of these conditions are true:
1) Logged in via console and in "/etc/pam.d/login" there is a line like "session optional pam_ck_connector.so"
2) Launch X with "startx" and in your .xinitrc your desktop is started by "exec ck-launch-session <your-wm/dm>"
3) Logged in X via X session manager like GDM.
Note: Udev system rules are in /lib/udev/rules.d
What is the output of udevadm info -q property -n /dev/input/eventN ?
udevadm info -q property -n /dev/input/event8 gives:
UDEV_LOG=0
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/usb9/9-2/9-2:1.0/input/input9/event8
MAJOR=13
MINOR=72
DEVNAME=/dev/input/event8
SUBSYSTEM=input
ID_INPUT=1
ID_INPUT_JOYSTICK=1
ID_VENDOR=Logitech
ID_VENDOR_ENC=Logitech
ID_VENDOR_ID=046d
ID_MODEL=Logitech_RumblePad_2_USB
ID_MODEL_ENC=Logitech\x20RumblePad\x202\x20USB
ID_MODEL_ID=c218
ID_REVISION=0100
ID_SERIAL=Logitech_Logitech_RumblePad_2_USB
ID_TYPE=hid
ID_BUS=usb
ID_USB_INTERFACES=:030000:
ID_USB_INTERFACE_NUM=00
ID_USB_DRIVER=usbhid
ID_PATH=pci-0000:05:01.0-usb-0:2:1.0
ACL_MANAGE=1
DEVLINKS=/dev/char/13:72 /dev/input/by-id/usb-Logitech_Logitech_RumblePad_2_USB-event-joystick /dev/input/by-path/pci-0000:05:01.0-usb-0:2:1.0-event-joystick
EDIT: Confirmed to work now, would be nice if by default it would work, although I assume most people use [GKX]DM which you mentioned does this out of the box.
Devs decided...
session optional pam_ck_connector.so
to /etc/pam.d/login by default? Thinking about users like me that don't use [GKX]DM, although we're probably minority...