I have a nice keyboard that doesn’t have an Fn key. When I restart the Fn behaviour is enabled, so I need to disable it. This can be done with:
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
I forget how to do this so this post is a reminder for me.