Is there a working solution to set up Apple Aluminium keyboard on Ubuntu with F13-F15 remapped to Print Screen, Scroll Lock and Pause?

Apple Aluminum Keyboard

So far, I came up with the following solution:

  1. In /etc/default/keyboard, set XKBMODEL="applealu_ansi".
  2. Make sure apple:alupckeys is in xkb-options (e.g. gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch', 'grp:ctrl_shift_toggle', 'misc:typo', 'apple:alupckeys']"). Setting XKBOPTIONS in /etc/default/keyboard doesn't seem to have any effect since the settings in Gnome have higher prioriry.
  3. Reboot.

With the steps above, Keyboard Layout Chart shows the following picture:

eKeyboard Mapping

All three Print Screen, Scroll Lock and Pause are recognized correctly. They are highlighted on the chart when corresponding keys are pressed on the keyboard. But the problem is that neither Print Screen, nor Pause (I use it as a replacement for Ctrl+Alt+L to lock screen) don't work. Sometimes cursor disappears when Print Screen is pressed, but the actual screenshot is not taken.

Another problem is that with applealu_ansi set as the keyboard model, the Alt+Tab combination starts closing windows while switching through them. Is it a bug or feature?

I've been observing the above behavior on two different computers with Ubuntu 16.04, so it doesn't seem a misconfiguration issue.

Any ideas on how to set it up correctly?

1 Answer 1







terminal > xev > press key > view keycode xxx

then remap

xmodmap -e "keycode xxx = [event]"

[event]=Print, Scroll_Lock, Pause

You must log in to answer this question.

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