Puppy on MacBook: Keyboard backlight not working

Moderator: BarryK

Post Reply
n-at-han-k
Posts: 4
Joined: Fri Aug 30, 2024 10:08 pm
Been thanked: 4 times

Puppy on MacBook: Keyboard backlight not working

Post 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
User avatar
eric52
Posts: 32
Joined: Tue Mar 11, 2025 12:20 am
Location: CT USA
Has thanked: 13 times
Been thanked: 2 times

Re: Puppy on MacBook: Keyboard backlight not working

Post 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.

I don't use TahrPup anymore, but I still like it. Bookworm, S15, KLA-KDE, KLV, Noble, FossaDog, BionicDog, and BionicPup-Revival on every machine, 'cause I'm always breaking something. First line of code - 1968.

Post Reply

Return to “EasyOS”