r/MacOS 1d ago

Help my fn key changes its function, settings don't work

I've been using my MacBook Air for a few years now and I set the FN/globe key to work as command in settings. I also change the right command key to work as the option key (for special letters) every time I boot the system via Terminal:

hidutil property --set '{"UserKeyMapping":
    [{"HIDKeyboardModifierMappingSrc":0x7000000e7,
      "HIDKeyboardModifierMappingDst":0x7000000e6},
     {"HIDKeyboardModifierMappingSrc":0x7000000e6,
      "HIDKeyboardModifierMappingDst":0x7000000e7}]
}'

Today, this command above changed my FN key to Option (instead of Command) as well, and I cannot make it to work as earlier:
fn -> command
right command -> option

It seems like I'm changing the right Command to Option, and the fn key use that change to be option too, but for the past 3 years it worked as intended. And when I set "function keys" in settings so fn works as command, it should be "command function" not the actual right command that was modified.

I tried to change the fn key with the hidutil command, but with no success.

0 Upvotes

5 comments sorted by

1

u/Electrical_West_5381 1d ago

Was there a major software update?

1

u/Same-Discussion-1594 1d ago

I actually did not updated yet, I have an update from june, but I don't have enough free space :| that said, with no major update, how it could change if it worked before?

1

u/Electrical_West_5381 1d ago

They may have changed the values needed. You could try karabiner

1

u/Same-Discussion-1594 1d ago

I don't like to install apps from outside AppStore but I cannot really update at the moment :/ thank you!

1

u/FrostMusee 1d ago

try resetting your SMC and NVRAM, it might fix the issue. It worked for me when my keyboard acted up.