The 2020 M1 Macbook Air lacks keys to adjust keyboard brightness and F5 and F6 don’t appear to have any effect.
Is there a way to adjust - especially to turn off - the keyboard backlight?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityIf you want to be able to adjust the keyboard backlight with F5 and F6 again, you can install Karabiner-Elements to remap the keys. This worked for me on an M1 Macbook Air (2020), running macOS 11.2.1 Big Sur, and the version of Karabiner-Elements I have right now is 13.3.0.
Install with Homebrew
brew install karabiner-elements
Open Karabiner-Elements. The icon looks like this:
Since it needs to see your keystrokes and modify them, you'll need to enable some accessibility permissions. I can't remember exactly which, but you should be prompted to enable them when you open the app.
With Karabiner-Elements open, click on the "Function keys" tab, and set f5
to illumination_down
and f6
to illumination_up
. Uncheck "Use all F1, F2, etc. keys as standard function keys" if it's checked.
F5 and F6 should now attempt to change the the keyboard brightness, but they don't always work, and sometimes you get an icon with a 🚫 flash on the screen (see this GitHub issue for details). Oddly enough, whether it works or not depends on the ambient lighting in the room. To fix this, you need to disable the "Adjust keyboard brightness in low light" setting. Go to the macOS keyboard preferences menu (System Preferences > Keyboard), and uncheck it.
You may notice in the screenshot that the "Use F1, F2, etc. keys as standard function keys" option is checked here. It doesn't appear to have any effect whether it is checked or not, but the setting in Karabiner-Elements does matter.
Apple supports a official way to remap the old style by f5/f6 keys!
It was the first thing which i've changed on a new M2 MacBook. I have no needs for the original keymappings to microphone or sleep, so i found this solution is very handy if you know this keys from older Apple Devices and can live by the misslabled Keysymbols. Found this solution on Reddit¹
Create a new plist file in ~/Library/LaunchAgents
named com.local.KeyRemapping.plist
and add the code below. Save the file and reboot. F5 and F6 will now work as keyboard brightness up/down keys (after you log in for the first time after rebooting).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.local.KeyRemapping</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
<string>--set</string>
<string>{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": 0xC000000CF,
"HIDKeyboardModifierMappingDst": 0xFF00000009
},
{
"HIDKeyboardModifierMappingSrc": 0x10000009B,
"HIDKeyboardModifierMappingDst": 0xFF00000008
}
]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
There exists also Web-Editors to generate more functions on keys²
And under Link 3 is an Apple Developer Link for more Infos about Keycodes.