LCD brightness on ubuntu (hardy) partial solution
I have been trying to fiddle around with ubuntu to try the system to set my LCD brightness to minimum when the machine boots up, so far I've been able to partially fix the problem by adding a script that looks like this into the gnome sessions by adding the command
gksudo /home/jvictor/.bright/set_brightness.sh
This is the content of the script
#!/bin/bash
echo 10 > /proc/acpi/video/GFX0/LCD/brightness
I guess that
#!/bin/bash
echo 10 > /sys/class/backlight/acpi_video0/brightness
should also work
Now edit the sudoers file to have an entry
jvictor ALL = (ALL) NOPASSWD: /home/jvictor/.bright/set_brightness.sh
This ensures that the script is run as root without bugging me for a password.
This solution works when I log in after a reboot. However it fails when the system resumes from sleep or hibernate.
I tried putting in scripts in /etc/init.d etc /usr/lib/pm-utils/sleep.d but it does not help the cause, maybe I need to spend a few more hours on this..
IF anyone has any idea on how to get this working it'll be very helpful and I can save a few hours of time !

1 Comments:
on my ProBook 4515s the command is
echo 100 > /proc/acpi/video/EGFX/LCD/brightness
either as root or sudo...
Strange thing is that I first need to set it to something lower (50) then back to 100. Becuase it thinks it is already on 100, when actually it is not....
Post a Comment
Subscribe to Post Comments [Atom]
Links to this post:
Create a Link
<< Home