SEARCH

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

You are not logged in.

#1 2008-12-03 11:53:54

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,887
Website

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

Online

Help fund CrunchBang, donate to the project!

#2 2008-12-03 15:54:06

zopio
CLI Maestro
From: Michigan, USA
Registered: 2008-11-29
Posts: 101
Website

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!

Offline

#3 2008-12-03 16:33:33

swj
Eagle Eyes
From: USA
Registered: 2008-11-29
Posts: 103

Re: New Logout Script with Hibernate & Suspend Options

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

Offline

#4 2008-12-03 17:08:50

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,887
Website

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.

Online

#5 2008-12-03 17:10:18

rizzo
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,102

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.

Offline

#6 2008-12-03 17:27:19

marf
Member
Registered: 2008-12-03
Posts: 24

Re: New Logout Script with Hibernate & Suspend Options

I'll try on my Lenovo X200 as well.

Offline

#7 2008-12-03 17:43:11

rizzo
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,102

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

Offline

#8 2008-12-03 18:38:25

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,887
Website

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.

Online

#9 2008-12-04 02:33:25

marf
Member
Registered: 2008-12-03
Posts: 24

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?

Offline

#10 2008-12-04 02:41:03

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,887
Website

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

Online

#11 2008-12-04 02:50:28

mlweber91
New Member
Registered: 2008-11-30
Posts: 6

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.

Offline

#12 2008-12-04 08:13:27

zopio
CLI Maestro
From: Michigan, USA
Registered: 2008-11-29
Posts: 101
Website

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.

Offline

#13 2008-12-04 08:43:56

rizzo
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,102

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.

Offline

#14 2008-12-09 20:12:27

maxDuck
Member
Registered: 2008-12-07
Posts: 11

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

Offline

#15 2008-12-09 20:30:53

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,554

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


/hugged

Offline

#16 2008-12-09 20:47:02

maxDuck
Member
Registered: 2008-12-07
Posts: 11

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

Offline

#17 2008-12-09 21:22:44

razienwolf
#! CrunchBanger
From: SP, Brasil
Registered: 2008-12-01
Posts: 115

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

Offline

#18 2009-01-13 17:41:00

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

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

Offline

#19 2009-02-01 03:32:55

ZAP
#! Junkie
Registered: 2009-01-31
Posts: 313

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

Offline

#20 2009-02-02 17:12:03

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

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

Offline

#21 2009-03-02 03:30:09

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

Re: New Logout Script with Hibernate & Suspend Options

Thx for the menu script!


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

Offline

#22 2009-03-03 17:42:37

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

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?

Offline

#23 2009-03-03 17:58:27

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,887
Website

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

Online

#24 2009-03-05 23:43:03

leighgable
New Member
From: Paris
Registered: 2009-02-10
Posts: 5

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

Offline

Help fund CrunchBang, donate to the project!

#25 2009-03-06 01:20:02

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

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)

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