Bug 115233 - GNOME logout: suspend doesn't work
Summary: GNOME logout: suspend doesn't work
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Mobile Devices (show other bugs)
Version: Beta 3
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-04 16:40 UTC by Thiago Sayao
Modified: 2006-01-17 10:24 UTC (History)
2 users (show)

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


Attachments
Powersave logs (1.73 KB, application/x-gzip)
2005-09-04 16:41 UTC, Thiago Sayao
Details
Hardware info (261.20 KB, text/plain)
2005-09-04 16:42 UTC, Thiago Sayao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sayao 2005-09-04 16:40:25 UTC
I'm attaching the files requested on "Call for testing" on the opensuse.org site.. 
Suspend/Sleep doen't work for me.. It works perfectly on Windows.
Comment 1 Thiago Sayao 2005-09-04 16:41:00 UTC
Created attachment 48730 [details]
Powersave logs
Comment 2 Thiago Sayao 2005-09-04 16:42:05 UTC
Created attachment 48731 [details]
Hardware info
Comment 3 Forgotten User ZhJd0F0L3x 2005-09-04 17:23:53 UTC
what does not work? suspend to disk or suspend to RAM?
What does "does not work" mean? Please be more specific.
Comment 4 Thiago Sayao 2005-09-04 17:50:29 UTC
I think Both suspend to ram and suspend to disk doesnt work. I'm not 100% sure
as i dont have much knowledge of what i am doing. Im just an user so im not
supposed to know the difference of suspend to ram or disk, that's why i attached
the log files.. but i will try to be more specific:

The bug is reproduced by going on the gnome panel and clicking logout and then
selecting "Suspend the computer". Tre process is started, gnome logs out, a
blank screen is shown with a progress bar, then some messages are displayed with
one message saying the hardware doesn't support it. I know the hardware should
be able to sleep/hibernate/suspend because: 1 - It's a laptop and 2 - It works
on windows.

I've tried to change some options on yast2, i tried both with "suspend to disk"
and "suspend to ram" and the behaviour and messages are the same on both.

That's it, i hope it helps.. Any information you need i will provide ASAP.

Thanks
Comment 5 Stefan Behlert 2005-09-05 13:43:13 UTC
At least you should know how you started suspend :) 
Did you select it from the kpowersave-menu or by pressing the powerbutton or 
some other function key on you laptop? 
Comment 6 Thiago Sayao 2005-09-05 21:48:12 UTC
I use GNOME, so i selected it from the gnome logout menu.
Gnome Panel -> Desktop -> Logout, select "Suspend the computer" and press OK.
Comment 7 Stefan Behlert 2005-09-06 08:15:13 UTC
Ok. That should be a suspend to disk. 
Can you please open a shell and try the command 
"powersave -U" 
(without the ")? 
The question is if it is suspending and resuming with that command. 
 
Seife, Holger: Do you know what command the GNOME-logout executes? 
Comment 8 Holger Macht 2005-09-06 08:25:34 UTC
I'm checking this currently.
Comment 9 Holger Macht 2005-09-08 13:33:07 UTC
Logout dialog from gnome uses powersave --suspend-to-disk.

Please check what happens if you execute this command in a console.
Comment 10 Thiago Sayao 2005-09-25 17:22:00 UTC
sayao@3(NXDOMAIN):~> dmesg | egrep power
acpi_bus-0212 [01] acpi_bus_set_power    : Device is not power manageable
acpi_bus-0212 [01] acpi_bus_set_power    : Device is not power manageable
ACPI: CPU0 (power states: C1[C1] C2[C2])
acpi_bus-0212 [01] acpi_bus_set_power    : Device is not power manageable
powernow: This module only works with AMD K7 CPUs
acpi_bus-0212 [30] acpi_bus_set_power    : Device is not power manageable

I get this messages at boot time, maybe my hardware is not supported. I recently
installed a fresh copy of windows to test, withou the manufacturer CD (read
without the drivers) and it did not work too. Maybe this hardware uses software
suspend or something?
Comment 11 Forgotten User ZhJd0F0L3x 2005-09-26 12:15:00 UTC
these messages are probably unrelated to this problem, i see them on my machines
and suspend / resume works fine on most of them.

You should try it again from a terminal (not logout dialog) with 
"powersave --suspend-to-disk" and report what happens there.
Comment 12 Thiago Sayao 2005-09-26 23:02:12 UTC
Hapens the same thing when i click from the gnome menu:
X is stopped
i get a console window of a progress bar stopping the processes
some devide is not power manageable messages
my laptop Zzz led keeps blinking
nothing happens.. the laptop is left on and the system is not suspended
Comment 13 Holger Macht 2005-09-28 07:43:09 UTC
Please do the following in a console:

cd /tmp
/usr/share/doc/packages/powersave/powersave_logs

and attach the resulting file /tmp/powersave_logs.tar.gz to this bugreport. Thanks.

Did you already try with RC1?
Comment 14 Thiago Sayao 2005-09-28 11:23:33 UTC
I'm currently using RC1. 
The powersave logs are already attached, but the attached one is from Beta4 (iirc).
I will attach a new one once i get home.
Comment 15 Holger Macht 2005-09-28 12:24:35 UTC
No need for new logs. I simply forgot that the logfiles were already attached.
Sorry.

I can see nothing suspicious in the logs.

One thing you can try is setting the variable SUSPEND2DISK_SHUTDOWN_MODE="" in
file /etc/sysconfig/powersave/sleep.

First try
SUSPEND2DISK_SHUTDOWN_MODE="shutdown"

and if this does not work try setting
SUSPEND2DISK_SHUTDOWN_MODE="reboot"

and tell us if the behaviour changes.
Comment 16 Rodrigo Moya 2005-09-28 12:35:22 UTC
Suspend menu item runs powersave --suspend-to-ram, IIRC. And that is disabled by
default in all installations. Is that the case for you? Run 'powersave
--suspend-to-ram' on a terminal and see what happens.

What works great is --suspend-to-disk, which is associated to the Hibernate menu
item, which doesn't show up though
Comment 17 Thiago Sayao 2005-09-29 01:33:47 UTC
Both modes "shutdown" and "reboot" gave me the same behaviour as with no option set.

I've also tried --suspend-to-ram, and the suspend process works fine as it works
on windows. But when i press the power button to "come back" from suspend, the
screen is kept blank and nothing happens. I can see that the Zzz led is on when
i execute the command and is turned off when i press the power button to come
back from suspend, but the screen is still blank.
Comment 18 Rodrigo Moya 2005-09-29 09:58:58 UTC
yes, --suspend-to-ram is known to be broken in some systems, that's why it is
disabled by default. Did you enable it yourself?
Comment 19 Thiago Sayao 2005-09-29 16:38:41 UTC
Yes, i did. And it seems to work better for me than --suspend-to-disk, as it at
last  suspends sucessfully, it just doesn't come back :)
Comment 20 Holger Macht 2005-12-12 12:59:26 UTC
Some time has elapsed... possibly you tried with an Alpha snapshot?

You can also try to boot with init=/bin/bash as boot parameter and then do...

swapon -a
mount /sys
echo disk > /sys/power/state

Does this work then?
Comment 21 Holger Macht 2006-01-09 15:01:19 UTC
Can you try this, please? If not, I will close the bug as INVALID soon.
Comment 22 Holger Macht 2006-01-17 10:24:26 UTC
Closing as INVALID.