I was on Debian 8 (Jessie), and I believe the way I was controlling differential screen brightness on battery/ac power was through a short script in /etc/pm/power.d/ which looked like this:
Code: Select all
#!/bin/bash
case $1 in
true) #on battery
echo 250 > /sys/class/backlight/intel_backlight/brightness
;;
false) #on ac
echo 937 > /sys/class/backlight/intel_backlight/brightness
;;
esac
Now, I have switched to Debian Unstable, and it seems to have broken that functionality. I've identified "intel_backlight" as the correct device, and it changes if I use the following command:
Code: Select all
echo <int> | sudo tee /sys/class/backlight/intel_backlight/brightness
The script, however, no longer seems to have any effect. I've Googled around extensively but can't seem to find the right advice for the newer Debian sources.