LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 10-28-2004, 11:22 PM   #1
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Rep: Reputation: 15
Post DISCUSSION: Microsoft Keyboard Function Key Fix


This thread is to discuss the article titled: Microsoft Keyboard Function Key Fix
 
Old 11-06-2004, 05:26 PM   #2
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Original Poster
Rep: Reputation: 15
If the shell script in the tutorial doesn't work then you can change your /ect/X11/xkb/keycodes/xfree86 file to contain this:
Quote:
<FK01> = 187;
<FK02> = 136;
<FK03> = 135;
<FK04> = 119;
<FK05> = 120;
<FK06> = 121;
<FK07> = 122;
<FK08> = 194;
<FK09> = 195;
<FK10> = 163;
<FK11> = 215;
<FK12> = 216;
Make sure to comment out any other lines that have "= 187" or any of the other numbers in them. Also make sure the old FK01-FK12 lines are commented out.
 
Old 04-09-2005, 11:10 AM   #3
proglottis
LQ Newbie
 
Registered: Nov 2004
Location: NZ
Distribution: Gentoo
Posts: 8

Rep: Reputation: 0
For Logitech Elite Keyboards (might work with others too) try this:
Code:
setkeycodes e03b 59
setkeycodes e03c 60
setkeycodes e03d 61
setkeycodes e03e 62
setkeycodes e03f 63
setkeycodes e040 64
setkeycodes e041 65
setkeycodes e042 66
setkeycodes e043 67
setkeycodes e044 68
setkeycodes e057 87
setkeycodes e058 88
 
Old 03-25-2006, 07:04 AM   #4
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Great! Thanks for the tip!
 
Old 07-22-2007, 04:47 PM   #5
GamerX
Member
 
Registered: Nov 2006
Location: Vancouver, BC
Distribution: Slackware
Posts: 102

Rep: Reputation: Disabled
Using these values for a "Microsoft MultiMedia Keyboard 1.0A" (with desired results )
Code:
setkeycodes bb 59 # Help  -> F1
setkeycodes 88 60 # Undo  -> F2
setkeycodes 87 61 # Redo  -> F3
setkeycodes be 62 # New   -> F4
setkeycodes bf 63 # Open  -> F5
setkeycodes c0 64 # Close -> F6
setkeycodes c1 65 # Reply -> F7
setkeycodes c2 66 # Fwd   -> F8
setkeycodes c3 67 # Send  -> F9
setkeycodes a3 68 # Spell -> F10
setkeycodes d7 87 # Save  -> F11
setkeycodes d8 88 # Print -> F12
Also useful bit of code to add to /etc/rc.d/rc.local (or equivalent):
Code:
#Fix the F-Lock scan codes for F1-F12 on Microsoft MultiMedia Keyboards
if [ -x /usr/local/bin/f_lock_fix ]; then
	echo "Fixing the F-Lock scan codes for F1-F12 keys...";
	/usr/local/bin/f_lock_fix;
fi
EDIT: The "showkey" command is useful to find the scancodes for a different version.

Last edited by GamerX; 07-22-2007 at 04:49 PM.
 
Old 11-21-2007, 10:22 AM   #6
arielito
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
You may want to check out Keytouch:

http://keytouch.sourceforge.net/

I worked really fine for me.

Discussed here:
http://ubuntuforums.org/showthread.php?t=185478&page=2
 
Old 04-30-2008, 02:33 PM   #7
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Rep: Reputation: 17
It looks very clever. However, if I run it as myself, I get "operation not permitted". If I run it as root, I get "invalid argument". I'd just press the silly F-Lock key, except that it is continually and regularly turning itself off, so I am pressing it over and over and over .... Very, very tiresome. Also, the scan codes for the "Microsoft Wireless Natural MultiMedia Keyboard" are different:

setkeycodes 0x8A 59
setkeycodes 0x83 60
setkeycodes 0xB6 61
setkeycodes 0xB5 62
setkeycodes 0x8F 63
setkeycodes 0xCE 64
setkeycodes 0xE8 65
setkeycodes 0xE9 66
setkeycodes 0xE7 67
#etkeycodes 0x00 68
setkeycodes 0xEA 69
setkeycodes 0xD2 70

node that F10 does not even emit a recognizable scan code, unless the "F-Lock" is on. Then it does just fine. Argh!!!!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Public key authentication with ssh david_ross LinuxAnswers Discussion 31 02-02-2011 09:13 AM
Major problems with the keyboard! Microsoft keyboard is not compatable?. aweir14150 Mandriva 2 05-26-2006 07:57 AM
DISCUSSION: Laptop crashes when power source is changed fix bufo333 LinuxAnswers Discussion 1 02-06-2005 12:21 PM
Microsoft keyboard function keys don't work psilos Linux - Hardware 0 10-19-2003 01:01 PM
Microsoft KeyBoard Top Function Buttons... linuxnoobgod Linux - Newbie 3 05-18-2003 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration