Is there a working solution to set up Apple Aluminium keyboard on Ubuntu with F13-F15 remapped to Print Screen, Scroll Lock and Pause?
So far, I came up with the following solution:
- In /etc/default/keyboard, set
- Make sure
apple:alupckeysis 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
XKBOPTIONSin /etc/default/keyboard doesn't seem to have any effect since the settings in Gnome have higher prioriry.
With the steps above, Keyboard Layout Chart shows the following picture:
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?