LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Trying to use F keys without pressing Fn in Gnome (https://www.linuxquestions.org/questions/linux-desktop-74/trying-to-use-f-keys-without-pressing-fn-in-gnome-4175436052/)

chutsu 11-07-2012 05:58 AM

Trying to use F keys without pressing Fn in Gnome
 
I have a mac standard chicklet keyboard, and have been irratated by the fact I have to press the Fn key all the time in order to use the F keys at the top. How do you use F keys as intended?

Currently running Debian Squeeze
Gnome version 2.30.2

Thanks

druuna 11-07-2012 06:28 AM

Function key behaviour is set in: /sys/module/hid_apple/parameters/fnmode

The following are valid tokens:
Quote:

0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8'
1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key. Pressing 'fn'+'F8' will behave like a F8.
2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8. Pressing 'fn'+'F8' will act as special key (play/pause).
You require 2 to use the function keys as desired. First try this from the command line (as root):
Code:

echo 2 > /sys/module/hid_apple/parameters/fnmode
If that works, you can make it stick by adding that line to /etc/rc.local (before the exit command).

I run Debian (single boot) on a MacBook Pro and the above solved this problem.

chutsu 11-07-2012 08:34 AM

Thanks a lot, works like a charm! :)


All times are GMT -5. The time now is 01:46 AM.