Two power managers started

Bug #702418 reported by Sampo Niskanen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Software Updater
Fix Committed
Undecided
Unassigned
gnome-power-manager (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Not sure if this is an issue with the Xfce power manager or desktop in general...

I've been using XUbuntu for several years on a Thinkpad laptop. Using the XFCE power manager I have configured the laptop to suspend when the laptop lid is closed. However, when I upgraded to XUbuntu 10.10, XFCE started also gnome-power-manager automatically. This has the effect that quite often when I open the lid, the laptop resumes and immediately goes back to sleep. Only the second resume succeeds.

I had to manually remove gnome-power-manager from the startup session, and now things work mostly fine. However, occasionally (after using the laptop for some time) gnome-power-manager is mysteriously started and the same problem occurs. I have to kill gnome-power-manager to get rid of it.

There should be some check that the two power managers don't run at the same time since they are obviously incompatible.

Related branches

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here.

There should be a conflicts included in the package installer to insure only one power-manager is installed.

Thanks for taking the time to make Ubuntu better!

tags: added: bitesize xubuntu
affects: ubuntu → gnome-power-manager (Ubuntu)
Changed in gnome-power-manager (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Sampo Niskanen (sampo-niskanen) wrote :

Hi,

I found at least one action that starts the gnome power manager (even after I've disabled it from the startup session). When I open the update manager and click either "Check" or "Install Updates", the gnome power manager is automatically started (even before providing a password). My guess would be that it's the authentication agent that does it (polkit-gnome), since it's at the point of authentication that it gets started.

This might be related to the update manager warning to plug in the a/c power before performing an upgrade. (I don't know if something there is hard-coded to use specifically the gnome power manager.)

tags: added: maverick
Revision history for this message
James Adney (jfadney) wrote :

I don't have time to try and tackle this, sadly, but I did notice something potentially useful:

Part of your problem could actually be a bug in update-manager.
update-manager tries to use the org.gnome.PowerManager interface to inhibit sleep before it tries the freedesktop standard (org.freedesktop.PowerManagement) that xfce-power-manager uses. This could start gnome-power-manager unnecessarily.

That may not fix your problem completely, but it's a start.

As posted earlier, you should be able to just get rid of gnome-power-manager to fix this problem.

Changed in update-manager:
assignee: nobody → Nicholas Skaggs (nskaggs)
Changed in update-manager:
status: New → In Progress
Changed in update-manager:
assignee: Nicholas Skaggs (nskaggs) → nobody
status: In Progress → Fix Committed
Changed in gnome-power-manager (Ubuntu):
assignee: nobody → Girish Sanenahalli (girish-cs7036)
Changed in gnome-power-manager (Ubuntu):
status: Triaged → In Progress
Changed in gnome-power-manager (Ubuntu):
assignee: Girish Sanenahalli (girish-cs7036) → nobody
status: In Progress → Confirmed
karthik (karthik543v)
Changed in gnome-power-manager (Ubuntu):
assignee: nobody → karthik (karthik543v)
status: Confirmed → In Progress
Changed in gnome-power-manager (Ubuntu):
status: In Progress → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

I don't think no one of these two users who are messing with bug reports are *actually working on fixing this bug*. Sigh...

Changed in gnome-power-manager (Ubuntu):
status: In Progress → Triaged
assignee: karthik (karthik543v) → nobody
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.