SEARCH

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

You are not logged in.

#26 2009-03-06 08:18:18

Blaise
Member
Registered: 2009-03-05
Posts: 15

Re: New Logout Script with Hibernate & Suspend Options

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

Help fund CrunchBang, donate to the project!

#27 2009-03-07 08:38:48

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: New Logout Script with Hibernate & Suspend Options

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! big_smile


PS. I have installed in OO Writer UK/English spelling checker, so hopefully my spelling will improve wink

Last edited by klanger (2009-03-07 08:47:42)

Offline

#28 2009-03-23 20:13:40

giperon
Member
From: Ukraine, Sumy
Registered: 2009-03-23
Posts: 13

Re: New Logout Script with Hibernate & Suspend Options

Thanks! smile
Works fine on my Samsung R20)


I'd like to know
what this whole show
is all about
before it's out.

Offline

#29 2009-03-24 02:13:05

rho
Member
From: Mumbai, India
Registered: 2009-03-02
Posts: 12

Re: New Logout Script with Hibernate & Suspend Options

klanger wrote:

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

#30 2009-03-24 08:28:35

Nik_Doof
#! Junkie
Registered: 2008-12-13
Posts: 361
Website

Re: New Logout Script with Hibernate & Suspend Options

Don't get oblogout and the old openbox-logout script confused, Klanger maybe talking about the old script.

Offline

#31 2009-05-10 11:53:30

bod
New Member
From: Chorley, UK
Registered: 2009-03-11
Posts: 4
Website

Re: New Logout Script with Hibernate & Suspend Options

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 smile though the text can be impossible to read depending on what's behind it.

Offline

#32 2009-05-10 15:00:46

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 176

Re: New Logout Script with Hibernate & Suspend Options

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

#33 2009-05-10 16:04:20

EmilAndersson
Member
Registered: 2009-05-02
Posts: 10

Re: New Logout Script with Hibernate & Suspend Options

It didn't work for me. Clicking the suspend and hibernate buttons gives this error in the terminal:

sh: gnome-power-cmd.sh: not found

I also tried oblogout - it suspended nicely but failed to resume again (the screen kept being black).

Offline

#34 2009-05-10 17:25:42

bod
New Member
From: Chorley, UK
Registered: 2009-03-11
Posts: 4
Website

Re: New Logout Script with Hibernate & Suspend Options

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.

Offline

#35 2009-05-11 16:24:09

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 176

Re: New Logout Script with Hibernate & Suspend Options

bod wrote:
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 = H

Last edited by Erik (2009-05-11 16:27:39)

Offline

#36 2009-05-11 16:52:31

EmilAndersson
Member
Registered: 2009-05-02
Posts: 10

Re: New Logout Script with Hibernate & Suspend Options

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.

Offline

#37 2009-05-11 17:49:29

bod
New Member
From: Chorley, UK
Registered: 2009-03-11
Posts: 4
Website

Re: New Logout Script with Hibernate & Suspend Options

EmilAndersson wrote:
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

#38 2009-05-23 00:25:10

mattf
Member
From: Washington DC
Registered: 2009-05-19
Posts: 13
Website

Re: New Logout Script with Hibernate & Suspend Options

Works like a charm on my Toshiba Satellite. cool

Offline

#39 2009-06-23 07:43:40

robconnolly
Member
From: Auckland, New Zealand
Registered: 2009-03-02
Posts: 41
Website

Re: New Logout Script with Hibernate & Suspend Options

* 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.

Offline

#40 2009-06-23 10:44:09

dastagg
Member
Registered: 2009-02-20
Posts: 14

Re: New Logout Script with Hibernate & Suspend Options

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

#41 2009-07-10 23:42:27

jackbang
#! CrunchBanger
Registered: 2009-05-28
Posts: 244

Re: New Logout Script with Hibernate & Suspend Options

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

#42 2009-10-09 23:38:38

Pirolocito
New Member
Registered: 2009-09-06
Posts: 4

Re: New Logout Script with Hibernate & Suspend Options

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 smile")
        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 smile

http://linuxmadeasy.blogspot.com/2009/1 … on-on.html


Tutorials and Howto's in

http://linuxmadeasy.blogspot.com/

Offline

#43 2009-11-12 09:31:38

vino
Member
From: D.C.
Registered: 2009-11-10
Posts: 14

Re: New Logout Script with Hibernate & Suspend Options

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. wink

Offline

#44 2009-11-27 21:42:33

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: New Logout Script with Hibernate & Suspend Options

Pirolocito wrote:

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... big_smile

Offline

#45 2009-12-30 09:40:54

rasmith3530
#! Member
From: 50 Miles NW of Maxwell Street
Registered: 2009-01-13
Posts: 51

Re: New Logout Script with Hibernate & Suspend Options

Pirolocito wrote:

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

#46 2009-12-31 02:42:50

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: New Logout Script with Hibernate & Suspend Options

rasmith3530 wrote:

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

#47 2010-01-01 13:00:07

Mguel
New Member
Registered: 2010-01-01
Posts: 7

Re: New Logout Script with Hibernate & Suspend Options

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 big_smile.

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 wink

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

#48 2010-01-01 13:20:13

Mguel
New Member
Registered: 2010-01-01
Posts: 7

Re: New Logout Script with Hibernate & Suspend Options

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

#49 2010-01-01 13:25:10

Mguel
New Member
Registered: 2010-01-01
Posts: 7

Re: New Logout Script with Hibernate & Suspend Options

corenominal wrote:
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 = W

Last edited by Mguel (2010-01-01 13:26:47)

Offline

Be excellent to each other!

#50 2010-01-25 22:41:48

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: New Logout Script with Hibernate & Suspend Options

corenominal wrote:

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

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