Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

To be more clear, right now the volume and brightness keys are used and I have to hold 'fn' in order to execute an F1, F2, F3, F4, F5... command. Can I reverse this so it's function key by default and holding 'fn' enables the volume and other special controls?

share|improve this question
Are you looking for a per-user or system-wide setting? – ændrük Oct 15 '10 at 17:13
Could you specify what sort of keyboard this is; a stand-alone Apple USB keyboard, or something built into a laptop? This will help others with the same question find it more easily. – Jeremy Kerr Feb 17 '11 at 3:02

4 Answers 4

up vote 9 down vote accepted

This is described on the Ubuntu Community Wiki:

You can try:

sudo echo 2 > /sys/module/hid_apple/parameters/fnmode

If it works you can change this permanently (more info see the wiki page)

share|improve this answer

please try this when editing directly fnmode fails.

echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode

share|improve this answer

On older Apple laptop hardware, this is accomplished by a configuration setting of PBButtonsd. You would need to add this line to the config file /etc/pbbuttonsd.conf:

KBDMode = fkeysfirst  

PBButtonsd works on iBooks and PowerBooks (PowerPC-based) and MacBooks (Intel-based); the native Ubuntu package seems to have disappeared after Dapper Drake

share|improve this answer
Actually I'm running a Thinkpad T510, I just love these aluminum Apple keyboards. – ioSamurai Oct 17 '10 at 2:36

it may also be worthwhile to check your BIOS options for this feature. On my Dell Inspiron, this can be set through the BIOS. Hopefully it'll work for your hardware too.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.