LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-19-2009, 03:38 PM   #1
harmonator
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
IBM keyboard special keys not working - setkeycodes doesn't seem to work


I've done a lot of research on this, but nothing has worked. I have an IBM keyboard that is used in a Point of Sale environment that has 6 special keys that I cannot get to work in linux. For reference, this is the "Retail Alphanumeric Point of Sale Keyboard with Card Reader Layout". IBM says on their site to use setkeycodes to get it working, bot it's obviously not that easy.

Distro: CentOS 5
Kernel: 2.6.18

here is what I have done:

"showkey -s" returns 0xf2 for all 6 special keys
"showkey -k" returns 122 for all 6 special keys

However, dmesg is showing something different and can apparently differentiate between the keys.

First special key:

Code:
atkbd.c: Use setkeycodes 62 <keycode> to make it known
atkbd.c: Unknown key released (translated set 2, code 0x64 on isa0660/serio0).
atkbd.c: Use setkeycodes 64 <keycode> to make it known
Second special key:
Code:
atkbd.c: Use setkeycodes 62 <keycode> to make it known
atkbd.c: Unknown key released (translated set 2, code 0x65 on isa0660/serio0).
atkbd.c: Use setkeycodes 65 <keycode> to make it known
Each special key emits the 62 scancode in dmesg AND a different scancode 64 thru 68 depending on which key is pressed

Learning this, I proceeded as follows:

Code:
dumpkeys
150 is unused, so I'll start with that...

Code:
setkeycodes 64 150
showkey -k
No Soup - showkey -k still responds with 122 when I press the special key

For giggles, I also tried using the scancode 0xf2 which is shown with "showkey -s" even though that comes up when every special key is pressed (as stated above).

Code:
setkeycodes f2 150
This doesn't work either... what gives? This just shows what I tried for one of the 6 keys, but you get the idea of what I have tried.
I appreciate any ideas you guys might have.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special keys on keyboard? jmite Linux - Hardware 1 08-08-2008 06:42 PM
'Special' Keyboard Keys on Linux ninjabob7 Linux - Hardware 4 02-20-2006 03:13 PM
Special keyboard keys rdabra Linux - Newbie 3 01-04-2006 05:01 AM
Special Function Keys on a Logitech Keyboard linux-rulz Linux - Hardware 2 07-13-2005 07:16 AM
How to get special keys of a keyboard working? TTL_2 Linux - Hardware 5 03-05-2005 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration