kde-guidance-powermanager causes double sleep, memory corruption

Bug #128666 reported by Buck Evan
10
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Undecided
Luka Renko

Bug Description

Binary package hint: kde-guidance-powermanager

This issues is related to a Kubuntu laptop (Dell B130). The laptop was
originally installed with Dapper Drake, then upgraded to Edgy, and
finally Feisty. The below problems are fairly recent, starting maybe a
month after the upgrade to Feisty.

1. About 90% of the time after I suspend, when I awake the machine it
goes back into suspend mode after about 3 seconds. Simply pressing the
power button finally brings the machine up. Harmless but annoying.

2. About 10% of the time when #1 happens, video memory is corrupted
slightly. I get a bizarre white patch in the upper-left corner of the
splash screen, and a few of my System Tray icons are scrambled.

3. About 5% of the time when #1 happens, the machine just sleeps
itself repeatedly. Usually after 5 or 6 tries it will finally wake up,
but once after more than 10 tries i just hard-restarted.

4. About 50% of the time after #2 happens, I'm left at a full-screen
console with "Starting up ALSA" at the top and no prompt. I can type
things in but there's no responce. Restarting is the only choice.

5. Twice the laptop has been closed and running normally (as per
settings), then gone into sleep mode when *opening* the lid.

WORKAROUND:
Uninstall kde-guidance-powermanager (requires uninstalling kubuntu-desktop, i also uninstalled hal as it didn't seem to be used by anything). The sleep button now only causes a single sleep action, but takes about 10 seconds as opposed to around 3 previously. I believe acpi-support is causing this functionality. I guess guidance caused the first sleep at 3 seconds then acpi-support caused the second at 10 secs resulting in double sleep?

I'm very new to bug reporting, so please give me any diagnostic
commands that you need.
HAL package version: 0.5.9
acpid-1.0.4
acpi 0.09
kde-guidance-powermanager 0.8.0-0ubuntu5

LSB Version:
core-2.0-noarch:core-3.0-noarch:core-3.1-noarch:core-2.0-ia32:core-3.0-ia32:core-3.1-ia32:cxx-2.0-noarch:cxx-3.0-noarch:cxx-3.1-noarch:cxx-2.0-ia32:cxx-3.0-ia32:cxx-3.1-ia32:graphics-2.0-noarch:graphics-3.0-noarch:graphics-3.1-noarch:graphics-2.0-ia32:graphics-3.0-ia32:graphics-3.1-ia32:desktop-3.1-noarch:desktop-3.1-ia32
Distributor ID: Ubuntu
Description: Ubuntu 7.04
Release: 7.04
Codename: feisty

Linux lappy386 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007
i686 GNU/Linux

Related branches

Revision history for this message
Buck Evan (bukzor) wrote :

I tried the opposite thing (guidance-powermanager without acpi-support) and again the laptop doesn't do the double-sleep, but it does still have issues with garbled video memory, so that may need to be submitted as a seperate bug. The laptop goes to sleep at about 3 seconds after the button press, as hypothesized earlier.

I've attached some logs from before and after the double sleep issue

Revision history for this message
Buck Evan (bukzor) wrote :
Revision history for this message
Buck Evan (bukzor) wrote :
Revision history for this message
Buck Evan (bukzor) wrote :
Revision history for this message
Buck Evan (bukzor) wrote :
Revision history for this message
Buck Evan (bukzor) wrote :
Revision history for this message
Buck Evan (bukzor) wrote :
Revision history for this message
Premier (premiersullivan) wrote :

I have a similar problem with kpowersave (actually, I was running guidance simultaniously). I have a modified sleep.sh script that may or may not be helpful (please use at your own risk.) This is for gutsy. Basically, it checks for a file called "suspend_lock". If the file does not exist, it creates it and then suspends. After it resumes, it deletes the file. This should prevent double suspends almost all of the times, but no guarentees. I have only tried this once on one computer with one version of ubuntu (gutsy).

Place this attachment in /etc/acpi/sleep.sh (overwrite the existing file.)

Revision history for this message
fedenunez (fedenunez) wrote :

I have the same problem with my dell D820 using gusty, as a quick workaround, I just comment the suspend function of kde-guidance and now my laptop suspend and resume allways.

Revision history for this message
Luka Renko (lure) wrote :

Can you try attached patch for acpi-support package and confirm it fixes the problem for you?

Changed in kde-guidance:
assignee: nobody → lure
status: New → Incomplete
Revision history for this message
Luka Renko (lure) wrote :
Revision history for this message
fedenunez (fedenunez) wrote :

The patch didn't work for me.

Revision history for this message
Ryan Nowakowski (tubaman) wrote :

I have this same issue. It might be related to having 2 user logged in, both with sleep on lid-closed set.

Revision history for this message
Ryan Nowakowski (tubaman) wrote :

If i make sure only one guidance-power-manager.py is running, the double sleep goes away. Attached is the script that I run every minute using cron to kill duplicate guidance-power-managers.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kde-guidance - 0.8.0svn20080103-0ubuntu8

---------------
kde-guidance (0.8.0svn20080103-0ubuntu8) hardy; urgency=low

  [ Andreas Wenning ]
  * Added kubuntu_18_kde-powermanager_unique-check.patch:
    - Fixed guidance-power-managers check for being a unique app.
  * Added kubuntu_19_kde-powermanager_gpmhelper.patch
    (LP: #151444, #111143, #128666):
    - Added gpmhelper.py to listen for HAL button-events and issue
      dcop calls to guidance-power-manager.
    - guidance-power-manager will now start gpmhelper.py.
    - Patched setup.py to build/install gpmhelper.py
  * Changed debian/rules and debian/kde-guidance-powermanager.install
    to install gpmhelper.py
  * Added depends for kde-guidance-powermanager to python-gobject as
    this is the only mainloop to work with DBusGMainLoop.

  [ Scott Kitterman ]
  * Update kubuntu_12_powermanager_survive_no_brightness.patch so it correctly
    catches the error (LP: #183656)
  * Add kubuntu_20_displayconfig_no_resolutions.patch so displayconfig doesn't
    crash if current display size or refresh rate can't be fetched and similar
    changes for displayconfig-restore(LP: #147721, #110853)
  * Add kubuntu_21_powermanager_new_names.patch to use new hal keys
    (LP: #204768)
    - Patch thanks to Mikael Gerdin

 -- Scott Kitterman <email address hidden> Tue, 25 Mar 2008 13:04:50 -0400

Changed in kde-guidance:
status: Incomplete → Fix Released
Revision history for this message
Terje Bergström (terje-terje) wrote :

I have version 0.8.0svn20080103-0ubuntu16 and I still get this problem. When I and my wife are logged with separate X sessions, and I get two instances of guidance-power-manager.py:

terje@terje2-laptop:~$ ps axu | grep guidance-power-manager
terje 1013 0.0 1.7 65236 36976 ? S Jul04 0:16 /usr/bin/python /usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py
terje 1897 0.0 0.0 3004 748 pts/2 R+ 12:34 0:00 grep guidance-power-manager
tiina 6517 0.0 2.6 83568 55096 ? S Jul02 0:42 /usr/bin/python /usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py

Changed in kde-guidance:
status: Fix Released → New
Revision history for this message
Scott Kitterman (kitterman) wrote :

Please don't reopen old bugs with symptoms similar to your. Please file a new bug. Also, make sure you have hardy-updates enabled on your system. There is a post-release update to this package that you do not appear to have installed.

Changed in kde-guidance:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.