Quantcast
Channel: Ubuntu Forums - Apple Hardware Users
Viewing all articles
Browse latest Browse all 2868

[ubuntu] Keyboard backlight on resume

$
0
0
I have
Code:

echo '5' > /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness
echo '25' > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness

in rc.local to automatically adjust screen brightness and keyboard backlight on boot.

And I have
Code:

#!/bin/bash
case "$1" in
thaw|resume)
echo '25' > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness
;;
*)
;;
esac
exit $?

in /etc/pm/sleep.d/kbd_brightness

This works if I manually click suspend, but if I close my laptop to make it suspend, on resume the keyboard is all the way bright again.

I just want my keyboard to not be all the way on all the time.

Kopkins

Viewing all articles
Browse latest Browse all 2868

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>