LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Two kernel scancodes have the same kernel keycode (http://www.linuxquestions.org/questions/linux-hardware-18/two-kernel-scancodes-have-the-same-kernel-keycode-451933/)

mlalkaka 06-05-2006 08:46 PM

Two kernel scancodes have the same kernel keycode
 
Hello,

I am having problems getting my multimedia keyboard working, and yes, I know there are plenty of threads discussing this topic, but I can't find any threads that discuss this problem. So just hear me out:

I've gotten most of my multimedia keys working, mainly using the instructions at https://wiki.ubuntu.com/MultimediaKeys.

However, I am still having some problems: certain keys, which are meant to have different functions, are reporting the same kernel scancode. For example, the "Finance" key is returning the same scancode as the right "Windows" key (Super_R). Here's the output of the command "showkey -s", with some comments (on lines beginning with '#'):
Code:

# Output when "Finance" key is pressed/released:
0xe0 0x5c 0xe0 0xdc
# Output when the right "Windows" key (Super_R) is pressed/released:
0xe0 0x5c 0xe0 0xdc

(The key-press scancode is "0xe0 0x5c" and the key-release scancode is "0xe0 0xdc")

I tried this exact same keyboard on the exact same computer under MS Windows. The two keys are detected as different keys under MS Windows, so it can't be a hardware malfunction -- there must be some distinguishable property being sent by the keyboard controller (am I right?).

There is only one difference that I was able to notice. When I press and hold the "Finance" before releasing it, the output of "showkey -s" is the same as above: "0xe0 0x5c 0xe0 0xdc" (the key-press code is not repeated). However, when I press and hold the right "Windows" key (Super_R) before releasing it, the output of "showkey -s" is "0xe0 0x5c 0xe0 0x5c 0xe0 0x5c 0xe0 0x5c ... 0xe0 0xdc" (the key-press scancode is repeated multiple times).

Another thing that may be of importance is that the command "kbd_mode" reports that my keyboard is in ASCII (XLATE) mode, not in UTF-8 (UNICODE) mode. Could this be causing problems? My keyboard is a Multimedia keyboard, but the standard keys have a standard US keyboard layout.

I would appreciate any help that I can get. Thanks.

mlalkaka 06-06-2006 04:45 PM

Oops, incorrect title/subject
 
Sorry, I titled this thread incorrectly. I've re-posted it under a new, more appropriate, name.
Here is the URL: http://www.linuxquestions.org/questi....php?p=2279875

Thank you again.


All times are GMT -5. The time now is 11:11 PM.