Powerdevil does not trigger new lid action when profile changes

Bug #601696 reported by Ryan Thompson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kde-workspace (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kde

Short Version: If you close the lid before you unplug the laptop, it should suspend to RAM, but it doesn't.

-----------------

Long version:

Assume the following power configuration, which is a simplification of the KDE default:

- There are two power profiles, "AC" and "Battery".
- When the AC adapter is plugged in, the system is configured to switch to the "AC" profile.
- When the adapter is unplugged, the system is configured to switch to the "battery" profile.
- In, the AC profile, when the lid is closed, the system locks the screen.
- In the Battery profile, when the lid is closed, the system goes into sleep mode (suspends to RAM).

With this setup, if I unplug the laptop and then close the lid, the laptop will suspend, as expected. However, if I close the lid *first* and then unplug the laptop, the screen will lock, and the laptop will *not* suspend. This is because the lid is closed while the AC power profile is active. When the adapter is unplugged afterward, the power profile is switched to Battery, but this does not trigger the appropriate lid action from the Battery profile.

In GNOME, there is a hidden gconf setting to fix this problem, but it seems that there is no such setting in KDE.

A possible workaround is to configure the system to emit an ACPI lid event whenever the AC adapter is unplugged, but I don't know how to do this.

Revision history for this message
Ryan Thompson (rct86) wrote :

Re-assigned to correct package

affects: meta-kde (Ubuntu) → powerdevil (Ubuntu)
Revision history for this message
Ryan Thompson (rct86) wrote :

I reported this upstream at https://bugs.kde.org/show_bug.cgi?id=243618

Not sure how to set that as an upstream of this.

Ryan Thompson (rct86)
description: updated
Revision history for this message
Phil (neo6238-ubuntu) wrote :

I think I have pretty much the same problem here.

I have booted into KDE and I close the display up and down and the computer goes into standby and wakes up (after I clicked some keys of course).
I configured my profiles to go into standby mode in both Powersave and Performance mode!

I can plug the cable in or out, that does not matter as long as the plugging happens when the computer is on.

Plugging in and Plugging out, while the computer in standby mode, works fine, too.
I can even repeat it several times. The first thing the computer realizes after returning from standby is that the cable has been removed!

---

But in productive use of the computer, it happened not only once, that standby DID NOT work anymore.
I don't know why!

Logging of and logging into KDE again does not help then to solve it, only a complete reboot.

affects: powerdevil (Ubuntu) → kde-workspace (Ubuntu)
Changed in kde-workspace (Ubuntu):
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.