[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Thinkpad Z60T suspend to ram




Florian Kulzer-3 wrote:
 
> On Thu, Jan 10, 2008 at 10:54:12 -0800, 8rino wrote:
>> 
>> [...]
>> >I think the mistake is in this line:
>> >                 [ -f $cfgs ] || continue
>> >It should have "$cfg" instead of "$cfgs":
>> >                 [ -f $cfg ] || continue
You were right. It is already been fixed and patched
> [...]
 
>> I've tried the following 
>> a) from root in the 1st console: s2ram -f -a 3
>>    OK. It suspends. 
>>    Pressing the Fn button it resumes back, with no errors, albeit the
>> light
>> of the screen on resuming remain off
>>    and I have to press Ctrl-Alt-F7 to have the lights on back.
>>    Other options to s2ram seems not to work, since they are reporting
>> errors.
>> 
>> b) I've added "2511EJG" in 
>>    /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi
>>    but nothing changes.
>> 
>> Any further idea ?
> 
> I would try to edit the file /usr/lib/pm-utils/defaults. It has this
> line:
> 
> # S2RAM_OPTS=""
> 
> I would change that to
> 
> S2RAM_OPTS="-f -a 3"
I forgot to tell you that I already tried this, but in
/etc/pm/config.d/config as somewhere I've read that
the lines in config override the ones in defaults.
Nevertheless another patch was necessary in /usr/lib/pm-utils/bin/pm-action, 
since the option --S3-bios* did not allowed other options to be passed to
s2ram.
It was a matter of a "+" missing on one line in pm-action.
It is reported in the page you gave me.
http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=pm-utils
 I had to change the lines

 if [ -n "$ACPI_SLEEP" ]; then
	S2RAM_OPTS=" --acpi_sleep $ACPI_SLEEP"
 fi
 
 if [ -n "$S2RAM_OPTS" ]; then

into

 if [ -n "$ACPI_SLEEP" ]; then
	S2RAM_OPTS+=" --acpi_sleep $ACPI_SLEEP"
 fi
 
 if [ -n "$S2RAM_OPTS" ]; then

Now everything is working properly.
Thanks "A LOT", Dr Kulzer.
-- 
View this message in context: http://www.nabble.com/Thinkpad-Z60T-suspend-to-ram-tp2570039p14758355.html
Sent from the Debian Laptop mailing list archive at Nabble.com.


Reply to: