Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463172 - kde-base/powerdevil: resuming from hibernation sets incorrect status about power sources
Summary: kde-base/powerdevil: resuming from hibernation sets incorrect status about po...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard: tracking upstream
Keywords:
: 465520 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-25 06:06 UTC by Franz Trischberger
Modified: 2013-12-23 18:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2013-03-25 06:06:10 UTC
https://bugs.kde.org/show_bug.cgi?id=317260
Comment 1 Franz Trischberger 2013-03-25 09:20:20 UTC
This is probably a bug in 4.9.5. I tried with opensuse 12.3 (comes with 4.10.0 (patched?)) an there I could not reproduce this issue.
Waiting for upstream confirmation (that it's not just an opensuse patch), then I will remove the 4.10.1 stable blocker.
Comment 2 Franz Trischberger 2013-03-25 16:20:42 UTC
Just did an update to 4.10.1 and the problem is still there, so "not fixed in 4.10.1".

But I am not entirely sure about the block: The issue already persists in 4.9.5 so not a real dealbreaker for 4.10-stabilization.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2013-03-25 22:16:18 UTC
(In reply to comment #2)
> Just did an update to 4.10.1 and the problem is still there, so "not fixed
> in 4.10.1".
> 
> But I am not entirely sure about the block: The issue already persists in
> 4.9.5 so not a real dealbreaker for 4.10-stabilization.

Not a blocker then.
Comment 4 Franz Trischberger 2013-04-12 13:00:36 UTC
I already think some days this might be related to openrc. openSuSE uses systemd. So I migrated my Laptop to systemd today (no alsa.service, no net.service, damn... really...)
And things really got better! Brightness control works. Unplugging AC while sleeping will dimm the screen. Also the timings work now.

BUT: It won't go sleeping after the configured timeout :(

I will look if this works at all (after a fresh boot without AC adapter attached), but first I need to fix my WD Caviar (bumping Load_Cycle_Count by 6 every minute... pm_utils fixed that, but - well - no pm-utils.service...)
Comment 5 Franz Trischberger 2013-04-12 13:27:43 UTC
[Battery][SuspendSession]
idleTime=180000
suspendType=1

And it get's completely ignored - 3 minutes after login without AC and the laptop is still on (but locked, as configured)
Comment 6 Franz Trischberger 2013-04-12 14:18:01 UTC
Fixed by appending

session         optional        pam_loginuid.so
session         optional        pam_systemd.so

to /etc/pam.d/system-auth

(noticed that suspending by KMenu as well as mounting my USB drive did not work, so polkit dd not give me any rights)

I don't know if powerdevil is generally broken with non-systemd-systems or if there is an issue how Gentoo packages/configures the neccessary packages (I did never change anything pam/powerpolkit-related, always used the defaults; this was the first time for me.)
Comment 7 Kete Tefid 2013-04-13 15:59:30 UTC
*** Bug 465520 has been marked as a duplicate of this bug. ***
Comment 8 Kete Tefid 2013-04-13 16:02:59 UTC
(In reply to comment #5)
> [Battery][SuspendSession]
> idleTime=180000
> suspendType=1
> 
> And it get's completely ignored - 3 minutes after login without AC and the
> laptop is still on (but locked, as configured)

Powermanagement in 4.10 is suffering from a regression, as I guess:
https://bugs.kde.org/show_bug.cgi?id=314956
Comment 9 Johannes Huber (RETIRED) gentoo-dev 2013-11-23 18:29:47 UTC
Seems fixed in 4.11
Comment 10 Kete Tefid 2013-12-23 18:00:55 UTC
I upgraded to 4.11.2 and the problem still persists. 
@Johannes Huber How did you fix this? Even the upstream bug shows unconfirmed.