All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Schweizer <sschweizer@gmail.com>
To: Stefan Seyfried <seife@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: FYI: my current bigdiff
Date: Sun, 12 Sep 2004 11:32:33 +0200	[thread overview]
Message-ID: <e7963922040912023274749b14@mail.gmail.com> (raw)
In-Reply-To: <414415AA.8050503@suse.de>

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

On Sun, 12 Sep 2004 11:23:54 +0200, Stefan Seyfried <seife<at>suse.de> wrote:
> What is "LeaveXBeforeSuspend"?
> 
> just "echo 4 > /proc/acpi/sleep" or "echo disk > /sys/power/state".
> 
>         Stefan
> 

It is an option in the hibernate-script of Bernard Blackham.
You can find the latest Version at http://dagobah.ucc.asn.au/swsusp/script2/

The config is attached.

LeaveXbeforesuspend just does a chvt15 before and chvt 7 after suspend.

[-- Attachment #2: hibernate-disk.conf --]
[-- Type: application/octet-stream, Size: 2256 bytes --]

# Example hibernate.conf file. Adapt to your own tastes.
# Options are not case sensitive.
# 
# Run "hibernate -h" for help on the configuration items.

### swsusp2_15 (for Software Suspend 2)
# UseSwsusp2 yes
# Reboot no
# EnableEscape yes
# DefaultConsoleLevel 1
# ImageSizeLimit 200
## useful for initrd usage:
# SuspendDevice /dev/hda2
# LoadSuspendModules suspend_swap suspend_lzf suspend_text
# UnloadSuspendModulesAfterResume yes

### sysfs_power_state
## To use /sys/power/state to suspend your machine (which may offer
## suspend-to-RAM, suspend-to-disk, standby, etc) comment out all the options
## above for Software Suspend 2, and uncomment this line. You may replace mem
## with any one of the states from "cat /sys/power/state"
UseSysfsPowerState disk

### global settings
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
# AlwaysForce yes
# AlwaysKill yes
SwsuspVT 15
# Distribution debian (not required - autodetection should work)

### bootsplash
## If you use bootsplash, also enabling LeaveXBeforeSuspend is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg

### clock
SaveClock yes

### devices
# IncompatibleDevices /dev/dsp /dev/video*

### diskcache
# DisableWriteCacheOn /dev/hda

### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# Mount /windows

### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst

### lilo
# EnsureLILOResumes yes

### lock (generally you only want one of the following options)
# LockKDE yes
# LockXScreenSaver yes
# LockConsoleAs root

### misclaunch
OnSuspend 20 pgrep mplayer && killall mplayer
OnSuspend 22 rmmod -f omnibook
OnResume 20 pgrep dhcpcd && dhcpcd -n

### modules
UnloadModules button
# UnloadAllModules yes
# UnloadBlacklistedModules yes
LoadModules button omnibook
# LoadModulesFromFile /etc/modules

### modules-gentoo
# GentooModulesAutoload yes

### network
# DownInterfaces eth0
# UpInterfaces auto

### programs
# IncompatiblePrograms xmms

### services
# RestartServices postfix
# StopServices mplayer
# StartServices aumix

### xhacks
LeaveXBeforeSuspend yes
# nVidiaHack yes


  reply	other threads:[~2004-09-12  9:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-09 13:44 FYI: my current bigdiff Pavel Machek
2004-09-10  4:13 ` Kevin Fenzi
2004-09-10  9:44   ` Pavel Machek
2004-09-10 17:27     ` Kevin Fenzi
2004-09-10 22:46   ` Bjorn Helgaas
2004-09-11 16:41     ` Stefan Seyfried
2004-09-11 18:55       ` Kevin Fenzi
2004-09-11 18:50     ` Kevin Fenzi
2004-09-13 22:06   ` Bjorn Helgaas
2004-09-12  8:54 ` Stefan Schweizer
2004-09-12  9:23   ` Stefan Seyfried
2004-09-12  9:32     ` Stefan Schweizer [this message]
2004-09-12 11:39       ` Stefan Seyfried
2004-09-12 21:03   ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7963922040912023274749b14@mail.gmail.com \
    --to=sschweizer@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seife@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.