Page 1 of 1

Puppy on MacBook: Keyboard backlight not working

Posted: Mon Mar 10, 2025 11:09 pm
by n-at-han-k

Just an update for EasyOS users...
I'm using Macbook Air 2017, and keyboard light doesn't work.

Bash seems to be configured with "noclobber" set. So when trying to write to

Code: Select all

/sys/class/leds/smc::kbd_backlight/brightness

it gives the error "cannot overwrite existing file".

My working script is as follows.

Code: Select all

#!/bin/bash

set +o noclobber
modprobe applesmc
echo 10 > /sys/class/leds/smc::kbd_backlight/brightness
set -o noclobber

Place this in

Code: Select all

/root/Startup

with the filename

Code: Select all

keyboard_backlight

and then run

Code: Select all

chmod +x /root/Startup/keyboard_backlight

Re: Puppy on MacBook: Keyboard backlight not working

Posted: Mon Mar 17, 2025 5:17 pm
by eric52

Hey thanks, n-at-han-k. I actually prefer Macs for puppy, etc., because they have high perceived value, and people are more likely to take them home. I've never actually used Mac software, and I didn't know there was supposed to be a keyboard backlight. That's definitely a value-added feature for most folks. I'll give your script a try. It figures only have iMacs at the moment.