mattsteven Apprentice
Joined: 27 Oct 2003 Posts: 240 Location: Your Planet
|
Posted: Fri Jun 30, 2006 10:41 pm Post subject: Microsoft natural keyboard f-lock function key light fix |
|
|
Something that's been annoying me for some time, and now isn't. Hope it helps the dozen or so threads requesting info on this subject.
If your function keys don't work on your MS Natural keyboard you can set up an init script like so which will make the F keys work despite not having the F mode on.
Maybe someone can post the correct codes for logitec keyboards that have the same misfeature.
Put this into /etc/init.d/functionkeys
Code: |
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need localmount
}
start() {
ebegin "Enabling F-keys"
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 69 # Save -> F11
setkeycodes d8 70 # Print -> F12
eend $? "Failed to enable F-keys"
}
stop() {
ebegin "F-keys not turn-off-able"
eend $? "Failed to disable F-keys"
} |
Then
Code: | chmod +x /etc/init.d/functionkeys
rc-update add functionkeys boot
|
Found the basis for this fix here: http://www.linuxquestions.org/linux/answers/Hardware/Microsoft_Keyboard_Function_Key_Fix _________________ Matthew Steven
Linux-only desktop since 1998
Graying hair since 2006 |
|