Laptop backlight/S1 in 2.6.6 vanilla
I'm running vanilla 2.6.6 on a dell latitude c400 (fedora core 2). I have my sleep script set to shut off the display backlight in X before echo 1 > /proc/acpi/sleep, but the backlight turns back on the moment my machine enters sleep mode. does anyone have any idea why this is happening?
-Vibol
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
A message that is not in the archive (sent off-list or not yet received): 40B1D0BA.8080303-LA8/[email protected]
Quoted 5 lines
I'm running vanilla 2.6.6 on a dell latitude c400 (fedora core 2). I have my sleep script set to shut off the display backlight in X before echo 1 >
/proc/acpi/sleep, but the backlight turns back on the moment my machine enters sleep mode. does anyone have any idea why this is happening?
I guess you use <xset dpms force off> to turn the backlight off. The kernel switches from X to the console, and that turns the backlight on again.
What video card do you have? Perhaps loading a frame buffer kernel driver for your card helps.
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
Hi!
Quoted 5 lines
I'm running vanilla 2.6.6 on a dell latitude c400 (fedora core 2). I have my sleep script set to shut off the display backlight in X before echo 1 >
/proc/acpi/sleep, but the backlight turns back on the moment my machine enters sleep mode. does anyone have any idea why this is happening?
Kernel switches to text console and stops processes. It should not be neccessary for S1 and is likely to cause your problem.
Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
A message that is not in the archive (sent off-list or not yet received): 20040525192551.GM5215-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org
Is it safe to comment out the code that's switching the VC? -Vibol
Quoted 5 lines
Kernel switches to text console and stops processes. It should not be neccessary for S1 and is likely to cause your problem.
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
I commented out pm_prepare_console() and pm_restore_console() in kernel/power/main.c and the screen no longer turns back on. However, I'm still uncertain if this is safe. What I do notice is that some keyboard input still makes it into the terminal where I have initiated sleep from while the machine is in S1 so it appears after I wake up the machine.
Somehow, this has also resolved another problem I had with the machine cycling in and out of S1 mode a few times before finally staying awake.
-Vibol
Quoted 4 lines · Pavel Machek
Hi!
Quoted 9 lines
Quoted 3 lines
I'm running vanilla 2.6.6 on a dell latitude c400 (fedora core 2). I have my sleep script set to shut off the display backlight in X before echo 1 >
/proc/acpi/sleep, but the backlight turns back on the moment my machine enters sleep mode. does anyone have any idea why this is happening?Kernel switches to text console and stops processes. It should not be neccessary for S1 and is likely to cause your problem.
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
A message that is not in the archive (sent off-list or not yet received): 40B6EB6F.4090508-LA8/[email protected]
Hi!
Quoted 6 lines
I commented out
pm_prepare_console()andpm_restore_console()inkernel/power/main.cand the screen no longer turns back on. However, I'm still uncertain if this is safe. What I do notice is that some keyboard input still makes it into the terminal where I have initiated sleep from while the machine is in S1 so it appears after I wake up the machine.
It should be safe for S1. Not sure about S3, and it is bad idea for S4.
Quoted 2 lines
Somehow, this has also resolved another problem I had with the machine cycling in and out of S1 mode a few times before finally staying awake.
Good.
Pavel
Signature · 8 lines
934a471f20d6580d5aad759bf0d97ddc ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click