Skip to contentSkip to conversation

/proc/acpi/sleep behaviour?

DISCUSSION Nils Faerber 2 participants 3 messages Mar 4, 2003 2 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi!
Just a short question:
How is sleep supposed to work?
When I do a
echo -n 4 > /proc/acpi/sleep
on recent ACPI kernels (2.4.21-pre4 with ACPI 20030228 + swsusp beta 19) everything works quite fine but the "echo" never returns. After resume I have to kill "echo".

This makes it a little difficult to write proper suspend/resume scripts... Or am I doing something wrong here?

CU
nils faerber

Signature · 11 lines
kernel concepts          Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          D1 : +49-170-2729106
--


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

A message that is not in the archive (sent off-list or not yet received): 20030304175446.3930bcb7.nils-t93Ne7XHvje5bSeCtf/[email protected]

#2 lore raw
Quoted 9 lines · Nils Faerber

Hi!
Just a short question:
How is sleep supposed to work?
When I do a
echo -n 4 > /proc/acpi/sleep
on recent ACPI kernels (2.4.21-pre4 with ACPI 20030228 + swsusp beta 19) everything works quite fine but the "echo" never returns. After resume I have to kill "echo".

Last time I checked, the swsusp support is not well integrated. I can not tell though for recent swsusp patches.

please use /proc/sys/kernel/suspend instead.

Forgot to say also that you should bug report to swsusp mailing list.

Signature · 11 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

A message that is not in the archive (sent off-list or not yet received): 20030304172226.GD7861-j6u/t2rXLliUoIHC/UFpr9i2O/[email protected]

#4 lore raw
Quoted 10 lines · On Tue, 4 Mar 2003 18:22:26 +0100 Ducrot Bruno…
Quoted 7 lines · Nils Faerber

Just a short question:
How is sleep supposed to work?
When I do a
echo -n 4 > /proc/acpi/sleep
on recent ACPI kernels (2.4.21-pre4 with ACPI 20030228 + swsusp beta
19) everything works quite fine but the "echo" never returns. After resume I have to kill "echo".

Last time I checked, the swsusp support is not well integrated. I can not tell though for recent swsusp patches.

I can't judge this either but the same in my eyes misbehaviour is IMHO also true for 2.5.6x kernels without directly involved swsusp so I would suspect this to be more of an ACPI problem...

Quoted 1 line

please use /proc/sys/kernel/suspend instead.

Err... /proc/sys/kernel/swsusp you ment, right?

Quoted 1 line

Forgot to say also that you should bug report to swsusp mailing list.

That's true, sorry!

Quoted 1 line

Ducrot Bruno

CU
nils faerber

Signature · 11 lines
kernel concepts          Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          D1 : +49-170-2729106
--


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com