Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software Suspend
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fmalabre
Guru
Guru


Joined: 19 Jun 2002
Posts: 376
Location: Chicago

PostPosted: Mon Sep 22, 2003 4:42 am    Post subject: Reply with quote

Few months later...
Is there an ebuild for software suspend?
Back to top
View user's profile Send private message
Reformist
Guru
Guru


Joined: 06 Oct 2002
Posts: 323

PostPosted: Wed Sep 24, 2003 2:36 am    Post subject: Reply with quote

I believe it's an option included in the 2.6.x. kernels (which are in the tree) under the power management related options.
_________________
-Phil Crosby
Back to top
View user's profile Send private message
sveini
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2003
Posts: 80

PostPosted: Sat Nov 15, 2003 4:32 am    Post subject: Reply with quote

Quote:


I updated the new suspend-script (version 0.7) and the HowTo at
http://www.darav.de/gentoo/swsusp.html



I can't get access to this script...

I got it working but when I resume, Xfree is hanging and I have to kill it..
_________________
Magnus frater spectat te!
Back to top
View user's profile Send private message
Reformist
Guru
Guru


Joined: 06 Oct 2002
Posts: 323

PostPosted: Sun Nov 16, 2003 7:00 pm    Post subject: Reply with quote

I think in 2.6, at least with the swsusp version that's in there, you don't need a script. To suspend:
Code:

echo 4 > /proc/acpi/sleep

The information about setting a resume partition etc. still applies, but other than that, I don't think you need any other software. Currently with 2.6 test9, I can suspend from X with just the command above, and resume as well. Note this is the first kernel (test9) that I have been able to resume at all, but once it started working, everything worked =D
_________________
-Phil Crosby
Back to top
View user's profile Send private message
batzee
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 105

PostPosted: Tue Apr 27, 2004 5:32 pm    Post subject: Reply with quote

hi folks..

still a few months later..
I am running gentoo-dev-sources (kernel 2.6.5) on my laptop and the

echo "4" > /proc/acpi/sleep

method works very well .. except for one thing: I'd like to have Gentoo ask me for a password when resuming from standby.

As I am normally only logged on to X, starting a screensaver before going to sleep would suffice. Does anyone know an elegant solution to achieve this?

thanks in advance
Back to top
View user's profile Send private message
Reformist
Guru
Guru


Joined: 06 Oct 2002
Posts: 323

PostPosted: Wed Apr 28, 2004 12:04 am    Post subject: Reply with quote

There's not much elegance in anything done with swsusp or acpi suspend right, so no. I'm sure there's a hackwish way to do it though.
_________________
-Phil Crosby
Back to top
View user's profile Send private message
batzee
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 105

PostPosted: Wed Apr 28, 2004 2:27 pm    Post subject: Reply with quote

Reformist wrote:
There's not much elegance in anything done with swsusp or acpi suspend right, so no. I'm sure there's a hackwish way to do it though.



OK :idea:

So, does anyone know is it possible to have the kernel, the acpid or anything have a script executed that triggers a "lock display" on all X displays before hibernate?
Back to top
View user's profile Send private message
batzee
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 105

PostPosted: Thu Apr 29, 2004 2:59 pm    Post subject: Reply with quote

In case anyone is interested

I just found out that the "hibernate" script from http://swsusp.sourceforge.net
supports the ACPI suspend method (i.e. echo "4" > /proc/acpi/4), and it can also execute any program before hibernating. I use the following script configuration options:

Code:

SWSUSP_FORCE_SUSPEND_MODE="acpi"
SWSUSP_START_PROGS_BEFORE_SUSPEND="/root/dcopscr"


Where /root/dcopscr is the following:

Code:

#!/bin/bash
dcop --all-users --all-sessions kdesktop KScreensaverIface lock


This way, all running kde sessions will be locked before suspending, when resuming from suspend a password must be supplied. Moreover, I have instructed the acpid to run the hibernate script on power button events. So a user can simply push the power button to hibernate and must give his/her password when resuming.

Disadvantage: Works only with kde sessions
Back to top
View user's profile Send private message
Reformist
Guru
Guru


Joined: 06 Oct 2002
Posts: 323

PostPosted: Tue May 04, 2004 1:37 am    Post subject: Reply with quote

Very cool and very clever. Do you know how to do something similar with GNOME?
_________________
-Phil Crosby
Back to top
View user's profile Send private message
bobTheAvenger
n00b
n00b


Joined: 08 Dec 2004
Posts: 7

PostPosted: Tue Feb 01, 2005 6:08 pm    Post subject: Reply with quote

batzee wrote:
hi folks..

still a few months later..
I am running gentoo-dev-sources (kernel 2.6.5) on my laptop and the

echo "4" > /proc/acpi/sleep

method works very well .. except for one thing: I'd like to have Gentoo ask me for a password when resuming from standby.

As I am normally only logged on to X, starting a screensaver before going to sleep would suffice. Does anyone know an elegant solution to achieve this?

thanks in advance


If you use the hibernate script, it has a section in the configuration file to activate either KDELock, XLock, or XScreenSaver. XLock is probably what you want. Get that script from the software suspend homepage.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum