Re: suspend on my asus eeepc



On Wed, 3 Feb 2010 18:31:49 +1100
Daniel Dalton <d.dalton@xxxxxxxxxxxx> wrote:

Hi,

Can someone please advise me how to suspend from the command line?

Look at the uswsusp and hibernate packages.

Also when my laptop lid is closed, the system suspends. I'm just on the
command line, no gui is running. I see this in syslog, but am unsure
what program is responsible...?
Feb 3 18:16:58 debian-eeepc kernel: [ 3493.605992] Suspending
console(s) (use no_console_suspend to debug)

Anyway, on resuming from suspend, does anyone know how I can call a
script once the system is back up again? eg. I want to call
/usr/local/bin/post-suspend. How do I do this when the laptop resumes?

I think that this is easy with the hibernate package, but I don't have
it installed right now to check.

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Enable CONFIG_USB_SUSPEND by default or some mobile HD cant be unplugged safely
    ... I have no way to unplug ... turns it into `suspend' mode, ... -remove SCSI disk ... Thing is that some USB storage devices don't support both of those commands. ...
    (Linux-Kernel)
  • Re: Shutdown
    ... Turn off Computer (with Suspend to RAM and Suspend to Disk as ... It brings you to command line. ... Boot back up, logout, log in with Gnome, works fine again. ... I assume gdm because the original installation was gnome. ...
    (alt.os.linux.suse)
  • Re: Preventing Tight Loops
    ... command might be interrupted as well as provide several different options ... consequences of interrupting the command etc. ... I wonder how ON KEY LABEL CTRL+0 SUSPEND would work? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Suspending an Ultra 5/Solaris 8
    ... there was a power failure. ... but the sys-suspend command no longer works. ... >it generates an error dialog box with the message "Suspend is not ... >has persisted even after a couple complete reboots. ...
    (comp.unix.solaris)
  • Re: [opensuse] s2ram -f works -- but only for root -- why?
    ... This makes little sense in light of the same command being executed each time. ... running suspend from the menu is bit different from running s2ram. ... s2ram will just force the PC/laptop into suspend, from the menu pm-utils are used, so other scripts are also executed (to restore video on some machines, or recover the network, etc). ... wireless hardware. ...
    (SuSE)