You are not logged in.
I tested this out today and the sleep/suspend mode works perfectly for me, as it did with Ubuntu. I have an Intel Core 2 Duo Desktop with ATi Radeon and Ethernet net connection.
Offline
The script works well (suspend) also on eeepc 900 - though there is the “hibernate” issue.
Is there a way to remove 'hibernate' button from that menu?
Since it doesn't work on eeepc 900 (I don't have swap partition so there is no way hibernate will work) I would like to remove that option.
Suspend works perfectly (super+x), even better than the Fn+F1 (Zzzz button) – using #! script the screen doesn't change the brightness setting. No problem with Wi-Fi (with Wicd)
I'm using elmurato script instead of eee-control.
Maybe it is possible to add this script (without hibernate option as in the wiki it is recommended not to create swap partition on ssd eeepc) to the cruncheee (one version – hdd chrunchee - with swap and hibernate button and the other – ssd chruncheee - without)?
Once again – great job! 
PS. I have installed in OO Writer UK/English spelling checker, so hopefully my spelling will improve 
Last edited by klanger (2009-03-07 08:47:42)
Offline
Thanks! 
Works fine on my Samsung R20)
I'd like to know
what this whole show
is all about
before it's out.
Offline
Is there a way to remove 'hibernate' button from that menu?
See http://crunchbanglinux.org/forums/post/12974/#p12974 - in this thread itself, on page one. You can control what button you see by editing the config file /etc/oblogout.conf
Offline
Just a couple of notes from trying this on my Aspire one.
The suspend option appeared correctly on the openbox-logout menu, however the suspend button did nothing. Running openbox-logout from the terminal and pushing the suspend button gave the message "sh: gnome-power-cmd.sh: not found".
gnome-power-manager is installed and I have been unable to resolve the problem here.
Once I realised there was another script I installed oblogout, but there was no suspend button. The conf file contained the shortcut for suspend but I had to add the button myself. This now works perfectly.
I'm happy now with oblogout - it looks way better than openbox-logout
though the text can be impossible to read depending on what's behind it.
Offline
The script doesn't seem to work on my HP Pavilion dv5-1002US. Both the suspend button and the hibernate button don't do anything at all. When I click them, the button just changes it look to the 'pressed down' state, that's all.
Two side notes, that might be of interest here, irregardless of which script I use:
My buttons look like regular buttons, instead of the nice black and white ones, I had under 8.10.
I can't use the short cuts, like I could in 8.10 (s to shut down, r to restart, etc).
Offline
It didn't work for me. Clicking the suspend and hibernate buttons gives this error in the terminal:
sh: gnome-power-cmd.sh: not foundI also tried oblogout - it suspended nicely but failed to resume again (the screen kept being black).
Offline
The script doesn't seem to work on my HP Pavilion dv5-1002US. Both the suspend button and the hibernate button don't do anything at all. When I click them, the button just changes it look to the 'pressed down' state, that's all.
Two side notes, that might be of interest here, irregardless of which script I use:
My buttons look like regular buttons, instead of the nice black and white ones, I had under 8.10.
I can't use the short cuts, like I could in 8.10 (s to shut down, r to restart, etc).
This is the same issue I had initially with openbox-logout. Install oblogout to get the nice looking buttons and follow the instructions earlier in this thread to edit the conf file if you need to enable the suspend & hibernate buttons.
Offline
Erik wrote:The script doesn't seem to work on my HP Pavilion dv5-1002US. Both the suspend button and the hibernate button don't do anything at all. When I click them, the button just changes it look to the 'pressed down' state, that's all.
Two side notes, that might be of interest here, irregardless of which script I use:
My buttons look like regular buttons, instead of the nice black and white ones, I had under 8.10.
I can't use the short cuts, like I could in 8.10 (s to shut down, r to restart, etc).This is the same issue I had initially with openbox-logout. Install oblogout to get the nice looking buttons and follow the instructions earlier in this thread to edit the conf file if you need to enable the suspend & hibernate buttons.
Hmm, I've installed oblogout, but still no fancy buttons (or working shortcuts). Do I need to set things up in the .conf file? Judging by the contents of .conf file, it looks like it's completely ignored...
[looks]
opacity = 70
bgcolor = black
buttontheme = foom-small
buttons = cancel, logout, restart, shutdown, lock
[shortcuts]
cancel = Escape
shutdown = S
restart = R
suspend = U
logout = L
lock = K
hibernate = HLast edited by Erik (2009-05-11 16:27:39)
Offline
Hmm, I've installed oblogout, but still no fancy buttons (or working shortcuts). Do I need to set things up in the .conf file? Judging by the contents of .conf file, it looks like it's completely ignored...
Run oblogout from the command line. Super + X will continue to launch the other logout-script until you change it in your ~/.config/openbox/rc.xml.
Offline
Erik wrote:Hmm, I've installed oblogout, but still no fancy buttons (or working shortcuts). Do I need to set things up in the .conf file? Judging by the contents of .conf file, it looks like it's completely ignored...
Run oblogout from the command line. Super + X will continue to launch the other logout-script until you change it in your ~/.config/openbox/rc.xml.
Also edit ~/.config/openbox/menu.xml. In both files replace any occurances of openbox-logout with oblogout.
You will also need to add suspend and hibernate to the buttons line in the .conf file to get them to appear.
Offline
* Revives old thread *
Just on the issue that EmilAndersson had, I got the same thing (under 9.04). You need to open the script and replace every instance of 'gnome-power-cmd.sh' with 'gnome-power-cmd' and it will work. This might be due to differences in the gnome-power-manager packages between Intrepid and Jaunty but I don't know.
Hibernate now works like a dream for me, but suspend doesn't (it never has done though!).
Thanks for the script.
Blog: http://blog.webworxshop.com
Identi.ca: http://identi.ca/robconnolly
Offline
Since the thread was revived....
The script works great on my Gateway CX210X running #!8.10.
For me, the suspend (Fn-F3) always worked but hibernate never did.
Auto Eth0 reconnects but WiFi doesn't but that is the same behavior when using suspend before.
Thanks! for the script.
Offline
Not working for me on an HP nc6000 with the firegl T2 card, xorg driver.
pm-suspend works fine, although for some reason doesn't lock the screen, I go straight back into the session after resume.
But "suspend" from the panel, closing the laptop lid, etc, etc doesn't do anything at all,even though they're all set to "suspend".
EDIT: I should add, this is on the latest #! 9.04.01 which I installed yesterday. It was working fine on 8.10, but I vaguely remember having to edit a file somewhere to get it working from the exit panel, and suspend-when-laptop-lid-closed didn't work in 8.10 either.
Can I add buttons to the popup panel? I'd like a "lock screen" there too.
Last edited by jackbang (2009-07-10 23:57:04)
Offline
I made suspend other way.....
just "gksudo gedit /usr/bin/openbox-logout"
and make other button.....
On bold is new stuff for new button
--------------------------------
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import os
class DoTheLogOut:
# Cancel/exit
def delete_event(self, widget, event, data=None):
gtk.main_quit()
return False
# Logout
def logout(self, widget):
os.system("openbox --exit")
# Reboot
def reboot(self, widget):
os.system("gdm-control --reboot && openbox --exit")
# Shutdown
def shutdown(self, widget):
os.system("gdm-control --shutdown && openbox --exit")
# Suspend
def suspend(self, widget):
os.system("gnome-power-cmd suspend")
gtk.main_quit()
return false
def __init__(self):
# Create a new window
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_title("Exit? Choose an option:")
self.window.set_resizable(False)
self.window.set_position(1)
self.window.connect("delete_event", self.delete_event)
self.window.set_border_width(20)
# Create a box to pack widgets into
self.box1 = gtk.HBox(False, 0)
self.window.add(self.box1)
# Create cancel button
self.button1 = gtk.Button("_Cancel")
self.button1.set_border_width(10)
self.button1.connect("clicked", self.delete_event, "Changed me mind
")
self.box1.pack_start(self.button1, True, True, 0)
self.button1.show()
# Create logout button
self.button2 = gtk.Button("_Log out")
self.button2.set_border_width(10)
self.button2.connect("clicked", self.logout)
self.box1.pack_start(self.button2, True, True, 0)
self.button2.show()
# Create reboot button
self.button3 = gtk.Button("_Reboot")
self.button3.set_border_width(10)
self.button3.connect("clicked", self.reboot)
self.box1.pack_start(self.button3, True, True, 0)
self.button3.show()
# Create shutdown button
self.button4 = gtk.Button("_Shutdown")
self.button4.set_border_width(10)
self.button4.connect("clicked", self.shutdown)
self.box1.pack_start(self.button4, True, True, 0)
self.button4.show()
# Create suspend button
self.button5 = gtk.Button("_Suspend")
self.button5.set_border_width(10)
self.button5.connect("clicked", self.suspend)
self.box1.pack_start(self.button5, True, True, 0)
self.button5.show()
self.box1.show()
self.window.show()
def main():
gtk.main()
if __name__ == "__main__":
gogogo = DoTheLogOut()
main()
----------------
it is a nice thing i would like to see in next Crunchbang release 9.10 
Offline
Hey jackbang, did you figure out which file you had to edit when switching from Ubuntu 8.10 to 9.04? If so I'd love to know.
I have a Dell XPS1210 and Suspend and Hibernate worked fine under Ubuntu 8.10. Upgrading to 9.04 broke suspend (hibenate still works); same issue in 9.10. I read that a bunch of people had that issue with XPS laptops.
Unsurprisingly #! doesn't suspend properly either. However, #! works a lil' better than Ubuntu if I recall this right: laptop goes into suspend and sort of wakes up again under #!. I sometimes get back to my desktop after suspend and can see it where I left it. However, no button works (including mouse buttons). So I can't start/close programs or log out. As soon as I zap X with ctrl/alt/backspace I get a bunch of error messages and the comp hangs itself up.
I have read that some Ubuntu users changed to a different Kernel in order to fix this issue. I tried Corenomical's script, but that didn't fix it for me.
Thought I share my experience. If there's an easy fix I'd be happy to know, but changing the Kernel sounds like asking for more potential trouble than it's worth - as long as hibernate works I'm happy and content.
Man spricht deutsch. 
Offline
I made suspend other way.....
just "gksudo gedit /usr/bin/openbox-logout"
and make other button.....
Thank you Pirolocito!!! this works like a charm in my acer aspire 5635wlmi... 
Offline
I made suspend other way.....
just "gksudo gedit /usr/bin/openbox-logout"
and make other button.....
Thank you ever so much Pirolocito! This worked like a charm on my little Asus Eee 900/16 netbook running #!CrunchBang 9.04.01. Now if I could only figure out how to make it suspend when I close the lid!
Rob Smith
"Linux, because software, like people, should be allowed to exist in an open, sharing community, and not kept contained by corporate greed!"
Offline
Now if I could only figure out how to make it suspend when I close the lid!
On terminal or alt+F2 run gnome-screensaver-preferences, then power management on the bottom and change the close lid behavior to the one you want.
Offline
With openbox-logout I got error:
sh: gnome-power-cmd.sh: not found
I edited /usr/bin/openbox-logout and replaced "gnome-power-cmd.sh" with "gnome-power-cmd" on Hibernate and Suspend, and both work ok now
.
Installed also oblogout, and suspend works ok, but hibernate only locks the screen... what command uses oblogout to hibernate? Maybe I could edit that... but on /usr/bin/oblogout there are not visible (by me) direct commands for the different button actions... Maybe other file to edit the commands? I would like to fix it since I prefer the looks of oblogout 
Cheers,
Mguel
PS: Using from a couple of days ago CrunchBang (9.04), and liking it a lot (even though my desktop is capable of a heavier systems... I used Kubuntu previously)
Last edited by Mguel (2010-01-01 13:03:25)
Offline
Finally I edited /usr/share/pyshared/oblogout/oblogout.py and replaced:
elif (data == 'hibernate'):
self.window.hide()
os.system('gnome-screensaver-command -l')
try:
self.dbus_powermanagement.Hiberate()
except:
pass
self.quit()with
elif (data == 'hibernate'):
self.window.hide()
os.system('sleep 1s && gnome-power-cmd hibernate')
self.quit()And now hibernate button on oblogout is working fine also. Probably is not something safe and efective for all the systems, buy I wanted to mention it in case other has the same issues as I did.
Cheers,
Mguel
PS: not sure if the one second delay is necessary but I kept the same command used by openbox-logout
Last edited by Mguel (2010-01-01 13:27:29)
Offline
rho wrote:How do I make oblogout command show the seven options - cancel, hibernate, suspend, logout, reboot, shutdown, lock?
Here is the original file with all options...
I added switch (change user) button:
[looks]
opacity = 70
bgcolor = black
buttontheme = foom-small
buttons = cancel, logout, switch, lock, suspend, hibernate, restart, shutdown
[shortcuts]
cancel = Escape
shutdown = S
restart = R
suspend = U
logout = L
lock = K
hibernate = H
switch = WLast edited by Mguel (2010-01-01 13:26:47)
Offline
The new script can be installed with the following terminal command:
sudo apt-get update && sudo apt-get install openbox-logout-script
I tried installing via terminal and received the following error
Couldn't find package openbox-logout-script
Maybe I'm missing a needed repository? My sources.list Thanks.
[SOLVED]:Found it
Last edited by nabilalk (2010-01-25 23:21:03)
#! 10 “Statler” r20110207 32-bit & Openbox
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.