Disabling the fn key in Wayland?

https://piefed.blahaj.zone/post/340904

Disabling the fn key in Wayland?

Hi! So, I have a 2014 MacBook Pro with the fn key permanently taped down. Which is fine when running macOS, as the fn key is disabled in system set…

The firmware might be hijacking the fn key. If you use one of the keycode-reporting tools, does it report the fn key? and what is fn+enter or fn+backspace being reported as? if you’re not seeing the fn key, or if say fn+enter is reported as a singular key instead of two keys, maybe you could bind that “key” to enter?

If the Mac settings panel has an option to lock the F-keys to either F1-F12 or the keybinds, that option may be stored in the firmware, so for those keys simply reversing it in firmware may be enough.

With the fn key taped down, I’m sadly unable to do fn+enter or fn+backspace. However, fn never shows up with sudo keyd monitor, sudo evtest, or xev. I’ve just tried setting fn to insert (enter) and delete (backspace) via keyd, but no luck there either. :c

Seems like the fn key is intercepted by the firmware then, that sucks. I’m repeating the same question differently just to ensure we’re on the same page:

If I understood correctly, your fn key is constantly “active”, making any key with an fn-modifier act as a different key, and that is why forexample the enter-button won’t be… well, enter? but if it enter acts as a different key, i.e. pressing enter gives a totally different keycode, can’t you rebind whatever keycode that turns into, into enter?

I did a super surface-level quick search, it seems like the older macbooks have had some firmware reverse engineering done. Might be some options there. Also, your issue may be a common case of a specific board trace needing new solder, which might not be too hard. Maybe that guy who does apple repairs/right to repair has something on this, or a community who may know. Louis Rossman something? can’t recall.

Also, you may’ve mentioned in your original post, but are there other keys that could work? doesn’t mac have that extra “option” key? i think i read that ctrl+fn key could be switched on a firmware level, if that means the ctrl key is then intercepted by the firmware I guess it won’t add much, but if all else fails, could be worth checking if it acts differently.

good luck, I don’t have any more ideas but I’m rooting for you, would be interesting to hear if you find a solution.

At first, I thought it might be some hardware issue like that. But it really is macOS shutting itself down after 500 ms of inactivity. Some kind of trigger related to the liquid contact indicator is my best guess.

Back when I switched to Linux, I still hadn’t taped down the fn key. That’s how I realized my laptop was actually fine, even without any key taped down. It runs better on Arch than on Mojave, too. If I ended up taping down the fn key, it’s only because I still need to use macOS from time to time.

But that’s okay, I can live without the fn key! And now that I can use my internal keyboard while running Linux, it’s gonna be all good. Thanks. c: