[systemd-devel] joystick doesn't respect seat rule

Floris jkfloris at dds.nl
Wed May 28 07:28:19 PDT 2014


Hey,

I have created an udev rule for an usb hub with "loginctl attach" so every  
device I plug-in will go to seat1
$cat /etc/udev/rules.d/72-seat-usb-pci-0000_00_1a_0-usb-0_1_4.rules
TAG=="seat", ENV{ID_FOR_SEAT}=="usb-pci-0000_00_1a_0-usb-0_1_4",  
ENV{ID_SEAT}="seat1"

Nevertheless, when I plug-in a joystick on seat1, it is also working on  
seat0

I would expect the same behavior as a keyboard or a mouse. A device on  
seat1 does not interact with seat0

$ jstest /dev/input/js0 #run on seat0
Driver version is 2.1.0.
Joystick (DragonRise Inc.   Generic   USB  Joystick  ) has 7 axes (X, Y,  
Z, Rx, Rz, Hat0X, Hat0Y)
and 12 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn,  
BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6).
Testing ... (interrupt to exit)
...

$ udevadm info --query=all --name=input/js0
P:  
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0/0003:0079:0006.0008/input/input22/js0
N: input/js0
S: input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-joystick
S: input/by-path/pci-0000:00:1a.0-usb-0:1.4.3:1.0-joystick
E:  
DEVLINKS=/dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-joystick  
/dev/input/by-path/pci-0000:00:1a.0-usb-0:1.4.3:1.0-joystick
E: DEVNAME=/dev/input/js0
E:  
DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0/0003:0079:0006.0008/input/input22/js0
E: ID_BUS=usb
E: ID_FOR_SEAT=input-pci-0000_00_1a_0-usb-0_1_4_3_1_0
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_MODEL=Generic_USB_Joystick
E: ID_MODEL_ENC=Generic\x20\x20\x20USB\x20\x20Joystick\x20\x20
E: ID_MODEL_ID=0006
E: ID_PATH=pci-0000:00:1a.0-usb-0:1.4.3:1.0
E: ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_4_3_1_0
E: ID_REVISION=0107
E: ID_SEAT=seat1
E: ID_SERIAL=DragonRise_Inc._Generic_USB_Joystick
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=DragonRise_Inc.
E: ID_VENDOR_ENC=DragonRise\x20Inc.\x20\x20
E: ID_VENDOR_ID=0079
E: MAJOR=13
E: MINOR=0
E: SUBSYSTEM=input
E: TAGS=:seat:seat1:uaccess:
E: USEC_INITIALIZED=776894


More information about the systemd-devel mailing list