5

I've installed Ubuntu 16.04 and everything works great except that it doesn't recognize my keyboard layout properly.
When I click on keyboard layout chart Fn key doesn't appear there.

Also, shortcuts like Alt + F4 don't work. I have to hold Fn + Alt + F4 to work.

2
  • 4
    This is normal for some laptops - the media / system / brightness actions on the function keys take priority. You should be able to toggle this behavior in the Bios / Set-Up. Jun 16, 2016 at 10:32
  • 1
    Thanks @JonasCz, changed it in the BIOS and now it works as expected. Jun 16, 2016 at 10:39

2 Answers 2

6

As it won't.

Fn does not appear on keyboard layouts because as far as the operating system is concerned, it does not exist.

The Fn key is handled entirely by the microprocessor in the keyboard. Knowledge of it is not sent over the wire. There's no USB HID "usage" denoting it. It has no PS/2 scancode.

The keyboard's microprocessor uses the current Fn shift state (incorporating any "Fn lock" or latch) to determine the usages/scancodes that are sent over the wire for other keys, including the keys that double-up as both function keys and (say) multimedia keys. This is why you needed to press Fn+F4 to actually get F4 sent over the wire.

(In a number of modern keyboard microprocessors, there are four maps from physical keys to usages/scancodes, one for each of the four combinations of current Fn shift state and NumLock LED (sic!) state.)

For some keyboards with Fn keys, the manufacturer also provides a vendor-private USB output mechanism for setting the sense of the Fn shift state. This mechanism is what your firmware's SETUP utility is invoking, and what utilities like the Lenovo Keyboard "Driver" invoke on Windows. Outwith this, though, operating systems and applications have no knowledge of Fn.

Further reading

4

You can usually set this in the BIOS / Set-up utility. For example, my Dell 1558 has two modes:

  • The function keys control the media / brightness / system features directly, and if you want to use them as function keys, you have to press Fn + Fxx.

  • The "Normal" way where the function keys act as function keys, and you have to press Fn + Fxx to access the media / brigntess features.

This is not related to Ubuntu specifically, but also applies if you're using Windows.

1
  • (I'm adding this as an answer in addition to my comment so that the question is "answered") Jun 16, 2016 at 12:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .