udev: /dev/input/js0 is created but no joystick attached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
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/
N: input/js0
S: input/by-
S: input/by-
E: DEVLINKS=
E: DEVNAME=
E: DEVPATH=
E: ID_BUS=usb
E: ID_FOR_
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_MODEL=
E: ID_MODEL_
E: ID_MODEL_ID=0745
E: ID_PATH=
E: ID_PATH_
E: ID_REVISION=0251
E: ID_SERIAL=
E: ID_TYPE=hid
E: ID_USB_
E: ID_USB_
E: ID_USB_
E: ID_VENDOR=Microsoft
E: ID_VENDOR_
E: ID_VENDOR_ID=045e
E: MAJOR=13
E: MINOR=0
E: SUBSYSTEM=input
E: TAGS=:seat:uaccess:
E: USEC_INITIALIZE
---
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: Unity
DistroRelease: Ubuntu 15.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2015-03-13 (91 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150306)
MachineType: Hewlett-Packard HP Z400 Workstation
NonfreeKernelMo
Package: linux (not installed)
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.143.1
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Tags: vivid
Uname: Linux 3.19.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 07/15/2013
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 786G3 v03.57
dmi.board.
dmi.board.name: 0AE4h
dmi.board.vendor: Hewlett-Packard
dmi.board.version: C
dmi.chassis.
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP Z400 Workstation
dmi.sys.vendor: Hewlett-Packard
Changed in linux (Ubuntu): | |
importance: | Undecided → Low |
Changed in linux (Ubuntu): | |
status: | Confirmed → Incomplete |
tags: |
added: kernel-bug-exists-upstream-4.2-rc1 removed: kernel-bug-exists-upstream-4.1-rc7 |
Hey Thomas,
can you pleae copy&paste the output of
udevadm test-builtin input_id /class/input/js0 ?
This will show the precise capabilities that the device reports.
From your udevadm info output it appears that this isn't just an input_id mis-interpretation though, but that the usbhid kernel driver itself finds/creates a joystick device? "dmesg | grep -i hid" might also be helpful, can you please include that too?