SEARCH

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

You are not logged in.

#1 2012-10-04 22:25:27

borgos
New Member
Registered: 2012-10-04
Posts: 9

Sleep function missing from logout dialog

I don't exactly recall when this happened, since my I've been running Statler on my Aspire One netbook for a few months, but the sleep button vanished from the logout dialog (Super+x). The remaining options are: reboot, shutdown, log out and hibernate. What bothers me is that sleep worked pretty well on this system and now it's gone.

That's pretty much it, the only thing I have to complain about this wonderful distro.

Last edited by borgos (2012-10-04 22:29:32)

Offline

Be excellent to each other!

#2 2012-10-04 23:08:35

lcafiero
The #! Guy
From: Felton, California, USA
Registered: 2011-07-21
Posts: 2,196
Website

Re: Sleep function missing from logout dialog

I don't remember "sleep" ever being an option, but I could have missed it.


Res publica non dominetur | Larry the CrunchBang Guy speaks of the pompetous of CrunchBang

CrunchBang Forum moderator

Offline

#3 2012-10-04 23:27:49

borgos
New Member
Registered: 2012-10-04
Posts: 9

Re: Sleep function missing from logout dialog

Oops, I guess it was called suspend, but it's still gone!

Offline

#4 2012-10-05 10:25:36

unfugr
Member
From: ruhr area, germany
Registered: 2012-09-18
Posts: 34

Re: Sleep function missing from logout dialog

I lately had an issue where pm-utils was autoremoved.
Could it be something like this in your case?

Edit: Can you

sudo pm-suspend

via the terminal?

Last edited by unfugr (2012-10-05 12:25:28)

Offline

#5 2012-10-05 14:56:17

borgos
New Member
Registered: 2012-10-04
Posts: 9

Re: Sleep function missing from logout dialog

pm-suspend worked normally.

Offline

#6 2012-10-05 16:12:28

tao te
Member
From: Berlin
Registered: 2012-07-30
Posts: 43

Re: Sleep function missing from logout dialog

You can edit the cb-exit script easily.

In First def-part:

...
self.suspend.set_sensitive(False)
...

Between the other "def" 's:

...
def suspend_action(self,btn):
    self.disable_buttons()
    self.status.set_label("Suspending, please standby...")
    os.system("cb-lock")
    os.system("dbus-send --system --print-reply --dest=\"org.freedesktop.UPower\" /org/freedesktop/UPower org.freedesktop.UPower.Suspend")
    gtk.main_quit()
...

... and between the #xyz button - parts

...
#Suspend button
self.suspend = gtk.Button("_Suspend")
self.suspend.set_border_width(4)
self.suspend.connect("clicked", self.suspend_action)
self.button_box.pack_start(self.suspend)
self.suspend.show()
...

Mine looks like this:
http://crunchbanglinux.org/pastebin/1881


T420s - i5-2520M, 4+4 GB Ram, 64 GB mSATA SSD, #! Linux

Offline

#7 2012-10-08 22:15:44

borgos
New Member
Registered: 2012-10-04
Posts: 9

Re: Sleep function missing from logout dialog

tao te wrote:

You can edit the cb-exit script easily.
(...)

Thanks! But still, I edited the cb-exit script and all I got my system to do is put the display to sleep.

Offline

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.

Debian Logo