turn screen brightness down automatically?

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
TheRedFox
Sophomore Member
Posts: 212
Joined: Sat Jan 17, 2009 2:27 am
Location: MN

turn screen brightness down automatically?

#1 Post by TheRedFox » Sun May 17, 2009 10:30 pm

I remember in Xubuntu, when the laptop got unplugged, the screen brightness would go down. Any idea what sort of command they used to do that? I have mine (using ACPI event) underclock to 600MHz CPU and 90MHz GPU when unplugged, but it would be nice if I could lower the screen brightness too. It doesn't matter that much, but if anyone happens to know, it'd be appreciated.
Thank you!
Frankenpad X31.5 (X31 casing, X32 motherboard) 1.8ghz Pentium M processor, 1gb RAM,
60gb HDD dual booting Arch GNU/Linux && Windows XP

uux
Freshman Member
Posts: 71
Joined: Thu Sep 06, 2007 2:24 pm
Location: Niagara Falls, NY

Re: turn screen brightness down automatically?

#2 Post by uux » Tue May 19, 2009 10:31 am

There is a command line utility called xbacklight. Support for changing the brightness using xbacklight varies between drivers, though. Another possibility is one of the many knobs under /sys or /proc.

Is it possible what you saw was the Display brightness setting in the BIOS? If it's set to High, then you won't notice a change when unplugging the power cable. If it is set to Normal, the display will dim a bit regardless of the OS.

TheRedFox
Sophomore Member
Posts: 212
Joined: Sat Jan 17, 2009 2:27 am
Location: MN

Re: turn screen brightness down automatically?

#3 Post by TheRedFox » Tue May 19, 2009 6:08 pm

I figured out that I can echo level + a number (0-7) to /proc/acpi/ibm/brightness
(as in "echo level 3 > /proc/acpi/ibm/brightness"). wow, Linux is pretty advanced!
now I have it set to do the following whenever the cord is unplugged:
cpufreq-set -f 600
rovclock -c 90 -m 100
echo level 3 > /proc/acpi/ibm/brightness

then when it becomes plugged in:
cpufreq-set -g ondemand
rovclock -c 144 -m 144
echo level 7 > /proc/acpi/ibm/brightness

I think the /proc folder might be one of my favorite aspects of Linux. well I guess just the everything being a file, in general.
Frankenpad X31.5 (X31 casing, X32 motherboard) 1.8ghz Pentium M processor, 1gb RAM,
60gb HDD dual booting Arch GNU/Linux && Windows XP

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests