Download your favorite Linux distribution at LQ ISO.
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 04-01-2009, 04:37 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Unhappy "Enter Key" not working, how to map "Enter Key" functionality to "F9" Key

My laptop "Enter Key" is not working in fedora Linux 2.6.25. How to map functionality of " Enter Key" to "F9" key?

The information I have is:
1. echo $ Term shows "linux"

2. showkey -a for (ESC Dec Oct Hex)
a. Enter key shows " ^M 13 0015 0x0d"

b. F9 key shows " ^[[20~ 27 0033 0x1b
91 0133 0x5b
50 0062 0x32
48 0060 0x30
126 0176 0x7e

3.showkey -s (scan codes) shows
- Enter key shows " 0x1c 0x9c"
- F9 key shows " 0x43 0xc3"

keycode default values:
- keycode 67 = F9
- keycode 28 = KP_Enter

I would like to replace the "keycode 67 = KP_Enter", what command I have to use? or I want to replace escape key sequence of F9 from "^[[20~" to "^M" what is the procedure to do so?

( EscapeSequence Description DecimalHTML OctalASCII Hex Unicode
\r Carriage Return (CR) 13 015 0D \u000d

Thanks in Advance,
Srinivasu Anupindi
Old 04-03-2009, 02:46 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I'm not sure about the exact syntax, but you'll probably need to use xmodmap to reassign the keysyms to the keycodes you want.

It's also possible to use an "XkbOptions" line in xorg.conf to define individual keys. However, xorg is moving to dynamically configuring xorg with hal .fdi policy entries, so you may need to take that into account if you use a newer setup.

OTOH, I'm not sure how you'd map the keys outside of X. The underlying system uses a different keyboard mapping system.

Last edited by David the H.; 04-03-2009 at 02:48 PM.


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
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
"Installing non-distro Linux on USB key" or "Using syslinux to boot a jffs2" lymae Linux - Newbie 6 12-31-2006 10:00 PM
How to have mouse button act as "enter" key in bash xmrkite Linux - Software 7 10-17-2006 05:51 PM
key for ">, <" and "#" not working NightStranger Linux - Laptop and Netbook 2 05-24-2005 09:25 AM
PS2 keyboard doesn't work after the "Enter" key is used gonefishing SUSE / openSUSE 1 11-06-2004 10:02 PM > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration