public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Laptop backlight/S1 in 2.6.6 vanilla
@ 2004-05-24 10:38 Vibol Hou
       [not found] ` <40B1D0BA.8080303-LA8/tbxb0N8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Vibol Hou @ 2004-05-24 10:38 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Laptop backlight/S1 in 2.6.6 vanilla
       [not found] ` <40B1D0BA.8080303-LA8/tbxb0N8@public.gmane.org>
@ 2004-05-24 20:18   ` Stefan Dösinger
  2004-05-25 19:25   ` Pavel Machek
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Dösinger @ 2004-05-24 20:18 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Vibol Hou

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Laptop backlight/S1 in 2.6.6 vanilla
       [not found] ` <40B1D0BA.8080303-LA8/tbxb0N8@public.gmane.org>
  2004-05-24 20:18   ` Stefan Dösinger
@ 2004-05-25 19:25   ` Pavel Machek
       [not found]     ` <20040525192551.GM5215-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Pavel Machek @ 2004-05-25 19:25 UTC (permalink / raw)
  To: Vibol Hou; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

> 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.
-- 
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Laptop backlight/S1 in 2.6.6 vanilla
       [not found]     ` <20040525192551.GM5215-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
@ 2004-05-28  2:33       ` Vibol Hou
  2004-05-28  7:34       ` Vibol Hou
  1 sibling, 0 replies; 6+ messages in thread
From: Vibol Hou @ 2004-05-28  2:33 UTC (permalink / raw)
  To: Pavel Machek; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Is it safe to comment out the code that's switching the VC?
-Vibol

>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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Laptop backlight/S1 in 2.6.6 vanilla
       [not found]     ` <20040525192551.GM5215-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
  2004-05-28  2:33       ` Vibol Hou
@ 2004-05-28  7:34       ` Vibol Hou
       [not found]         ` <40B6EB6F.4090508-LA8/tbxb0N8@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Vibol Hou @ 2004-05-28  7:34 UTC (permalink / raw)
  To: Pavel Machek; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

Pavel Machek wrote:

>Hi!
>
>  
>
>>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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Laptop backlight/S1 in 2.6.6 vanilla
       [not found]         ` <40B6EB6F.4090508-LA8/tbxb0N8@public.gmane.org>
@ 2004-05-28  8:08           ` Pavel Machek
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel Machek @ 2004-05-28  8:08 UTC (permalink / raw)
  To: Vibol Hou; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

> 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.

It should be safe for S1. Not sure about S3, and it is bad idea for
S4.

> 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

-- 
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-28  8:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-24 10:38 Laptop backlight/S1 in 2.6.6 vanilla Vibol Hou
     [not found] ` <40B1D0BA.8080303-LA8/tbxb0N8@public.gmane.org>
2004-05-24 20:18   ` Stefan Dösinger
2004-05-25 19:25   ` Pavel Machek
     [not found]     ` <20040525192551.GM5215-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2004-05-28  2:33       ` Vibol Hou
2004-05-28  7:34       ` Vibol Hou
     [not found]         ` <40B6EB6F.4090508-LA8/tbxb0N8@public.gmane.org>
2004-05-28  8:08           ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox