You are not logged in.
Hello folks.
I have a Wheezy netinstall with openbox, and have this issue I hope someone can help me with:
This works:
+ boot to tty, log in (no Window Manager is running)
+ close the laptop lid, the machine suspends OK
Does not work:
+ run startx (openbox)
+ close the laptop lid, suspend does not trigger
Weird, huh?
When I open the lid again I get the notification: "power manager, not authorized".
I then:
+ Enabled verbose debug messages for pm-utils [1] and no errors are logged to /var/log/pm-suspend.log, darn.
+ Checked that I don't have HAL installed, as it interferes with pm-utils (per same the link [1]).
The post [2] indicates that authorization is handled via consolekit and session manager, but the "exec ck-launch-session" line answer in that post did not help.
When I run "exec ck-launch-session openbox-session" it drops me back to a login prompt (openbox-session reports that the $DISPLAY environment variable is unset even though it is)
~$ echo $DISPLAY
:0.0
Stumped!
The only way I can suspend at the moment is with "sudo pm-suspend", and that gets tedious quickly. I could add myself to sudoers without password for pm-suspend, but I would prefer to get this working how it is intended (TM). Any ideas?
Signed, perplexed monkey
[1]: https://wiki.debian.org/Suspend
[2]: http://crunchbang.org/forums/viewtopic.php?id=17681
Last edited by kbmonkey (2015-04-01 11:34:44)
Offline
Until someone jumps in who knows what they are talking about .... is this something that needs a policykit1 rule on your system?
BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator
Offline
No laptop just a desktop here - so this is a shot in the dark. Scroll down to OB Login
OR:
What does: /usr/share/polkit-1/actions/org.freedesktop.upower.policy have to say. It should say: <allow_active>yes</allow_active>
<action id="org.freedesktop.upower.suspend">
<description>Suspend the system</description>
<description xml:lang="fr">Mettre le système en veille</description>
<description xml:lang="it">Sospende il sistema</description>
<description xml:lang="pl">Wstrzymanie systemu</description>
<description xml:lang="sv">Försätt systemet i vänteläge</description>
<message>Authentication is required to suspend the system</message>
<message xml:lang="fr">Vous devez vous identifier pour mettre le système en veille</message>
<message xml:lang="it">È richiesto autenticarsi per sospendere il sistema</message>
<message xml:lang="pl">Wymagane jest uwierzytelnienie, aby wstrzymać system</message>
<message xml:lang="sv">Autentisering krävs för att försätta systemet i vänteläge</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Post your ~/.xinitrc plz.
Offline
You could be missing a package. Try this in terminal:
sudo apt-get update && sudo apt-get install policykit-1
When installed, reboot to make sure it takes effect.
Last edited by spacex (2015-04-02 23:29:03)
Regards,
spacex/ew
http://tweaklinux.org
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat