Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274932 - sleep/hibernate not working in KDE4 (add pm-utils as required for kde-base/powerdevil)
Summary: sleep/hibernate not working in KDE4 (add pm-utils as required for kde-base/po...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 11:36 UTC by Octavian
Modified: 2009-12-01 15:50 UTC (History)
1 user (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 Octavian 2009-06-21 11:36:13 UTC
I had some hard time understanding why the sleep/hibernate buttons in KDE4 did nothing. Everything was installed and working as normal... with the exception of the pm-utils.

I think pm-utils should be installed automatically if kde-base/powerdevil is requested to be installed. This would have saved me few days of intermittent googling.



Reproducible: Always

Steps to Reproduce:
1. emerge --unmerge pm-utils
2. emerge -va kde-base/powerdevil
3. # it should re-install pm-utils, but it doesn't 

Actual Results:  
pm-utils is not installed when kde-base/powerdevil is

Expected Results:  
pm-utils not pulled in the dependency graph 

pm-utils should be pulled in the dependency graph
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-21 17:13:37 UTC
Why it should be pulled.
Some of us use tuxonice and should we pull those?

User should be aware of what hibernation method he use and merge correct package.
Comment 2 Paulo da Silva 2009-06-21 20:39:09 UTC
(In reply to comment #1)
> Why it should be pulled.
> Some of us use tuxonice and should we pull those?
> 

I am using tuxonice but with gentoo-sources patched by myself and suspend to mem does not work! Do I need pm-utils?

BTW, a small and naive script I wrote, correctly suspend to memory.
I don't use suspend to disk.
Comment 3 Octavian 2009-06-23 05:57:50 UTC
I had sys-power/hibernate-script installed, which I used from command line, but these did not work with kde4 (powerdevil).

It appears that kde-base/powerdevil uses ONLY pm-utils.

Tomáš, do you have sleep/hibernate working from the kde-base/powerdevil, or the logout menu in kde4, without pm-utils being installed? If yes how did you do it?

Best regards,
Octavian

Comment 4 Paulo da Silva 2009-06-30 01:06:08 UTC
(In reply to comment #2)
...
> 
> I am using tuxonice but with gentoo-sources patched by myself and suspend to
> mem does not work! Do I need pm-utils?
> 

I installed pm-utils (needed to remove laptop-mode-utils!) and now suspend works. Unfortunately I didn't find a way to suspend from kdm screen!
Comment 5 Octavian 2009-07-01 19:49:43 UTC
There is no option to suspend from kdm screen. It seems that Ubuntu/Suse guys implemented this for their distribution. If you find this important, you might want to vote for KDE bug http://bugs.gentoo.org/show_bug.cgi?id=274932
Comment 6 Octavian 2009-07-12 18:55:11 UTC
So.... kde-base/powerdevil does not work on it's own, it needs additional packages. As far as I've tested, pm-utils works OK. 
Will pm-utils (or other equivalent) be put as a dependency for kde-base/powerdevil?

Best regards,
Octavian
Comment 7 Octavian 2009-07-15 21:41:42 UTC
https://bugs.kde.org/show_bug.cgi?id=191127

See comments 9 and 10.
Comment 8 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-07-16 02:19:37 UTC
As this is another optional(?) run-time dep, I suggest adding a warning to pkg_postinst.
Comment 9 DaggyStyle 2009-11-09 11:29:34 UTC
I have a different issue, sleep works via powerdevil but hibernate falls back to screen saver, how can I fix it?
using powerdevil 4.3.3, was the same at 4.3.0
Comment 10 mikopp 2009-11-30 15:16:27 UTC
Hi,

I have kde 4.3.3 and pm-utils installed. still the sleep button just locks the screen. pm-suspend works like a charm though.
Comment 11 Tomáš Chvátal (RETIRED) gentoo-dev 2009-12-01 15:50:10 UTC
This bug is fixed on our side.

The problem with hibernating are problem of their respective packages.

If it is bug only when using powerdevil open new bug.