Re: [linux-usb-devel] USB keycodes Logitech Cordless Desktop Optical: (Was USB Multimedia Keyboards. Some keys do not produce keyevents)

2003-10-18 Thread Andries Brouwer
On Fri, Oct 17, 2003 at 07:56:45PM -0400, Sheldon Lee-Wen wrote:

 I was under the impression that the kernel would/should at least always see 
 the raw scancode (where this is not a value between 0 and 255)

Your impression is incorrect.
The raw scancode is a byte and cannot be a value outside 0-255.



___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: [linux-usb-devel] USB keycodes Logitech Cordless Desktop Optical: (Was USB Multimedia Keyboards. Some keys do not produce keyevents)

2003-10-17 Thread Andries Brouwer
On Fri, Oct 17, 2003 at 03:52:00PM -0400, Sheldon Lee-Wen wrote:

 Pardon my evilness in cross posting this, But I need to get a discussion going 
 on how to resolve this problem.
 
 One lineak user went and tested his keyboard. Here is what he got. It does 
 appear that for the keys that do not work, we have two situations. Either the 
 kernel does not even see the key, i.e. nothing gets returned by either the 
 kernel (in the form of an error written to the messages file), showkey -s, or 
 xev. Or the kernel returns a Can't emulate rawmode for keycode   
 message and neither X nor showkey -s see any output.

You do not mention kernel version.
These things are very sensitive to kernel version.

If the kernel does not see the key at all, there is nothing the
keyboard driver can do.

The cases where the kernel complains Can't emulate rawmode for keycode ...
while X and scancode -s do not see anything are for keycodes above 255.
So far, keycodes have been 7-bit objects, and going to 8-bit is straightforward,
but going past 8-bit requires updates to quite a lot of software.
So, life is easier if one does not use large keycodes.

The remaining codes are all OK. You have a keyboard and pressing a key produces
some code. Use setkeycodes and loadkeys to assign some symbol or string.
Or use some version of funkey or so to assign some action.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel