Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-17-2011, 03:47 PM   #1
Registered: Jan 2010
Location: Denmark
Distribution: Gentoo, Archlinux, FreeBSD, Slackware
Posts: 84

Rep: Reputation: 24
no output from xev, can I still remap?

I have a totally weird keyboard where to press F1 - F12 I need to hold Fn key. Otherwise the function key gets executed - increase volume and stuff like that. I want to remap them to be the other way around - function keys would require Fn pressed. But the problem is that `xev` doesn't give me any output by pressing F6-F9 alone. So I am wondering is it possible to remap those?
Old 12-18-2011, 03:51 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'm afraid you're out of luck; if xev can't find a keyboard scancode
there's nothing to be mapped. You may need to try and find a proper
driver for the device.

Old 12-19-2011, 04:18 AM   #3
Registered: Jan 2010
Location: Denmark
Distribution: Gentoo, Archlinux, FreeBSD, Slackware
Posts: 84

Original Poster
Rep: Reputation: 24
This is what I found, but unfortunately not for linux: link
Old 01-11-2012, 10:19 AM   #4
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC23, Raspbian, Ubuntu Precise via Chrome/Crouton
Posts: 358

Rep: Reputation: 43
I have a similar problem with a Logitech Cordless Desktop Wave Pro.

My understanding is that xev can only see scancodes below 256 and these keyboards do 2 byte codes which need to be re-mapped.

I have Fedora 16 and there are two files that might help.

You cam copy the /lib/udev/rules.d/95-keyboard.rules to /etc/udev/rules.d. Using these enhanced rules for keyboards, if udevd detects your specific keyboard it may load a vendor specific keymap and allow these extra keys to work. These vendor specific keymaps are in /lib/udev/keymaps/. In my case it loads the logitech-wave-pro-cordless file.

BTW I am still trying to get this to work.

I see a few Lenovo keymaps in there, but you'd have to map what the rules say against your specific keyboard.
Old 01-11-2012, 11:04 AM   #5
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,584

Rep: Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439
I've always understood that the Fn key is hardwired. In other words, if you press Fn+F6 the keyboard will send the code for F6; if you just press F6, no code is output because the appropriate hardware change is executed without using the OS. If that's true, there's no solution other than a new circuit-board.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting output from XEV 3saul Linux - Software 1 02-26-2006 01:14 PM
remap us to uk props666999 Slackware 3 01-21-2005 04:01 AM
Key remap Silverdaz Linux - Software 1 07-08-2004 11:35 AM
Looking for xev.c nonconformative Programming 2 11-30-2003 12:06 PM
How do I remap keys? LooseCanon Linux - Newbie 1 08-27-2003 05:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 AM.

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