kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #123066
[Bug 1458631] Re: udev: /dev/input/js0 is created but no joystick attached
For example, we have
#define BTN_TRIGGER…………………………………0x120
I. e. the capability bit mask whether the device claims to have a BTN_TRIGGER is the 0x120th bit in capabilities/key, or IOW, the 32th bit in
bit 256: 0C00000000000001
which is zero. Likewise there's no BTN_A, nor BTN_1. Interestingly there
*is* a BTN_MISC aka BTN_0:
#define BTN_MISC…………………………………………0x100
#define BTN_0…………………………………………………0x100
and the 0x100 == 256th bit in the above mask is 1. So it's not the
buttons, but the axes. We see from the abs mask FFFFFF01000701FF that
the device claims to have all of ABS_X to ABS_GAS, and a whole lot of
others and even undefined ones. This may simply just be an uninitialized
value in the kernel driver?
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1458631
Title:
udev: /dev/input/js0 is created but no joystick attached
Status in linux package in Ubuntu:
Incomplete
Status in systemd package in Ubuntu:
Invalid
Bug description:
With ubuntu vivid i see a /dev/input/js0. I do not have a joystick or
gamepad attached. This invalid input device cause a game in steam
"Crypt of the necrodancer" to crash during start. The game works fine
when I delete it.
This appears to be a ubuntu specific bug as it does not show up on
fedora 22.
It goes away if I unplug the mouse/keyboard usb dongle I use. If I
attach a wired keyboard only it does not show up. I tried adding a
wired mouse too, but that causes js0 to appear too. The output of
udevadm changes depending on what mouse I have attached. The following
output is from using the dongle for my wireless mouse/keyboard (both
microsoft products)
$sudo udevadm info /dev/input/js0
P: /devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.2/0003:045E:0745.0003/input/input7/js0
N: input/js0
S: input/by-id/usb-Microsoft_Microsoft®_2.4GHz_Transceiver_v6.0-if02-joystick
S: input/by-path/pci-0000:00:1a.2-usb-0:1:1.2-joystick
E: DEVLINKS=/dev/input/by-id/usb-Microsoft_Microsoft®_2.4GHz_Transceiver_v6.0-if02-joystick /dev/input/by-path/pci-0000:00:1a.2-usb-0:1:1.2-joystick
E: DEVNAME=/dev/input/js0
E: DEVPATH=/devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.2/0003:045E:0745.0003/input/input7/js0
E: ID_BUS=usb
E: ID_FOR_SEAT=input-pci-0000_00_1a_2-usb-0_1_1_2
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_MODEL=Microsoft®_2.4GHz_Transceiver_v6.0
E: ID_MODEL_ENC=Microsoft®\x202.4GHz\x20Transceiver\x20v6.0
E: ID_MODEL_ID=0745
E: ID_PATH=pci-0000:00:1a.2-usb-0:1:1.2
E: ID_PATH_TAG=pci-0000_00_1a_2-usb-0_1_1_2
E: ID_REVISION=0251
E: ID_SERIAL=Microsoft_Microsoft®_2.4GHz_Transceiver_v6.0
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030101:030102:030000:
E: ID_USB_INTERFACE_NUM=02
E: ID_VENDOR=Microsoft
E: ID_VENDOR_ENC=Microsoft
E: ID_VENDOR_ID=045e
E: MAJOR=13
E: MINOR=0
E: SUBSYSTEM=input
E: TAGS=:seat:uaccess:
E: USEC_INITIALIZED=117298
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1458631/+subscriptions