Bug 116991 - kpowersave suspend to RAM does not suspend in rc1
Summary: kpowersave suspend to RAM does not suspend in rc1
Status: RESOLVED DUPLICATE of bug 106897
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Preview 1
Hardware: i686 All
: P5 - None : Normal
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 15:00 UTC by Jason Kasper
Modified: 2005-09-28 14:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Kasper 2005-09-14 15:00:28 UTC
I have an IBM Thinkpad A31 laptop that only suspends correctly with APM.  Up 
until rc1, the kpowersave menu for suspend to RAM worked correctly.  After 
having upgraded to rc1 via Yast2, now when kpowersave's "suspend to RAM" menu is 
clicked, the "syncing disks" dialog does not come up and nothing seems to 
happen.
Comment 1 Jason Kasper 2005-09-14 15:19:35 UTC
Note--if I run "powersave --suspend-to-ram" from the command line, then it does 
seem to work correctly.  Something between kpowersave and powersave messed up?
Comment 2 Holger Macht 2005-09-14 16:03:12 UTC
Something showing up in /var/log/messages in the moment you are clicking suspend
to disk in kpowersave?

If not, please increase debug level of powersave daemon by changing DEBUG="" in
/etc/sysconfig/powersave/common to DEBUG="15", then restart powersave
(rcpowersaved restart).
Try to suspend again with kpowersave and give us the log messages appearing in
/var/log/messages. Thanks.
Comment 3 Jason Kasper 2005-09-14 17:07:37 UTC
I see this when I click suspend to ram in kpowersave...

Sep 14 12:38:12 gandalf kernel: eth1: New link status: AP Changed (0003)
Sep 14 12:47:59 gandalf syslog-ng[3910]: STATS: dropped 0
Sep 14 13:03:11 gandalf kernel: usbcore: deregistering driver lmpcm_usb
Sep 14 13:03:11 gandalf kernel: uhci_hcd 0000:00:1d.2: remove, state 1
Sep 14 13:03:11 gandalf kernel: usb usb3: USB disconnect, address 1
Sep 14 13:03:11 gandalf kernel: uhci_hcd 0000:00:1d.2: USB bus 3 deregistered
Sep 14 13:03:11 gandalf kernel: uhci_hcd 0000:00:1d.1: remove, state 1
Sep 14 13:03:11 gandalf kernel: usb usb2: USB disconnect, address 1
Sep 14 13:03:11 gandalf kernel: uhci_hcd 0000:00:1d.1: USB bus 2 deregistered
Sep 14 13:03:11 gandalf kernel: uhci_hcd 0000:00:1d.0: remove, state 1
Sep 14 13:03:11 gandalf kernel: usb usb1: USB disconnect, address 1
Sep 14 13:03:11 gandalf kernel: uhci_hcd 0000:00:1d.0: USB bus 1 deregistered


I'll change the DEBUG flag now and try again.
Comment 4 Jason Kasper 2005-09-14 17:13:22 UTC
Bizarre.  I changed DEBUG to 16, restarted powersaved, and now it works fine.  I 
also reset it to empty again and restarted it and it still seems to be working 
fine. 

I'll reboot and try again with DEBUG set to 16.  =:/
Comment 5 Jason Kasper 2005-09-14 17:26:25 UTC
bah.  it seems to work fine after a reboot.  Maybe it was caused by /usr/bin/apm 
getting the suid bit taken away from it after the upgrade? 

It seems that this is working fine now.  I guess I'll close it as WORKSFORME, 
though I wish there was a WTF status....

Sorry for the static....
Comment 6 Jason Kasper 2005-09-27 13:52:42 UTC
Okay, I am still seeing this.  I'm reopening this in hopes this can get fixed.  
I will try suspending to RAM from the kpowersave applet and (assuming it will 
fail half-way through) attach the logs....
Comment 7 Forgotten User ZhJd0F0L3x 2005-09-27 14:09:32 UTC
it looks like this is some offspring of bug #106897.
Can you verify that you are really running the latest version from
/pub/people/seife/?
Please post the output of "rpm -qi --changelog powersave | head -n 40"
Comment 8 Holger Macht 2005-09-28 10:55:33 UTC
I also think that this is a duplicate of bug #106897. However, the logs would be
interesting. Especially if there are also lines like:

Info (initHal:44) could not set up connection to system bus: The maximum number
of active connections for UID 0 has been reached
Comment 9 Jason Kasper 2005-09-28 11:09:02 UTC
Per #7:

Name        : powersave                    Relocations: (not relocatable)
Version     : 0.10.15                           Vendor: SUSE LINUX Products 
GmbH, Nuernberg, Germany
Release     : 5                             Build Date: Thu 15 Sep 2005 02:01:17 
PM EDT
Install date: Fri 23 Sep 2005 10:22:40 PM EDT      Build Host: mahler.suse.de
Group       : System/Daemons                Source RPM: powersave-0.10.15-5.src.
rpm
Size        : 1226449                          License: GPL
Signature   : (none)
Packager    : http://www.suse.de/feedback
URL         : http://powersave.sourceforge.net/
Summary     : General Powermanagement daemon supporting APM and ACPI and CPU 
frequency scaling
Description :
Powersave gives you control over the ACPI power buttons, three user
defined battery states (warning, low, critical) and supports proper
standby/suspend handling.

Additionally it could control the frequency of your processor if it
supports SpeedStep(Intel) or PowerNow(AMD) technology. This will
greatly reduce power consumption and heat production in your system.

Together with the kpowersave and yast2-power-management package it
should be the preferred power managing application.



Authors:
--------
    Thomas Renninger (mail@renninger.de, trenn@suse.de)
Distribution: SUSE LINUX 10.0 (i586)
* Wed Sep 14 2005 - ro@suse.de

- simplify if cascade in current postinstall

* Wed Sep 14 2005 - trenn@suse.de

- use userspace governor for all SMP kernels
- use hwinfo --smp for that

* Tue Sep 13 2005 - aj@suse.de

- Use hwinfo so that postinstall works even with UP kernel.
Comment 10 Jason Kasper 2005-09-28 11:11:56 UTC
Per comment #8:

Holger, I've posted a bunch of logs to bug #106897, including /var/log/messages 
(https://bugzilla.novell.com/attachment.cgi?id=50980), and the second line 
contains exactly the line you were looking for).
Comment 11 Jason Kasper 2005-09-28 11:31:42 UTC
Holger, I just looked at the above attachment and it sure looks odd to me.  If I 
follow things correctly, there is a problem with powersave getting information, 
as it keeps changing my CPU speed from 1200 to 1900 and back.  Also, I can see 
the suspend to ram request come through (Sep 27 17:36:39) and it looks like it 
starts processing it, unloads modules, at some point a kernel crash shows in the 
log in the midst of it unloading modules (Sep 27 17:36:41), and then things 
stop.  I see bunches of these:

Sep 27 17:37:36 gandalf [powersave]: Info (initHal:44) could not set up 
connection to system bus: The maximum number of active connections for UID 0 has 
been reached

and I see this:

Sep 27 17:38:39 gandalf [powersave]: WARNING (checkEventTimeouts:1313) Timeout 
for event global.suspend2ram with id 108 reached, removing it.

Hope this helps....
Comment 12 Holger Macht 2005-09-28 12:07:43 UTC
Yes this helps a lot. So this is a duplicate of bug #106897.

If you like you can file a new bugreport for the kernel crash you mentioned above.

*** This bug has been marked as a duplicate of 106897 ***
Comment 13 Jason Kasper 2005-09-28 12:18:42 UTC
Okay, I will file a new bug report for the kernel crash.

Thanks for your help Holger!
Comment 14 Jason Kasper 2005-09-28 14:22:10 UTC
I just wanted to mention one thing regarding the crash....  I think I've seen 
this before in other distributions.  If I recall correctly, I can get the kernel 
to have a crash/dump/panic/whatever that is not entirely fatal but still 
problematic by doing a cardctl eject while dhcpd is still running.  For whatever 
reason, it seems that if dhcpd is running, then it causes problems when I try to 
either rmmod the kernel module or stop pcmcia services, etc.

What I've found in the past is that if I stop network services (or kill off 
dhcpcd for that interface), then stop pcmcia services, then I don't get any 
kernel problems (or hangs).  Maybe powersave can follow this flow too if it's 
not?  I'm only mentioning this because from /var/log/messages, it looked like 
the pcmcia card was attempted to be ejected while dhcpcd was still running, 
since after the kernel dump, dhcpcd was still spitting out error messages about 
that interface.