[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
OK, if you don't have the keyboard any more, I guess it's too hard to get the debugging data out of it. Thanks for your patience anyway! ** Changed in: udev (Ubuntu) Status: Incomplete = Invalid -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
On Monday 03 August 2009 22:37:42 Martin Pitt wrote: So does it work with ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ENV{ID_CLASS}==mouse, RUN=+keymap $name usb-mosart-0102 ? Hi Martin, sorry about the delay. Unfortunately this does not solve the problem. xev still reports the key as XF86Tools. Everything else works just fine. Since I have already replaced the keyboard for daily work and no one else has come forward owning one of these, closing the bug at this stage is fine from my point of view. Many thanks for your efforts! Dominik -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Am Sonntag, den 02.08.2009, 20:56 + schrieb Martin Pitt: Is there a way to trace the whole sequence done during boot-up? Something like this. udevadm test /devices/.../ (the sysfs path) will show the matches and commands run. # udevadm test /devices/pci:00/:00:1d.2/usb4/4-2/4-2:1.1/input/input7 run_command: calling: test udevadm_test: version 145 This program is for debugging only, it does not run any program, specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run. ... parse_file: reading '/lib/udev/rules.d/95-keymap.rules' as rules file add_rule: unknown key 'ID_CLASS' in /lib/udev/rules.d/95-keymap.rules:14 ... Line 14 of 95-keymap.rules is: ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ID_CLASS==kbd, RUN=+keymap $name usb-mosart-0102 After modifying it to: ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ENV{ID_CLASS}==kbd, RUN=+keymap $name usb-mosart-0102 The udevadm output looks better. But still no luck. Cheers, Dominik -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Am Sonntag, den 02.08.2009, 20:59 + schrieb Martin Pitt: Also, to get current data on this, can you please give me the output of these commands: udevadm info --query=all --name=/dev/input/event7 udevadm info --attribute-walk --name=/dev/input/event7 udevadm info --query=all --name=/dev/input/event8 udevadm info --attribute-walk --name=/dev/input/event8 (assuming that the two devices in question are 7 and 8 at the moment). Thanks! The device number depends on whether the wireless keyboard is connected at boot time. If it is they are 6+7, otherwise 7+8. Here is the output as requested. Cheers, Dominik ** Attachment added: attribute_walk_event6.txt http://launchpadlibrarian.net/29833667/attribute_walk_event6.txt ** Attachment added: attribute_walk_event7.txt http://launchpadlibrarian.net/29833668/attribute_walk_event7.txt ** Attachment added: query_all_event6.txt http://launchpadlibrarian.net/29833669/query_all_event6.txt ** Attachment added: query_all_event7.txt http://launchpadlibrarian.net/29833670/query_all_event7.txt -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
So does it work with ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ENV{ID_CLASS}==mouse, RUN=+keymap $name usb-mosart-0102 ? -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Argh, it would help if I wouldn't make typos in rules. Sorry for that! Can you please try sudo gedit /lib/udev/rules.d/95-keymap.rules and in this line ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ID_CLASS=kbd RUN=+keymap $name usb-mosart-0102 add the missing comma after the kbd ? I. e. replace the line with ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ID_CLASS=kbd, RUN=+keymap $name usb-mosart-0102 Does it work now? Thanks! -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Oops, another typo, it needs to be ID_CLASS==. Please replace the line with ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ID_CLASS==kbd, RUN=+keymap $name usb-mosart-0102 Now for real! -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Am Sonntag, den 02.08.2009, 15:34 + schrieb Martin Pitt: Oops, another typo, it needs to be ID_CLASS==. Please replace the line with ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ID_CLASS==kbd, RUN=+keymap $name usb-mosart-0102 Now for real! No luck. If I run the kbd command manually it works. I still think we are trying to redefine on the wrong input device... Is there a way to trace the whole sequence done during boot-up? Dominik -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Is there a way to trace the whole sequence done during boot-up? Something like this. udevadm test /devices/.../ (the sysfs path) will show the matches and commands run. Unfortunately the original lsinput/ udev dump logs don't match your current USB setup any more (event7/event8), so I had to guess. But the only other MOSART device is the mouse part of that device, so I guessed it wouldn't be that. Just to cover all cases, does this work? ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, ID_CLASS==mouse, RUN=+keymap $name usb-mosart-0102 if not, does this? ENV{ID_VENDOR}==MOSART_Semi., ENV{ID_MODEL_ID}==0102, RUN=+keymap $name usb-mosart-0102 BTW, you don't really need to reboot after changing the rule. Either just unplug/replug the keyboard, or do sudo udevadm trigger --subsystem-match=input -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Also, to get current data on this, can you please give me the output of these commands: udevadm info --query=all --name=/dev/input/event7 udevadm info --attribute-walk --name=/dev/input/event7 udevadm info --query=all --name=/dev/input/event8 udevadm info --attribute-walk --name=/dev/input/event8 (assuming that the two devices in question are 7 and 8 at the moment). Thanks! -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Am Dienstag, den 28.07.2009, 18:56 + schrieb Martin Pitt: Hello Dominik, ok, so it seems that something in the chain doesn't like the extraordinarily high scan code. Could you please do sudo strace -fvvo /tmp/keymap.trace /lib/udev/keymap input/event7 usb- mosart-0102 and then attach /tmp/keymap.trace here? Thanks! It seems to me that we are trying to load the keycode on the wrong input device. If I use the first one (event7) I get EVIOCGKEYCODE (see keymap.trace), if I use the second one (event8) it works (see keymap.trace2) Cheers, Dominik ** Attachment added: keymap.trace http://launchpadlibrarian.net/29785263/keymap.trace ** Attachment added: keymap.trace2 http://launchpadlibrarian.net/29785264/keymap.trace2 -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Hello Dominik, ok, so it seems that something in the chain doesn't like the extraordinarily high scan code. Could you please do sudo strace -fvvo /tmp/keymap.trace /lib/udev/keymap input/event7 usb- mosart-0102 and then attach /tmp/keymap.trace here? Thanks! -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Hi Martin, the mute key now works, but the media key still returns config which is translated to XF86Tools: domi...@scaleo:~$ sudo /lib/udev/keymap -i input/event7 Press ESC to finish scan code: 0xC0183 key code: config scan code: 0xC0183 key code: config Cheers, Dominik -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
sudo cp usb-mosart-0102 /lib/udev/keymaps/ ** Attachment added: keymap file http://launchpadlibrarian.net/29224896/usb-mosart-0102 ** Changed in: udev (Ubuntu) Status: In Progress = Incomplete -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
OK, I have a tentative fix for this. In current Karmic (daily live system) or Jaunty with my PPA's udev-extras (see http://martinpitt.wordpress.com/2009/05/08/devicekit-update-future- handling-of-fn-key-maps/), please apply the attached patch with sudo patch /lib/udev/rules.d/95-keymap.rules keymap.patch and drop the other attachment (usb-mosart-0102) into /lib/udev/keymaps/. Then reboot, and check if the mute and media player keys are working then. Thank you! ** Attachment added: /lib/udev/rules.d/95-keymap.rules patch http://launchpadlibrarian.net/29224885/keymap.patch -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
** Changed in: udev (Ubuntu) Importance: Wishlist = Medium ** Changed in: udev (Ubuntu) Status: Incomplete = In Progress -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
On Mo, 2009-06-29 at 10:57 +, Martin Pitt wrote: Ugh, seems that input event enumeration changes severely with every reboot. In the attached udev log and lsinput, event2 is the mouse. Can you please attach lsinput output and then check with /lib/udev/keymap which device outputs these keys in the same session, i. e. without rebooting in between? Sorry that this takes so long, it is the first case which we fix which involves an external USB keyboard. Thanks for bearing with me! It changed because I unplugged my normal keyboard and attached this one. Now I have booted with both keyboards attached. The special keys show up on input/event7. ** Attachment added: lsinput.out http://launchpadlibrarian.net/28638448/lsinput.out -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Ugh, seems that input event enumeration changes severely with every reboot. In the attached udev log and lsinput, event2 is the mouse. Can you please attach lsinput output and then check with /lib/udev/keymap which device outputs these keys in the same session, i. e. without rebooting in between? Sorry that this takes so long, it is the first case which we fix which involves an external USB keyboard. Thanks for bearing with me! -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
** Package changed: udev-extras (Ubuntu) = udev (Ubuntu) -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
On Mi, 2009-06-24 at 06:06 +, Martin Pitt wrote: Dominik, seems these keys are on a different input device then. Can you please just try all from input/event1 to input/event5? (it's most likely 4 then) Yes, they were reported via the second event channel: scan code: 0xC00B7 key code: stopcd scan code: 0xC00E2 key code: min_interesting --- This is the mute key scan code: 0xC0183 key code: config --- This is the media player key scan code: 0xC018A key code: mail scan code: 0xC0227 key code: refresh scan code: 0xC0226 key code: stop scan code: 0xC0223 key code: homepage scan code: 0xC0225 key code: forward scan code: 0xC0224 key code: back scan code: 0xC0221 key code: search scan code: 0xC022A key code: bookmarks scan code: 0x10082 key code: sleep scan code: 0xC0194 key code: file scan code: 0xC0192 key code: calc scan code: 0xC00EA key code: volumedown scan code: 0xC00E9 key code: volumeup scan code: 0xC00B5 key code: nextsong scan code: 0xC00B6 key code: previoussong scan code: 0xC00CD key code: playpause Cheers, Dominik -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Dominik, seems these keys are on a different input device then. Can you please just try all from input/event1 to input/event5? (it's most likely 4 then) -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Dominik, thanks for the udev log. However, you still didn't tell me the scan code of the key which is wrong. (See comment 7). On current karmic, you can use sudo /lib/udev/keymap -i input/event3 to figure out the scan code. (See /usr/share/doc/udev- extras/README.keymap.txt). If you want to do this on jaunty, please see http://martinpitt.wordpress.com/2009/05/08/devicekit-update-future- handling-of-fn-key-maps/ for instructions how to install the new udev- extras on jaunty. This isn't strictly required for finding the scan code, but you are going to need it for testing my fix. Thanks! -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Martin, I tried /lib/udev/keymap -i input/event3, but I don't get a keycode displayed for the multimedia keys. Not even for those that do work as expected. Cheers, Dominik -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
No problem and sorry about the delay. ** Attachment added: udev http://launchpadlibrarian.net/28208691/udev -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
Sorry for bothering you some more. The handling of keymaps changed recently, and since this is an external keyboard, the usual system vendor/product match does not work. I need to write a custom udev rule for this external keyboard. Can you please attach /var/log/udev? ** Package changed: hal-info (Ubuntu) = udev-extras (Ubuntu) ** Changed in: udev-extras (Ubuntu) Status: Triaged = Incomplete -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 94366] Re: X-Tension XK-200 Multimedia Keyboard: Media Player key wrong
** Summary changed: - Wishlist: XKB Support for X-Tension XK-200 Multimedia Keyboard + X-Tension XK-200 Multimedia Keyboard: Media Player key wrong -- X-Tension XK-200 Multimedia Keyboard: Media Player key wrong https://bugs.launchpad.net/bugs/94366 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs