You are not logged in.
Hi,
I've set up the pm-utils and followed the Wiki (that's excellent by the way) and everything works. I'm using Openbox + pypanel so I've added the buttons to pypanel and the entries in the menu.xml for the Openbox. After adding the "resume" module and creating the kernel image, everything works like a charm. The only problem is the brightness:
1) When I go to suspend and hibernate, after I return, the brightness is the dimmest possible, giving value 0 here:
[root@shakenbake ~]# cat /proc/acpi/video/IGFX/LCD/brightness
levels: 0 5 10 15 20 25 30 33 36 40 43 46 50 55 60 65 70 75 80 83 86 90 93 96 100
current: 0
[root@shakenbake ~]#
2) If I restart the machine and use just the AC adapter, the brightness is fine, if I unplug it, the acpi -a status changes and it's dimmed (that's great) and if I plug it in, the brightness is increased (gnarly )
I've edited the /etc/laptop-mode/laptop-mode.conf and I've set the variables turning ON the laptop-mode both when on AC and on battery. The brighness file shows value 0 for current regardless of me pluging out the AC cable or pluging it in , but the brightness changes normally.
What am I missing? By the looks of this, the brightness file in
/proc/acpi/video/IGFX/LCD/brightness
makes no difference it's always set to 0.
Any advice?
Offline
Anyone, anything?
Maybe I'll be more lucky with this question:
How come the brightness is changing and there is no change in the output for the following command:
[tomislav@shakenbake ~]$ cat /proc/acpi/video/IGFX/LCD/brightness
levels: 0 5 10 15 20 25 30 33 36 40 43 46 50 55 60 65 70 75 80 83 86 90 93 96 100
current: 100
[tomislav@shakenbake ~]$
after I resume after the pm-hibernate?
Offline
sorry for being annoying, but can someone at least direct me somehow regarding this? I would really like to use the pm-hibernate instead of shutting down the laptop....
Offline
For my laptop I can change the screen brightness like this:
{ jason @ blacklap [charged] : ~ }
04:56 May 01 $ cat /proc/acpi/video/VGA/LCD/brightness
levels: 20 24 28 32 37 43 50 59 69 81 95
current: 95
{ root @ blacklap [charged] : /etc/pm/sleep.d }
05:01 May 01 # echo "20" > /proc/acpi/video/VGA/LCD/brightness
{ root @ blacklap [charged] : /etc/pm/sleep.d }
05:01 May 01 # cat /proc/acpi/video/VGA/LCD/brightness
levels: 20 24 28 32 37 43 50 59 69 81 95
current: 20
Does this work for you? You could try something like:
echo "100" > /proc/acpi/video/IGFX/LCD/brightness
If that works it should be easy enough to add that to the resume script..I know you've said it reads 0 regardless, just wondering if you force it if it will change..might be something different about your graphics card than mine..
edit: just out of curiosity, are you using laptop-mode? i noticed after enabling lcd brightness control via laptop mode, the proc file no longer reflects the actual brightness. ie, i plug in to AC and /proc still thinks the brightness is at 50, but i the brightness does go up to max.
Last edited by jason_f (2010-05-02 07:18:41)
Offline
Hi jason_f,
thanks for the advice! Yeah I'm using laptop-mode. I have set the proper values from the /proc/acpi/video/[in your case here goes VGA]/LCD/brightness in the /etc/laptop-mode/conf.d/lcd-brightness.conf file. Just set the echo values to the ones you want from the interval defined in the first file. The second file is the brightness control for the laptop-mode and the instructions in this file are wrong (at least for my laptop and probably yours) because they point out to the wrong values in the wrong file to be used for the echo commands.
Offline