Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

change screen brightness on battery and ac power on Sid

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
glarue
Posts: 2
Joined: 2016-08-11 20:49

change screen brightness on battery and ac power on Sid

#1 Post by glarue »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: change screen brightness on battery and ac power on Sid

#2 Post by phenest »

I have a Dell XPS 17 and the brightness control didn't work on Stretch, so I added this to the kernel boot parameters:

Code: Select all

acpi_backlight=video
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: change screen brightness on battery and ac power on Sid

#3 Post by debiman »

glarue wrote:Now, I have switched to Debian Unstable, and it seems to have broken that functionality.
i'd suggest you use systemd functionality to get that working again.

the top results look relevant:
https://duckduckgo.com/?q="systemd"+scr ... op+battery

Post Reply