View previous topic :: View next topic |
Author |
Message |
fmalabre Guru
Joined: 19 Jun 2002 Posts: 376 Location: Chicago
|
Posted: Mon Sep 22, 2003 4:42 am Post subject: |
|
|
Few months later...
Is there an ebuild for software suspend? |
|
Back to top |
|
|
Reformist Guru
Joined: 06 Oct 2002 Posts: 323
|
Posted: Wed Sep 24, 2003 2:36 am Post subject: |
|
|
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 |
|
|
sveini Tux's lil' helper
Joined: 31 Oct 2003 Posts: 80
|
Posted: Sat Nov 15, 2003 4:32 am Post subject: |
|
|
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 |
|
|
Reformist Guru
Joined: 06 Oct 2002 Posts: 323
|
Posted: Sun Nov 16, 2003 7:00 pm Post subject: |
|
|
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 |
|
|
batzee Tux's lil' helper
Joined: 27 Apr 2004 Posts: 105
|
Posted: Tue Apr 27, 2004 5:32 pm Post subject: |
|
|
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 |
|
|
Reformist Guru
Joined: 06 Oct 2002 Posts: 323
|
Posted: Wed Apr 28, 2004 12:04 am Post subject: |
|
|
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 |
|
|
batzee Tux's lil' helper
Joined: 27 Apr 2004 Posts: 105
|
Posted: Wed Apr 28, 2004 2:27 pm Post subject: |
|
|
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
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 |
|
|
batzee Tux's lil' helper
Joined: 27 Apr 2004 Posts: 105
|
Posted: Thu Apr 29, 2004 2:59 pm Post subject: |
|
|
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 |
|
|
Reformist Guru
Joined: 06 Oct 2002 Posts: 323
|
Posted: Tue May 04, 2004 1:37 am Post subject: |
|
|
Very cool and very clever. Do you know how to do something similar with GNOME? _________________ -Phil Crosby |
|
Back to top |
|
|
bobTheAvenger n00b
Joined: 08 Dec 2004 Posts: 7
|
Posted: Tue Feb 01, 2005 6:08 pm Post subject: |
|
|
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 |
|
|
|