Skip to contentSkip to conversation

thinkpad suspend to ram and backlight

DISCUSSION Pavel Machek 7 participants 14 messages Oct 2, 2005 – Oct 4, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?
Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address
#1 lore raw

Dne ne 2. října 2005 19:57 Pavel Machek napsal(a):

Quoted 7 lines

Hi!

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?
Pavel

Hi,

if your thinkpad has ati radeon, you can use this:

http://www.thinkwiki.org/wiki/Radeontool

Signature · 2 lines
Jan Spitalnik
[email protected]
#2 lore raw

Hi!

Quoted 8 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

if your thinkpad has ati radeon, you can use this:

http://www.thinkwiki.org/wiki/Radeontool

There were patches floating around. I'd like to see those patches even if I can work around that with radeontool.
Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address
#3 lore raw
In reply to Jan Spitalnik

Hi!

Quoted 8 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

if your thinkpad has ati radeon, you can use this:

http://www.thinkwiki.org/wiki/Radeontool

radeontool light off before suspend indeed works, but I'd like to solve it properly.
Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address
#4 lore raw
Quoted 7 lines · Pavel Machek

Hi!

Quoted 5 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Quoted 6 lines
Quoted 3 lines

if your thinkpad has ati radeon, you can use this:

http://www.thinkwiki.org/wiki/Radeontool

radeontool light off before suspend indeed works, but I'd like to solve it properly.

Well, it depends what you call "properly". There are indeed some patches floating around that put the radeon chip in D2 state, that seem to help. The problem is that the actual backlight control is a bit dodgy. That is, some laptops use a separate chip from the radeon, some use the radeon but have an inverted backlight signal, etc... and radeonfb doesn't quite know how to deal with those cases (it has some hard coded lists of machines with infos on how to deal with them for ppc).

Just dig around the list for the thinkpad suspend patches. I'm not 100% sure they are correct yet though, but I suppose I should give them another review and eventually merge them one of these days.

Ben.

#5 lore raw

Hi!

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

if your thinkpad has ati radeon, you can use this:

http://www.thinkwiki.org/wiki/Radeontool

radeontool light off before suspend indeed works, but I'd like to solve it properly.

Well, it depends what you call "properly".

I'd like it to work as well as it does for PPC :-).

Quoted 3 lines

There are indeed some patches
floating around that put the radeon chip in D2 state, that seem to help.

I found that patch with a little help from the list. Unfortunately, it makes things worse (not better) on my X32. [There was another regression here. With 2.6.8 or so, backlight was off during S3 sleep (but chip still running and eating power). With 2.6.14-rc3, not only chip is running, but backlight is forced to max to add an insult to the injury].
Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address
#6 lore raw
Quoted 6 lines · Pavel Machek

I found that patch with a little help from the list. Unfortunately, it makes things worse (not better) on my X32. [There was another regression here. With 2.6.8 or so, backlight was off during S3 sleep (but chip still running and eating power). With 2.6.14-rc3, not only chip is running, but backlight is forced to max to add an insult to the injury].

You may have one of those setups with the backlight working backward...

Ben.

#7 lore raw
In reply to Pavel Machek

http://www.ussg.iu.edu/hypermail/linux/kernel/0503.2/0268.html

daniel

Quoted 22 lines · --- Pavel Machek

Hi!

When I suspend to RAM on x32, backlight is not
turned off. (And, IIRC,
video chips is not turned off, too). Unfortunately, backlight is not
turned even when lid is closed. I know some patches
were floating
around to solve that... but I can't find them now.
Any ideas?
Pavel

Signature · 9 lines
if you have sharp zaurus hardware you don't need...
you know my address
-
To unsubscribe from this list: send the line
"unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at 
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

#8 lore raw
In reply to Pavel Machek
Quoted 6 lines · Pavel Machek

Hi!

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Which framebuffer driver? Vesafb works for Timo, at least he did not complain lately ;-)

Signature · 3 lines
Stefan Seyfried                  \ "I didn't want to write for pay. I
QA / R&D Team Mobile Devices      \ wanted to be paid for what I write."
SUSE LINUX Products GmbH, Nürnberg \                    -- Leonard Cohen
#9 lore raw

Hi!

Quoted 7 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Which framebuffer driver? Vesafb works for Timo, at least he did not complain lately ;-)

I really want radeonfb... I can try vesa, but long term this needs solutions in radeon.
Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address
#10 lore raw
Quoted 7 lines · Pavel Machek

Hi!

Quoted 5 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Quoted 7 lines
Quoted 2 lines

Which framebuffer driver? Vesafb works for Timo, at least he did not complain lately ;-)

I really want radeonfb... I can try vesa, but long term this needs solutions in radeon.
Pavel

You could use radeontool [1] as a temporary solution.

-Rolf

[1] http://fdd.com/software/radeon/

#11 lore raw
In reply to Stefan Seyfried

Hi,

Quoted 10 lines · Stefan Seyfried
Quoted 6 lines · Pavel Machek

Hi!

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Which framebuffer driver? Vesafb works for Timo, at least he did not complain lately ;-)

It's never too late to complain: I just gave it a try with vesfb. Backlight stays on.

When eying the display precisely it seems to be switched off for a short moment once the system enters S3 but then gets turned on again.

Timo

#12 lore raw

Hi!

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

When I suspend to RAM on x32, backlight is not turned off. (And, IIRC, video chips is not turned off, too). Unfortunately, backlight is not turned even when lid is closed. I know some patches were floating around to solve that... but I can't find them now. Any ideas?

Quoted 8 lines
Quoted 2 lines

Which framebuffer driver? Vesafb works for Timo, at least he did not complain lately ;-)

It's never too late to complain: I just gave it a try with vesfb. Backlight stays on.

When eying the display precisely it seems to be switched off for a short moment once the system enters S3 but then gets turned on again.

Yes, same with radeonfb here.

I use

#!/bin/bash
radeontool light off
echo 3 > /proc/acpi/sleep
radeontool light on

...and it works most of the time. Sometimes screen is corrupted after resume, another suspend/resume cycle cures that. (Strange!)

Pavel

Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address
#13 lore raw

Hi,

Quoted 11 lines · Pavel Machek
Quoted 2 lines

When eying the display precisely it seems to be switched off for a short moment once the system enters S3 but then gets turned on again.

Yes, same with radeonfb here.

I use

#!/bin/bash
radeontool light off
echo 3 > /proc/acpi/sleep
radeontool light on

Well, if we're already discussing workarounds which shouldn't be needed. With ibm_acpi loaded this should help:

#!/bin/bash
echo lcd_disable > /proc/acpi/ibm/video
echo 3 > /proc/acpi/sleep
echo lcd_enable > /proc/acpi/ibm/video

Quoted 2 lines

...and it works most of the time. Sometimes screen is corrupted after resume, another suspend/resume cycle cures that. (Strange!)

I haven't encountered screen corruption until now.

Quoted 1 line

Pavel

Timo