On 2020-09-01 19:13, Samuel Sieb wrote:
Does anyone know how to produce "Fn" from a standard desktop keyboard?
The Fn key by itself does nothing. It just changes the code sent by the keyboard when the F8 (or whatever) key is pressed. The tricky bit is that sometimes it's not a key that gets sent, it might be an ACPI or WMI message (I think those are the correct acronyms). But there is also a standard key code for monitor switching which you could map to some other key on the external keyboard. I'm using Wayland, so xev doesn't work for me. However, using evtest, the kernel keycode is "KEY_SWITCHVIDEOMODE" and I think that translates to something like "XF86VidMode" in X.
° Well then the next thing I will do is see how the F8 key code changes when Fn is pressed. It did not occur to me, I just expected Fn to be another key code which it seems it is not. /If it will retain the present setting through a reboot I may never have to use it.
Thanks for the explanation, /