LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-12-2002, 08:45 PM   #1
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 57
XEV not returning keyboard scancode for particular key...


I've just bought myself a new toy! I got a wireless (RF) 'multimedia' keyboard and mouse combo setup. I downloaded Lineak to use the little row of buttons along the top, and I must admit that Lineak works extraordinarily well! I'm impressed. The lineak documentation suggests using xev to discover the scancodes for these buttons... which it duly did. However, I also have an extra button on the keyboard itself, not as part of the 'multmedia' setup. It's just below the enter key, to the right of the right-hand shift, and above the right-hand ctrl, and is labelled 'Fn'. Running xev and pressing this key has no effect what-so-ever. I was wondering if anyone knows how to discover keyboard scancodes in any other way? Oh, and BTW, this key also seems to be functionless under Windows. I had considered simply removing both it and the shift key next to it, however, it uses a different seating mechanism to the rest of my keyboards, so I would not be able to replace them... D'oh!

Any imput would be greatly appreciated.

Cheers muchly.

Grant
 
Old 04-07-2003, 07:59 AM   #2
maejrep
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
Normally, an "Fn" key (most commonly seen on a laptop keyboard. It stands for "Function") is not meant to be used or interpreted by the computer. If I had to guess, I'd say that key is to be used for some function that is specific to that device, and possibly used to control it in some way (like, to synch with the base, or to choose a new frequency, or some other option like that). I'm fairly certain that that key does not have a PC function.
 
Old 04-07-2003, 10:09 AM   #3
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
I had a keyboard with an fn button once, but the only thing I can remember is that when I pushed fn + F10 or F11 the keyboard locked up untill I pressed that combination again
 
Old 06-08-2006, 02:35 AM   #4
mlalkaka
LQ Newbie
 
Registered: Dec 2004
Location: Canada
Distribution: Ubuntu Linux
Posts: 16

Rep: Reputation: 0
Go to a real console (tty1, tty2, etc.) by pressing Ctrl+Alt+F1. Log in, and then execute the following command as root at the prompt:
Code:
dmesg -c
Now press the Fn key on your keyboard. You may see a message like
Code:
atkbd.c: Unknown key pressed (translated set 2, code 0x9e on isa0060/serio0).
atkbd.c: Use 'setkeycodes e01e <keycode>' to make it known.
If you don't see that message, then run the following command to see it (don't have to be root):
Code:
dmesg
If you still do not see that message, then chances are the Fn key on your keyboard is not meant to be used alone. It is probably meant to be used along with other keys on your keyboard to accomplish certain, unconventional tasks -- much like the Fn key on a laptop keyboard.

If you do see the output above, then all you need to do is run the command that is specified in the message, replacing <keycode> with an unused keycode (usually a number between 120 and 255; use the command "dumpkeys" to find an unused keycode). That should get the key working, although I still don't know for what it's used. Note: if you want the changes you have made to always apply, you will have to make the "setkeycodes" command run on startup. You can do this by editing a file in /etc/init.d, such as bootmisc.sh if you have it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How xev, and media keys on a keyboard jrattner1 Linux - Software 1 09-29-2005 05:36 PM
xev & Logitech Access keyboard rsarson Fedora 1 01-04-2005 03:12 AM
Is it possible to use Power key on the keyboard? foxy123 Linux - Newbie 1 12-21-2004 09:28 AM
keyboard key: where is my | ??? erickFis Linux - Hardware 1 02-10-2004 04:29 PM
need to change a key on my keyboard ArnaudVR Slackware 1 06-27-2003 09:50 PM


All times are GMT -5. The time now is 10:59 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration