View previous topic :: View next topic |
Author |
Message |
flappadap n00b
Joined: 30 Mar 2005 Posts: 39
|
Posted: Wed Dec 23, 2009 12:38 am Post subject: Suspend To RAM KDE |
|
|
Hello !
I have a problem in KDE 4.3.4 with suspending my machine :
When choosing the suspend menu entry, the screen saver apears and screen is locked wit huser password, but no suspend.
pm-utils are installed and powerdevil is installed with pm-utils use flag.
pm-suspend works perfect if run from command line after su to root.
System Settings -> Advanced -> Services
Shows PowerDevil running
Seems something is missing somwhere so that kde/powerdevil cannot run pm-suspend ...
Any hint though ? _________________ CU
Flappadap. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Wed Dec 23, 2009 3:23 am Post subject: |
|
|
what's the kernel look like?
Code: |
laptop02 ~ # zgrep SUSPEND /proc/config.gz
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_USB_SUSPEND is not set
|
NB: if you happen to include it in this thread, please dump it on pastebin.com and share the link instead of including in a post, keeps forum more readable _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
optiluca Guru
Joined: 16 Jan 2006 Posts: 545 Location: Rivergaro, Italy
|
Posted: Wed Dec 23, 2009 9:02 am Post subject: |
|
|
Just wanted to say "me too"
Quote: | zgrep SUSPEND /proc/config.gz
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_USB_SUSPEND=y |
I also find that powerdevil does not alter the screen brightness when I disconnect the AC adaptor as it used to. Powerdevil service is running.... _________________ # "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"
http://www.rinkworks.com/stupid/cs_mincing.shtml |
|
Back to top |
|
|
flappadap n00b
Joined: 30 Mar 2005 Posts: 39
|
Posted: Wed Dec 23, 2009 5:09 pm Post subject: |
|
|
Hello !
Code: |
zgrep SUSPEND /proc/config.gz
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_USB_SUSPEND=y
|
pm-suspend cannot be run and is not found from command line as the user I am logged in. I have to sudo or su, suspend runs only as root.
Maybe this might be the problem ? Because it seems that only kde/powerdevil cannot call that script ... however, I found no log entries or anything ...
pm-suspend is here :
Code: |
# ls -la /usr/sbin/pm-suspend
lrwxrwxrwx 1 root root 33 27. Nov 23:01 /usr/sbin/pm-suspend -> /usr/lib64/pm-utils/bin/pm-action
# ls -la /usr/lib64/pm-utils/bin/pm-action
-rwxr-xr-x 1 root root 2830 27. Nov 23:01 /usr/lib64/pm-utils/bin/pm-action
|
Tried it with suid root, but not possible, always says :
Code: |
/usr/lib64/pm-utils/bin/pm-action
This utility may only be run by the root user.
|
Since everything works fine when calling it as root, I assume it cannot be a problem of kernel or kernel configuration.
I further assume it must be somwhere in some kde and/or powerdevil config file where the command line is specified how to call pm-suspend ... but where is this ? I can nowhere find somthing like that.
Regards,
Robert. _________________ CU
Flappadap. |
|
Back to top |
|
|
jfp Guru
Joined: 08 Jul 2007 Posts: 326 Location: Virginia, USA
|
Posted: Thu Dec 24, 2009 7:38 pm Post subject: |
|
|
I found a solution that works for me.
The problem is with the PolicyKit authorizations. To fix I:
logged on as root
Started KDE (e.g. startx)
Open "System Settings"
Select the "Advanced" tab
Clicked "PolicyKit Authorizations"
Under "Org.Freedesktop --> Hal" There are a whole bunch of neat authorizations that root can grant to users. In particular, the authority to hibernate and suspend. Once I granted my non-root userid the authorities, closing the laptop lid did a successful suspend to ram.
My non-root userid is a member of the polkituser group as well, although I have no idea what that does or if it is required. _________________ jfp |
|
Back to top |
|
|
optiluca Guru
Joined: 16 Jan 2006 Posts: 545 Location: Rivergaro, Italy
|
Posted: Thu Dec 24, 2009 9:01 pm Post subject: |
|
|
An easier way of doing it would have been to run "kdesu systemsettings" instead of logging in as root... In any case I have tried that already, no change for me Quite frustrating... _________________ # "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"
http://www.rinkworks.com/stupid/cs_mincing.shtml |
|
Back to top |
|
|
optiluca Guru
Joined: 16 Jan 2006 Posts: 545 Location: Rivergaro, Italy
|
Posted: Tue Jan 19, 2010 11:22 pm Post subject: |
|
|
I have been trying all sorts, and no tinkering with Policykit settings, (or installing hibernate-script for that matter) seems to make a difference. Suspend works just fine when pm-suspend/hibernate-ram are ran as root, while nothing whatsoever happens if I try to suspend from the KDE menu (apart from the screen locking). Also, powerdevil does not change my screen brightness anymore, while my keyboard keys do. The kernel config seems to be fine, and powerdevil is running...
Does anyone have any ideas whatsoever?
Thanks in advance
EDIT: Scrapping Policykit/Consolekit entirely by removing from USE flags seems to have fixed all my issues... No idea where the error was in the previous setup but at least now it works _________________ # "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"
http://www.rinkworks.com/stupid/cs_mincing.shtml |
|
Back to top |
|
|
|