Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-04-01 11:33:52

#! Die Hard
From: South Africa
Registered: 2011-01-14
Posts: 879

Wheezy netinstall suspend on laptop lid close

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


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


Last edited by kbmonkey (2015-04-01 11:34:44)


Be excellent to each other!

#2 2015-04-01 12:35:37

#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Wheezy netinstall suspend on laptop lid close

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 smile


#3 2015-04-01 18:08:28

#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667

Re: Wheezy netinstall suspend on laptop lid close

No laptop just a desktop here - so this is a shot in the dark.  Scroll down to OB Login


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>

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad


#4 2015-04-01 18:25:58

From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Wheezy netinstall suspend on laptop lid close

Post your ~/.xinitrc plz.


#5 2015-04-02 23:26:38

From: Norway
Registered: 2015-01-17
Posts: 385

Re: Wheezy netinstall suspend on laptop lid close

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)



Board footer

Powered by FluxBB

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

Debian Logo