Bug 150548 - suspend to ram on ibm x31 leaves background light on
Summary: suspend to ram on ibm x31 leaves background light on
Status: VERIFIED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Beta 3
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Forgotten User ZhJd0F0L3x
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-13 18:40 UTC by Bjoern Jacke
Modified: 2007-06-05 11:20 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
radeontool.i586.rpm for 10.1 (17.19 KB, application/x-rpm)
2006-03-08 12:39 UTC, Forgotten User ZhJd0F0L3x
Details
radeontool source.rpm (27.63 KB, application/x-rpm)
2006-03-08 12:40 UTC, Forgotten User ZhJd0F0L3x
Details
statically linked version of radeontool (221.57 KB, application/x-gzip)
2006-03-08 12:43 UTC, Forgotten User ZhJd0F0L3x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern Jacke 2006-02-13 18:40:56 UTC
issuing suspend to ram on ibm thinkpad x31 leaves background light on. There is a workaround one can do:

in /etc/sysconfig/powersave/sleep set SUSPEND2RAM_SWITCH_VT="yes"
and edit /usr/lib/powersave/scripts/prepare_suspend_to_ram and add 

sleep 1
/usr/local/sbin/radeontool light off

after the switch_to_vt call. radontool can be found here: http://fdd.com/software/radeon/

(This was tested on a system which was updated sequently from 9.1 so it might be there are some settings which are different from a fresh 10.1 install.)
Comment 1 Forgotten User ZhJd0F0L3x 2006-02-13 18:44:29 UTC
this is a known kernel bug. Can you name a kernel version where it last worked?
BTW: editing the delivered scripts is a bad idea, better create your own event script. It's easy and you are a bit safer if we should ship an update.
Comment 2 Bjoern Jacke 2006-02-14 12:12:20 UTC
AFAIK it never worked with backlight tuning off just with such a workaround. I couln't find a user cusomizable way (like a prepare_suspend_to_ram.local for example) and addto add commands run before suspend. Is there a recommended way which survives an update of powersave RPM?
Comment 3 Forgotten User ZhJd0F0L3x 2006-02-14 14:29:35 UTC
file:///usr/share/doc/packages/powersave/powersave_manual.html#Scripts

Warning: the documentation may be outdated, so looking in one of the provided scripts (log_ac_change is probably a good example) is recommended.
Comment 4 Pavel Machek 2006-02-18 20:09:36 UTC
I don't think I want to put playing with radeon's backlight into kernel when it can be one in userspace very well. radeontool light off is indeed right solution... suspend.sf.net package integrates radeontool, but this is too late for 10.1. I think we should just work around this in scripts, or document work around somewhere.
Comment 5 Forgotten User ZhJd0F0L3x 2006-02-19 11:04:06 UTC
I am now using an X32. If it has the same problem, you can expect it to be fixed in 10.1 ;-) Anyway, the vbetool scripts in /usr/share/doc/packages/powersave/contrib/ are probably a good start, no need to patch the kernel.
Comment 6 Forgotten User ZhJd0F0L3x 2006-02-27 08:45:19 UTC
i am working on a general solution to this. Unfortunately it is not clear if this will be ready for 10.1.
Comment 7 Pavel Machek 2006-03-06 14:19:25 UTC
In the meantime, could you test s2ram from suspend.sf.net's CVS?
Comment 8 Forgotten User ZhJd0F0L3x 2006-03-08 12:38:48 UTC
i have improved radeontool hugely (no more "lspci" output grepping...), but obviously somebody need to test if it still works (it does for me...)
I'll attach a rpm and a src.rpm to this bug and would appreciate if everyone gives it a try if it still does what you expect it to do ;-)
Starting it with --debug gives a bit more information, it also tells you which device on your PCI bus it identified as a ATI Graphics card.

Lenz, i seem to remember you were once using radeontool, too. If not - just remove yourself from this bug.

If this is successful, the $Subject of this bug will also be fixed for 10.1, so i am hopefully back on-topic ;-)
Comment 9 Forgotten User ZhJd0F0L3x 2006-03-08 12:39:35 UTC
Created attachment 71741 [details]
radeontool.i586.rpm for 10.1
Comment 10 Forgotten User ZhJd0F0L3x 2006-03-08 12:40:26 UTC
Created attachment 71742 [details]
radeontool source.rpm

For those who want to know what i am giving them to test ;-)
Comment 11 Forgotten User ZhJd0F0L3x 2006-03-08 12:43:56 UTC
Created attachment 71745 [details]
statically linked version of radeontool

statically linked radeontool for those of you not running latest 10.1 ;-)
gunzip before use.
Comment 12 Stefan Behlert 2006-04-11 13:48:59 UTC
Does this mean this is fixed for 10.1?
Comment 13 Forgotten User ZhJd0F0L3x 2006-04-11 14:24:52 UTC
not yet, i'd need a report from an X31 owner.
Probably the X31 will also work with "s2ram -f -a3 --radeontool", but i need verification. Björn, could you try the procedure described on http://en.opensuse.org/S2ram (if you do not have Beta9 installed, an up-to-date kernel and "suspend" package from factory should be enough for this test)?
Comment 14 Harald Mueller-Ney 2006-04-23 05:57:12 UTC
Björn? Status?

We are going towards release (RC-phase) and want to know where we are.
Comment 15 Bjoern Jacke 2006-04-24 09:24:56 UTC
Having removed my own radeontool hacks and issuing the command from #13 works nicely here for me on my X31! :-)
Comment 16 Forgotten User ZhJd0F0L3x 2006-04-24 10:23:03 UTC
If you now would provide the "s2ram -i" output from your machine, it would work out of the box in future releases ;-)
Comment 17 Bjoern Jacke 2006-04-24 10:41:44 UTC
pell:~ # s2ram -i
This machine can be identified by:
    sys_vendor   = "IBM"
    sys_product  = "2672C8G"
    sys_version  = "ThinkPad X31"
    bios_version = "1QET96WW (3.01 )"

Will this now just be just enabled for this specific BIOS release or for previous BIOS releases, too? :-)
Comment 18 Forgotten User ZhJd0F0L3x 2006-04-24 16:36:10 UTC
It will be enabled for
 "IBM"
 "2672*"
 "*"
 "*"

or do you know of problems with different BIOS releases?
This won't make it into 10.1, but into future products.
For 10.1, just hack the apropriate s2ram call into /usr/lib/powersave/do_acpi_sleep (if you would not need radeontool, you could use the variables in /etc/powersave/sleep, but i noticed right now that i did not implement the radeontool case in powersaved ;-)

I'll close this as fixed - although it will only be fixed after 10.1