[Bug 685653] New: USB Jog/Shuttle appears to be incorrectly mapped as mouse
https://bugzilla.novell.com/show_bug.cgi?id=685653 https://bugzilla.novell.com/show_bug.cgi?id=685653#c0 Summary: USB Jog/Shuttle appears to be incorrectly mapped as mouse Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: pagan13@estreet.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0 I bought a Contour Design "ShuttleXpress" USB jog/shuttle device to use in Kdenlive or Kino. Neither program recognizes this, even though Kino explicitly supports this model (/etc/udev/rules.d/kino.rules). I ran a yast hardware information, looked in USB, and found this device mapped as /dev/input/mice which is the same mapping as my regular USB mouse. It also has a secondary mapping of some sort (dev_name2) that maps it at /dev/input/mouse0. Based on Kino's documentation, it appears Kino, and probably Kdenlive, are looking for a jog/shuttle at /dev/input/event(x), not at /dev/input/mouse(x). Being mapped at mouse doesn't seem to interfere with any regular pointing device, but it is unusable by the software it is designed for, and which support it. Is there some setting I need to make somewhere to get it to map properly, or is this a real bug? Thanks Reproducible: Always Steps to Reproduce: 1. Plug in USB jog/shuttle 2. Attempt to use device with video editing software (Kdenlive or Kino or other) 3. Open Yast, select Hardware Information, find, under USB, that ShuttleXpress has been mapped as if it were a mouse Actual Results: Other than mouse mapping, plugging this device into the USB does nothing to the system and is unusable Expected Results: I expect to see that it is usable by video editing software. My current preferred program is Kdenlive, which generically supports a jog/shuttle device, but Kino explicitly supports this make and model. I entered this as openSUSE 11.3 x86_64, but it may affect other versions/platforms. Please let me know if you want any config files or to run any tests. I will provide anything I can. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c1
Jiri Slaby
Please let me know if you want any config files or to run any tests. I will provide anything I can.
lsusb -v of that device. And dmesg. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c2
--- Comment #2 from Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c3
--- Comment #3 from Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c4
Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c5
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c6
Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c7
Jiri Slaby
GenericDesktop.Wheel ---> Relative.Wheel GenericDesktop.Dial ---> Relative.Dial Button.0001 ---> Key.Btn0 Button.0002 ---> Key.Btn1 Button.0003 ---> Key.Btn2 Button.0004 ---> Key.Btn3 Button.0005 ---> Key.Btn4 Button.0006 ---> Key.Btn5 Button.0007 ---> Key.Btn6 Button.0008 ---> Key.Btn7 Button.0009 ---> Key.Btn8 Button.000a ---> Key.Btn9 Button.000b ---> Key.? Button.000c ---> Key.? Button.000d ---> Key.?
OK, so it is mapped to wheel, dial and those buttons. You should be able to see the events with 'xev', right? Every mouse* device should have also its event* device. Could you attach contents of /proc/bus/input/devices?
"events" but all I get is a zero-length file.
You need to do something like 'cat events >log' and work with the device to generate some output. But I don't think we needed that anymore. (You can check what button is mapped to what by omitting the '>log part'.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c8
Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c9
Jiri Slaby
I also tried the "cat" command but got no results - just a zero-length file.
Ok, let's start from there. If there are any interrupts at all. Could you install the kernel from: http://labs.suse.cz/jslaby/bug-685653/ press some buttons, rotate with wheel and attach dmesg?
Btw, there are five buttons on the device, yet it appears that more buttons than that are mapped in rdesc.
Yeah, that's normal, that devices report more buttons than really on the device (some may be unconnected). Also could you try whether this is fixed in later kernels: http://download.opensuse.org/repositories/Kernel:/HEAD/openSUSE_Factory/ ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c10
Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c11
--- Comment #11 from Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c12
Jiri Slaby
Okay, I tried that kernel (kernel-desktop-2.6.34.9-0.1.x86_64), tried the device, and am attaching the new dmesg.
Great, so the device doesn't generate interrupts. To confirm that, could you run this: watch -d -n ,2 'grep usb /proc/interrupts' and watch for changes when you turn the dial/press the buttons? (It should also change whenever you move with mouse or keyboard if you have USB ones.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c13
--- Comment #13 from Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c
Joseph Short
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c14
Jiri Slaby
Here is a snapshot of watch (I replaced the "," with "." from that 2 to get it to work):
Every 2.0s: grep usb /proc/interrupts Thu Apr 28 14:19:16 2011
16: 3664 14 IO-APIC-fasteoi uhci_hcd:usb3, nvidia 18: 0 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb8 19: 0 0 IO-APIC-fasteoi uhci_hcd:usb5, uhci_hcd:usb7 21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4 23: 41051 41036 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb6
All the numbers above 0 change continuously except for the 14.
Hmm, according to dmesg, you have many devices on the usb bus 2 (irq 23). Could you connect the shuttle device to a different slot (until you hit any of the busses where there are zeroes) and retry? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c15
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=685653
https://bugzilla.novell.com/show_bug.cgi?id=685653#c16
--- Comment #16 from Joseph Short
participants (1)
-
bugzilla_noreply@novell.com