upower does not check dock state on resume from suspend

Bug #980746 reported by Evan Broder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
Fix Released
Undecided
Unassigned
Oneiric
Won't Fix
Undecided
Unassigned

Bug Description

Now that gnome-settings-daemon's power management code checks upower's is-docked flag, it's important that it be accurate.

However, it is possible that the inputs to the is-docked state could change while the laptop is suspended without generating a drm udev event to trigger a re-probe.

This is fairly easily reproducible:

 1. Connect external monitor
 2. Suspend using the system menu
 3. Disconnect external monitor
 4. Wake the laptop back up
 5. Close lid

I expect the laptop to go to sleep. However, it does not, because upower believes the laptop is still docked (you can confirm this by looking for the "is-docked" line in upower --dump)

Fix for this issue was committed upstream as http://cgit.freedesktop.org/upower/commit/?id=6fb36eb5eb85386d2e1c5d9fb760d68053d8afc5

Related branches

Martin Pitt (pitti)
Changed in upower (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package upower - 0.9.15-3git1

---------------
upower (0.9.15-3git1) precise; urgency=low

  Upload current Debian packaging git head.

  * Add 00git_update_dock_after_suspend.patch: Re-coldplug dock status when
    resuming from sleep. Patch by Evan Broder, thanks! Also committed
    upstream. (LP: #980746)
 -- Martin Pitt <email address hidden> Fri, 13 Apr 2012 14:39:59 +0200

Changed in upower (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in upower (Ubuntu Oneiric):
status: New → Won't Fix
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.