support for Logitech Wave
Hi Jiri
I'm having problems with a Logitech Wave (cordless) keyboard and its extra
keys, and am hoping the following information will help in resolving the
problem.
This testing has been done with the following configuration :
Distribution : openSuse 10.3 Kernel : 2.6.25-18-default (built with source from openSuse build service) Keyboard : Logitech Cordless Desktop Wave, Model Y-RCP140
<http://www.logitech.com/index.cfm/keyboards/keyboard_mice_combos/devices/3072&cl=us,en>
I've tested the keyboard with evtest, and none of the extra keys are recognized, and no information reported when they are pressed
Testing with Xorg indicates that some of the keys work when the 'kbd' driver is used, but not when 'evdev' is used (probably due to the above).
Evbug does see most of these extra keys, but not all of them.
I've attached a copy of information from a debug session of the HID, and information from evbug. It also indicates which keys work (depending on layout).
If there's anything else I can do to help, please let me know.
TIA
Kevin.
Quoted 3 lines · Kevin Milburn
I'm having problems with a Logitech Wave (cordless) keyboard and its extra keys, and am hoping the following information will help in resolving the problem.
Hi Kevin,
is the device in question vendor ID 0x046d and product ID 0xc517? (you can find out using lsusb, for example).
If so, then that's the very same receiver that Logitech ships with S510 keyboards, so we'll have to put this extra mappings into the quirk_logitech_wireless() function.
Quoted 2 lines
I've tested the keyboard with evtest, and none of the extra keys are recognized, and no information reported when they are pressed
Could you please be more specific here? Those keys for which there is some 'evbug' output should definitely also appear in evtest output (if X driver will then receive the code or not is a different story).
Quoted 3 lines
I've attached a copy of information from a debug session of the HID, and information from evbug. It also indicates which keys work (depending on layout).
Thanks, this is all the information that will be needed for establishing proper mappings for non-working keys, but I'd like to understand first whether there are keys that appear in evbug output, but there is no event happening on evdev (as seen by evtest).
A few remarks from quick look at the output:
- what are the "Vista Flip" and "Vista Gadget" keys supposed to do?
- the keys that are labelled "works depending on layout" -- what exactly does that mean? Is there still output from hid-debug, no matter the layout?
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Kevin Milburn
Quoted 3 lines
If so, then that's the very same receiver that Logitech ships with S510 keyboards, so we'll have to put this extra mappings into the
quirk_logitech_wireless()function.Yes, the device is reported as vendor ID
0x046dand product ID 0xc517r
OK, so I will add the new mapping into quirk_logitech_wireless() and will send you a patch to test.
Quoted 6 lines
Quoted 3 lines
Could you please be more specific here? Those keys for which there is some 'evbug' output should definitely also appear in evtest output (if X driver will then receive the code or not is a different story).
Evtest is connecting to the device correctly and reports keypess information for the standard keys, but nothing is output when one of the extra keys is pressed..
[ ... ]
Quoted 23 lines
Apr 28 10:47:31 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input0, Type: 4, Code: 4, Value: 458796 Apr 28 10:47:31 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input0, Type: 1, Code: 57, Value: 1 Apr 28 10:47:31 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input0, Type: 0, Code: 0, Value: 0 Apr 28 10:47:31 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input0, Type: 4, Code: 4, Value: 458796 Apr 28 10:47:31 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input0, Type: 1, Code: 57, Value: 0 Apr 28 10:47:31 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input0, Type: 0, Code: 0, Value: 0 Apr 28 10:48:09 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input1, Type: 4, Code: 4, Value: 786613 Apr 28 10:48:09 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input1, Type: 1, Code: 163, Value: 1 Apr 28 10:48:09 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input1, Type: 0, Code: 0, Value: 0 Apr 28 10:48:09 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input1, Type: 4, Code: 4, Value: 786613 Apr 28 10:48:09 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input1, Type: 1, Code: 163, Value: 0 Apr 28 10:48:09 ganges kernel: evbug.c: Event. Dev: usb-0000:00:02.0-7/input1,
Quoted 1 line
Type: 0, Code: 0, Value: 0
The keyboard probably has two separate interfaces, with some multimedia keys being reported on a different one. That's why you see them in evbug output, but not in evtest output, because they appear under different event device.
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 4 lines · On Wednesday 30 April 2008 10:21:16 Jiri Kosina wrote:
The keyboard probably has two separate interfaces, with some multimedia keys being reported on a different one. That's why you see them in evbug output, but not in evtest output, because they appear under different event device.
I''m sure I tried that before, but from retesting today I guess I didn't....
You're right, the missing keys reported by evbug are showing up in evtest
when I connect to the second event interface, a.k.a usb-Logitech_USB_Receiver-event-mouse.
so it is just the ones that evbug wasn't reporting that are missing...
Looks like I need to have some fun with getting xkbd and evdev in X working properly.....
TIA
Kev.
Quoted 3 lines · On Wednesday 30 April 2008 11:41:08 Kevin Milburn wrote:
Looks like I need to have some fun with getting xkbd and evdev in X working properly.....
OK, I've had some success with this, but it's left me with a few more
questions.
I can now use all the extra keys which result in a keycode of less than 255, which appears to be a limitation within the Xorg evdev driver.
while experimenting, I've tried using showkey and setkeycodes commands but have encountered a few issues..
Firstly, when showkey is set to keycode mode, which sets the ioctl KDSKBMODE to K_MEDIUMRAW, it show all the expected keycodes. setting it to show scancodes, which sets the ioctl KDSKBMODE to K_RAW, results in the scancodes being show for all the expected keys EXCEPT those with a keycode of 392 or higher (I don't know where the actual break is as this keyboard has no keycodes between 236 and 392).
Is this a known issue where these scancodes don't appear, or is it something that needs looking into?
Secondly, the primary reason for trying the above was to obtain the scancodes so I could alter the keycodes to work with X. Trying to alter one of the working scancodes (e071) to a new keycode using the setkeycodes command failed with an 'Invalid Argument'.
Further research lead me to a comment indicating that setkeycodes does not
work on USB keyboards. If this is correct (which it seems to be), is
there any other way of altering the keycodes generated by the kernel?
TIA
Kevin
Hi Jiri
Good news everyone,
I now have all the keys working (that are recognised) thanks to the latest release of keytouch and it's editor, which appeared this morning...
This also has the advantage of negating to need to alter keycodes as keytouch does that for us. so my message asking about showkeys and setkeycodes can be ignored.
Once you're able to provide a patch for me to test I should now be able to do it with ease!
Kevin
Quoted 2 lines · Kevin Milburn
I can now use all the extra keys which result in a keycode of less than 255, which appears to be a limitation within the Xorg evdev driver.
Yes, exactly. See for example
http://bugs.freedesktop.org/show_bug.cgi?id=11227
Quoted 2 lines
Secondly, the primary reason for trying the above was to obtain the scancodes
Just a sidenote -- USB keyboards have concept of "usage codes", rather than "scancodes".
Quoted 3 lines
so I could alter the keycodes to work with X. Trying to alter one of the working scancodes (e071) to a new keycode using the setkeycodes command failed with an 'Invalid Argument'.
Newer kernels have hidinput_setkeycode() callback, which should allow setting the usage code <-> keycode association using 'setkeycodes'. Could you please post hid debugging output?
-EINVAL should be returned only in the following cases:
- (keycode < 0 || keycode > KEY_MAX).
- the usage code you have specified is not supported by the keyboard, according to its report descriptor
(see hidinput_setkeycode() code).
Quoted 3 lines
Further research lead me to a comment indicating that setkeycodes does not work on USB keyboards. If this is correct (which it seems to be), is there any other way of altering the keycodes generated by the kernel?
The support for setkeycodes working with USB keyboards has been added in commit fe7ba31fead.
Signature · 2 lines
Jiri Kosina SUSE Labs