Skip to content

Instantly share code, notes, and snippets.

@theodric
Created April 13, 2025 18:15
Show Gist options
  • Save theodric/35129aa2b6d291b2916051dbe47fe26f to your computer and use it in GitHub Desktop.
Save theodric/35129aa2b6d291b2916051dbe47fe26f to your computer and use it in GitHub Desktop.
systemd service file to crank 2015 MacBook Air's keyboard backlight to the max during system bringup
[Unit]
Description=set MacBook Air keyboard backlight brightness to max on boot
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo 255 > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness'
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment