Topic: New Logout Script with Hibernate & Suspend Options

I have created a new package which replaces the current openbox-logout script. The script has additional buttons for "Hibernate" and "Suspend". I have done some limited testing on the script and while it invokes both hibernation and suspend, I have had mixed results with actually using these features. For example, my Acer notebook will successfully hibernate and suspend, but on resume I lose network connectivity. I will experiment some more on my own system, but it would be good if we could get some more general testing done.

The new script can be installed with the following terminal command:

sudo apt-get update && sudo apt-get install openbox-logout-script

I will keep this topic sticky for while, please feel free to test the new script and report back with your own results. Thanks smile

Update: I have created another package featuring the original script, just in case anyone would like to switch back! Use the command below to revert to the original:

sudo apt-get remove openbox-logout-script && sudo apt-get update && sudo apt-get install openbox-logout-script-basic

Re: New Logout Script with Hibernate & Suspend Options

Corenominal --

I've installed the package and tested both the suspend and hibernate functions.  They both work PERFECTLY for me, with WiFi immediately reconnecting after wake-up.  It might be nice for you to hear that I've never been able to get either suspend or hibernate to work properly on an ubuntu machine before, so bravo.

I'll report any idiosyncrasies that I encounter with these in the future, but it seems well and good for the time being.  Cheers!

Re: New Logout Script with Hibernate & Suspend Options

I will definitely try this on my Lenovo T61 when I get a chance. :)

Re: New Logout Script with Hibernate & Suspend Options

zopio wrote:

I've installed the package and tested both the suspend and hibernate functions.  They both work PERFECTLY for me, with WiFi immediately reconnecting after wake-up.

w00t! It is good to read it is working for someone, thank you for testing it out.

swj wrote:

I will definitely try this on my Lenovo T61 when I get a chance. smile

Thanks swj, look forward to reading about it.

Re: New Logout Script with Hibernate & Suspend Options

I've never had much success with Hibernate on any of my systems but I'll give Suspend a work out and report back.

Re: New Logout Script with Hibernate & Suspend Options

I'll try on my Lenovo X200 as well.

Re: New Logout Script with Hibernate & Suspend Options

OK, tested this on my Travelmate and the suspend function worked well smile Hibernate closed down okay and looked like it was going to wake ok but then suddenly started going in reverse and shutdown completely smile Still that's further than anything else has got on this laptop before smile

Re: New Logout Script with Hibernate & Suspend Options

omns wrote:

OK, tested this on my Travelmate and the suspend function worked well  Hibernate closed down okay and looked like it was going to wake ok but then suddenly started going in reverse and shutdown completely  Still that's further than anything else has got on this laptop before

Hey omns smile Thanks for testing it out. Sorry to hear it is not working for you. I have always had mixed results with these features myself, which probably explains why I omitted them when I first wrote the script. Still, I know some people have been requesting this, so hopefully it will prove to be useful for some.

Re: New Logout Script with Hibernate & Suspend Options

Ok, tested the new script out on my Lenovo X200. Hibernate seemed to shutdown fine, but when it was restoring.. it froze (at the splash screen).

Standby wasn't much better, it seemed to go in standby fine, however when I powered back up, it "seemed" to be working, and then the laptop powered down completely.

Now my question to you, how can I downgrade back to the original logout script?

sudo apt-get remove openbox-logout-script

should that do the trick?

Re: New Logout Script with Hibernate & Suspend Options

Hello marf smile

We must think along the same lines. I have just updated the original post with details about how to revert to the old script big_smile

Re: New Logout Script with Hibernate & Suspend Options

Doesn't seem to work for me either on a Dell E1405 laptop (Core 1 Solo, Intel MB)...

mlweber@mattsbox:/$ openbox-logout
Suspending
Error org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 0
Failed
/usr/bin/openbox-logout: no process killed
Terminated


Simply running pm-suspend works just fine. It comes back with networking, video, and all working. Perhaps it has something to do with all of my "customizations". I will try again when I do a reinstall later, which I plan on doing as soon as the lite installer is ready (prod).  The error message is the same for hibernate.

Re: New Logout Script with Hibernate & Suspend Options

Forgot to mention that I got Suspend and Hibernate to work on a Sony VGN-FZ240E Laptop, if that's of note to anybody.

Re: New Logout Script with Hibernate & Suspend Options

On a second test, the same machine I tested before did come out of hibernation ok. The only problem was that I'd moved from home to work and wicd flipped out with the sudden change of network.

Re: New Logout Script with Hibernate & Suspend Options

just tested on my eee 701sd.

hibernate just sends me to the locked screen login.

but suspend works perfectly! wifi connected back straight away.

first distro this has worked for me.... yet another reason to lose my heart to #!

Re: New Logout Script with Hibernate & Suspend Options

maxDuck wrote:

just tested on my eee 701sd.

hibernate just sends me to the locked screen login.

but suspend works perfectly! wifi connected back straight away.

first distro this has worked for me.... yet another reason to lose my heart to #!


Do you have a swap partition? (I ask because I know a lot of eee users don't have one.)

Re: New Logout Script with Hibernate & Suspend Options

snowpine wrote:
maxDuck wrote:

just tested on my eee 701sd.

hibernate just sends me to the locked screen login.

but suspend works perfectly! wifi connected back straight away.

first distro this has worked for me.... yet another reason to lose my heart to #!


Do you have a swap partition? (I ask because I know a lot of eee users don't have one.)

yup. I have a swap. However even when i have on other distros it hasn't worked for me...

Re: New Logout Script with Hibernate & Suspend Options

HIbernate works ok

Suspend is no good, it only turned of my hard drives, but forgot to do the rest =s

Re: New Logout Script with Hibernate & Suspend Options

I tried to install the script but received the following error. Is there an additional repository that I need to enable?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package openbox-logout-script

EDIT: I didn't realize, but it appears that I was trying to load this for an earlier version of CrunchBang (8.04.01). I will try this again now that I have installed the current version.

Last edited by rasmith3530 (2009-01-14 03:51:12)

Rob Smith
"Linux, because software, like people, should be allowed to exist in an open, sharing community, and not kept contained by corporate greed!"

19

Re: New Logout Script with Hibernate & Suspend Options

Just tested this on my 4GB SSD Eee PC 701 with 1 GB RAM. Suspend worked perfectly, but Hibernate gave me a "Not enough swap space" error. I did install with a swap partition, but maybe I'll get rid of it if hibernation isn't going to work anyway (and suspend is fine with me).

Re: New Logout Script with Hibernate & Suspend Options

Since posting previously, I installed #!CrunchBang 8.10.01 to my IBM Thinkpad X40. I installed the new script and the machine suspends normally. However, on resume from suspend, I don't have network and must reboot to get that functionality back.

Rob Smith
"Linux, because software, like people, should be allowed to exist in an open, sharing community, and not kept contained by corporate greed!"

Re: New Logout Script with Hibernate & Suspend Options

Thx for the menu script!

#! 10 “Statler” r20110207 32-bit & Openbox

22

Re: New Logout Script with Hibernate & Suspend Options

I am doing something stupid here.

I have installed the openbox-logout-script (and checked that openbox-logout-script-basic is not installed). Firing the exit command (through the menu, super+x, or just oblogout) shows five options - cancel, logout, restart, shutdown, lock. Firing the openbox-logout command, on the other hand, gives me - cancel, hibernate, suspend, logout, reboot, shutdown. No lock option and also, this shows as a modal window with the theme's decorations, unlike oblogout.

How do I make oblogout command show the seven options - cancel, hibernate, suspend, logout, reboot, shutdown, lock?

Re: New Logout Script with Hibernate & Suspend Options

rho wrote:

How do I make oblogout command show the seven options - cancel, hibernate, suspend, logout, reboot, shutdown, lock?

Hello rho smile

You can edit the configuration file to include the extra options. Enter the following command to edit the file:

gksudo leafpad /etc/oblogout.conf &

Here is the original file with all options:

[looks]
opacity = 70
bgcolor = black
buttontheme = foom
buttons = cancel, logout, restart, shutdown, suspend, lock

[shortcuts]
cancel = Escape
shutdown = S
restart = R
suspend = U
logout = L
lock = K
hibernate = H

Hope this helps. smile

Re: New Logout Script with Hibernate & Suspend Options

Hello,

I'm on a Dell Latitude D430 with a crunchbang lite install. I tried the new script, and I get an error message having to do with the graphics driver:

"5946. something something: iwlagn cant stop RX DMA..." as best I can recall it's something like that. The laptop shuts down. When I restart, after the kernel boots, it takes a moment to wake up, and then I am presented with the login prompt as if it were coming out of hibernation.

My var/log/debug has this to say:

Mar  6 00:29:23 tiny kernel: [ 5960.272665] iwlagn 0000:0c:00.0: restoring config space at offset 0x1 (was 0x100002, writing 0x100006)

It might just be that the wlagn driver isn't properly configured. I am new to linux, and not sure about a lot of things on my system. Here's what lshw says:

display:0 UNCLAIMED
             description: VGA compatible controller
             product: Mobile 945GM/GMS, 943/940GML Express Integrated Graphics C
ontroller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: latency=0
        *-display:1 UNCLAIMED
             description: Display controller
             product: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphi
cs Controller

25

Re: New Logout Script with Hibernate & Suspend Options

corenominal wrote:

Hello rho smile

You can edit the configuration file to include the extra options. Enter the following command to edit the file:

Thanks corenominal! That did the trick. I have been using Ubuntu for so long that I have almost lost the feel of looking in /etc for config files to fiddle with roll I should have checked out oblogout's files before posting.

And hibernate and suspend works correctly. When I come back after a suspend, the screen is locked and the wi-fi resumes as soon as I unlock the desktop.

Last edited by rho (2009-03-06 01:21:50)