Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

satyapraneet63
Copy link

I use a 2019 macbook air and the keyboard keys for backlight do not work out of the box. Made a issues post and a discussion on it and got some feedback.
Adding my commit to the default media.conf could help with the out of the box experience.

Possible Issues:

my keyboard uses apple::kbd_backlight call. I have seen another person have a smc::kbd_backlight call. We could make the vendor into a variable and pass into it, but I do not know how to call it.

References:

#2291
#1779

@marcusholmgren
Copy link

I have a MacBook Pro 15" model A1707

brightnessctl -l
Device 'spi::kbd_backlight' of class 'leds':
       Current brightnesss: 255 (100%)
       Max brightness: 255

Set the keyboard backlight to 100%

brightnessctl -d 'spi::kbd_backlight' set 100%

@satyapraneet63
Copy link
Author

Damn. I can see why this is not a built-in feature. Changes from laptop to laptop

@hoblin
Copy link

hoblin commented Oct 11, 2025

On Intel MBP 2020 with touchbar, I use this:

# Keyboard backlight controls
bindel = ,XF86KbdBrightnessUp, exec, brightnessctl -d ':white:kbd_backlight' set 5%+
bindel = ,XF86KbdBrightnessDown, exec, brightnessctl -d ':white:kbd_backlight' set 5%-

@barrybro
Copy link

On my 2015 MBP, the following code works for me.
The key is that for me the device name is smc::kbd_backlight

#Laptop multimedia keys for keyboard brightness (with OSD)
$keysswayosd = $osdclient --custom-progress=$(awk "BEGIN {print $(brightnessctl --device=smc::kbd_backlight get)/255}") --custom-icon=input-keyboard
bindeld = ,XF86KbdBrightnessDown, Keyboard Brightness down, exec, brightnessctl --device=smc::kbd_backlight set 10%- && $keysswayosd
bindeld = ,XF86KbdBrightnessUp, Keyboard Brightness up, exec, brightnessctl --device=smc::kbd_backlight set +10% && $keysswayosd

# Precise 1% multimedia adjustments with Alt modifier
bindeld = ALT, XF86KbdBrightnessDown, Keyboard Brightness down precise, exec, brightnessctl --device=smc::kbd_backlight set 1%- && $keysswayosd
bindeld = ALT, XF86KbdBrightnessUp, Keyboard Brightness up precise, exec, brightnessctl --device=smc::kbd_backlight set +1% && $keysswayosd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.