debian/0000755000000000000000000000000011750272222007166 5ustar debian/patches/0000755000000000000000000000000011750272222010615 5ustar debian/patches/10-grub-backup.patch0000644000000000000000000000357111750272222014264 0ustar Description: Moves the grub menu.lst backup file to /var/backups Author: martin f. krafft Last-Update: 2012-05-01 --- a/scriptlets.d/grub +++ b/scriptlets.d/grub @@ -1,11 +1,13 @@ # -*- sh -*- # vim:ft=sh:ts=8:sw=4:noet +GRUB_MENU_DFLT_BACKUP_FILE="/var/backups/grub.conf.hibernate" + AddConfigHandler GrubConfigOptions AddConfigHelp "ChangeGrubMenu " "Change grub's config file to show system is suspended before suspending and restore after resume." AddConfigHelp "GrubMenuFile " "Filename of grub's config file. Default is /boot/grub/grub.conf." AddConfigHelp "AlternateGrubMenuFile " "Filename of the grub config file to put in place when the machine is suspended. If this is not specified, the script will add a small header to the existing grub menu." -AddConfigHelp "BackupGrubMenuFile " "Where to keep a backup of your real grub menu file. Defaults to the current grub menu file with '.hibernate.bak' appended." +AddConfigHelp "BackupGrubMenuFile " "Where to keep a backup of your real grub menu file. Defaults to ${GRUB_MENU_DFLT_BACKUP_FILE}." AddOptionHandler GrubCmdlineOptions AddShortOption 'g' @@ -25,7 +27,7 @@ vecho 2 "Changing grub menu..." # Make a backup, and abort if we fail to. - if ! cp "$GRUB_MENU_FILE" "${BACKUP_GRUB_MENU_FILE:-$GRUB_MENU_FILE.hibernate.bak}" ; then + if ! cp "$GRUB_MENU_FILE" "${BACKUP_GRUB_MENU_FILE:-$GRUB_MENU_DFLT_BACKUP_FILE}" ; then vecho 0 "Could not make backup of grub menu. Not changing!" return 1 # abort if not forced fi @@ -65,7 +67,7 @@ $GRUB_MENU_FILE > $GRUB_MENU_FILE.hibernate.new \ && mv $GRUB_MENU_FILE.hibernate.new $GRUB_MENU_FILE else - mv "${BACKUP_GRUB_MENU_FILE:-$GRUB_MENU_FILE.hibernate.bak}" "$GRUB_MENU_FILE" + mv "${BACKUP_GRUB_MENU_FILE:-$GRUB_MENU_DFLT_BACKUP_FILE}" "$GRUB_MENU_FILE" fi fi } debian/patches/99-store-ifdown-auto.patch0000644000000000000000000000613711750272222015472 0ustar Author: martin f. krafft --- a/scriptlets.d/network +++ b/scriptlets.d/network @@ -30,9 +30,7 @@ [ "$int" = "lo" ] && continue fi vecho 2 "Bringing down interface $int" - network_ifdown $int - [ $? -ne 0 ] && ret=1 - NETWORK_DOWNEDIFS="$int $NETWORK_DOWNEDIFS" + NETWORK_DOWNEDIFS="$(network_ifdown $int) $NETWORK_DOWNEDIFS" || ret=$? done return $ret } @@ -103,7 +101,9 @@ [ -x "/etc/init.d/net.$1" ] && /etc/init.d/net.$1 start } network_ifdown() { - [ -x "/etc/init.d/net.$1" ] && /etc/init.d/net.$1 stop + [ -x "/etc/init.d/net.$1" ] && /etc/init.d/net.$1 stop \ + || return $? + echo $1 } ;; suse) @@ -111,7 +111,8 @@ /etc/init.d/network start } network_ifdown() { - /etc/init.d/network stop + /etc/init.d/network stop || return $? + echo all } NETWORK_CALL_ONCE=1 ;; @@ -121,15 +122,20 @@ --startas /sbin/ifup --name "hibernate_ifup_$1" -- $* } network_ifdown() { - /sbin/ifdown $* - } + STDERR="$(/sbin/ifdown $1 2>&1 1>/dev/null)" || return $? + case "$STDERR" in + "/sbin/ifdown: interface $1 not configured") :;; + *) echo $1;; + esac + } ;; mandrake|fedora|redhat) network_ifup() { /sbin/ifup $* } network_ifdown() { - /sbin/ifdown $* + /sbin/ifdown $* || return $? + echo $* } ;; slackware) @@ -137,7 +143,8 @@ /etc/rc.d/rc.inet1 start } network_ifdown() { - /etc/rc.d/rc.inet1 stop + /etc/rc.d/rc.inet1 stop || return $? + echo all } NETWORK_CALL_ONCE=1 ;; @@ -148,28 +155,35 @@ /sbin/ifup $* } network_ifdown() { - /sbin/ifdown $* + STDERR="$(/sbin/ifdown $1 2>&1 1>/dev/null)" || return $? + case "$STDERR" in + "/sbin/ifdown: interface $1 not configured") :;; + *) echo $1;; + esac } elif [ -x "/etc/init.d/ifup" ] ; then network_ifup() { /etc/init.d/ifup $* } network_ifdown() { - /etc/init.d/ifdown $* + /etc/init.d/ifdown $* || return $? + echo $* } elif [ -x "/etc/sysconfig/network-scripts/ifup" ] ; then network_ifup() { /etc/sysconfig/network-scripts/ifup $* } network_ifdown() { - /etc/sysconfig/network-scripts/ifdown $* + /etc/sysconfig/network-scripts/ifdown $* || return $? + echo $* } elif [ -x "/etc/init.d/networking" ] ; then network_ifup() { /etc/init.d/networking start } network_ifdown() { - /etc/init.d/networking stop + /etc/init.d/networking stop || return $? + echo all } NETWORK_CALL_ONCE=1 elif [ -x "/etc/init.d/network" ] ; then @@ -177,7 +191,8 @@ /etc/init.d/network start } network_ifdown() { - /etc/init.d/network stop + /etc/init.d/network stop || return $? + echo all } NETWORK_CALL_ONCE=1 else @@ -185,7 +200,8 @@ /sbin/ifconfig $1 up } network_ifdown() { - /sbin/ifconfig $1 down + /sbin/ifconfig $1 down || return $? + echo $1 } fi esac debian/patches/70-laptop-mode-rename.patch0000644000000000000000000000055311750272222015553 0ustar Description: Change laptop-mode init.d script name. Author: martin f. krafft Last-Update: 2012-02-11 --- a/conf/common.conf +++ b/conf/common.conf @@ -121,7 +121,7 @@ # IncompatiblePrograms xmms ### services -# RestartServices laptop_mode anacron +# RestartServices laptop-mode anacron # StopServices alsasound # StartServices aumix debian/patches/fix-manpage-parentheses.patch0000644000000000000000000000116011750272222016347 0ustar Description: Fix a typo in hibernate.conf(5) Author: Aditya Vaidya Bug-Debian: http://bugs.debian.org/668978 Last-Update: 2012-04-22 --- hibernate-1.99~/gen-manpages.sh 2008-05-01 07:00:21.000000000 -0500 +++ hibernate-1.99/gen-manpages.sh 2012-04-02 17:53:17.888038183 -0500 @@ -161,7 +161,7 @@ reads its configuration from the .I /etc/hibernate/hibernate.conf file when it runs (unless an alternative configuration file is -specified on the command line. +specified on the command line). .PP If configuration directives are specified multiple times, typically the last one will take effect. debian/patches/fix-grub-config-name.patch0000644000000000000000000000374011750272222015546 0ustar Description: Update the default GRUB config name for GRUB2. Author: Andrey Rahmatullin Bug-Debian: http://bugs.debian.org/512112 Last-Update: 2012-05-01 --- a/conf/common.conf +++ b/conf/common.conf @@ -53,9 +53,9 @@ ### grub # ChangeGrubMenu yes -# GrubMenuFile /boot/grub/menu.lst -# AlternateGrubMenuFile /boot/grub/menu-suspended.lst -# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak +# GrubMenuFile /boot/grub/grub.cfg +# AlternateGrubMenuFile /boot/grub/grub-suspended.cfg +# BackupGrubMenuFile /var/backups/grub.cfg.hibernate # see http://bugs.debian.org/317479 # RemountXFSBoot yes --- a/scriptlets.d/grub +++ b/scriptlets.d/grub @@ -1,11 +1,12 @@ # -*- sh -*- # vim:ft=sh:ts=8:sw=4:noet -GRUB_MENU_DFLT_BACKUP_FILE="/var/backups/grub.conf.hibernate" +GRUB_MENU_FILE="/boot/grub/grub.cfg" +GRUB_MENU_DFLT_BACKUP_FILE="/var/backups/grub.cfg.hibernate" AddConfigHandler GrubConfigOptions AddConfigHelp "ChangeGrubMenu " "Change grub's config file to show system is suspended before suspending and restore after resume." -AddConfigHelp "GrubMenuFile " "Filename of grub's config file. Default is /boot/grub/grub.conf." +AddConfigHelp "GrubMenuFile " "Filename of grub's config file. Default is ${GRUB_MENU_FILE}." AddConfigHelp "AlternateGrubMenuFile " "Filename of the grub config file to put in place when the machine is suspended. If this is not specified, the script will add a small header to the existing grub menu." AddConfigHelp "BackupGrubMenuFile " "Where to keep a backup of your real grub menu file. Defaults to ${GRUB_MENU_DFLT_BACKUP_FILE}." @@ -14,8 +15,6 @@ AddLongOption 'restore-grub' AddOptionHelp '-g, --restore-grub' 'Restores the grub menu to normal (use if a resume was not completed sucessfully) and exits the script. A suspend is not performed.' -GRUB_MENU_FILE="/boot/grub/grub.conf" - GRUB_BEGIN_SENTINEL="### BEGIN HIBERNATE SENTINEL" GRUB_END_SENTINEL="### END HIBERNATE SENTINEL" debian/patches/80-log-permissions.patch0000644000000000000000000000122011750272222015210 0ustar Author: martin f. krafft --- a/hibernate.sh +++ b/hibernate.sh @@ -876,7 +876,14 @@ ParseOptions "$@" # Set a logfile if we need one. -[ -n "$LOGFILE" ] && LOGPIPE="tee -a -i $LOGFILE" +if [ -n "$LOGFILE" ]; then + if [ ! -f "$LOGFILE" ]; then + touch "$LOGFILE" + chmod 644 "$LOGFILE" + chown root:adm "$LOGFILE" + fi + LOGPIPE="tee -a -i $LOGFILE" +fi # Redirect everything to a given VT if we've been given one if [ -n "$SWSUSPVT" ] && [ -c /dev/tty$SWSUSPVT ] ; then --- a/logrotate.d-hibernate-script +++ b/logrotate.d-hibernate-script @@ -3,4 +3,5 @@ rotate 5 size 100k weekly + notifempty } debian/patches/50-init.d-lsb-depends.patch0000644000000000000000000000114511750272222015444 0ustar Description: Add Should-Start and X-Start-Before initscript headers Author: martin f. krafft Last-Update: 2012-02-11 --- a/init.d/hibernate-cleanup.sh +++ b/init.d/hibernate-cleanup.sh @@ -20,6 +20,8 @@ # Default-Stop: # Required-Start: # Required-Stop: +# Should-Start: udev devfsd raid2 mdadm-raid lvm evms cryptdisks +# X-Start-Before: mountall # Short-Description: invalidates stale swsusp and TuxOnIce image # Description: This script invalidates any stale swsusp and TuxOnIce images. It # searches all swap partitions on your machine, as well as debian/patches/20-suspend2-note.disabled0000644000000000000000000000151711750272222015237 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 20-suspend2-note.dpatch by martin f. krafft ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Add note for kernel-patch-suspend2. @DPATCH@ diff -urNad hibernate-1.91~/suspend2.conf hibernate-1.91/suspend2.conf --- hibernate-1.91~/suspend2.conf 2006-06-05 13:20:32.000000000 +0200 +++ hibernate-1.91/suspend2.conf 2006-06-05 13:41:10.440408368 +0200 @@ -2,6 +2,9 @@ # # NOTE: Suspend2 is an improved version of suspend-to-disk which currently # requires patching your kernel. For more information, see www.suspend2.net +# +# For the Debian patch, please see +# http://packages.debian.org/kernel-patch-suspend2 # # If you do not wish to patch your kernel but still be able to suspend to # disk, see disk.conf instead. debian/patches/blacklisted-modules-3.x.patch0000644000000000000000000000237111750272222016176 0ustar Description: Replace 2.6.99 with 3.99.0 in blacklisted-modules Author: Andrey Rahmatullin Last-Update: 2012-05-01 diff --git a/blacklisted-modules b/blacklisted-modules index 4400b37..bb69889 100644 --- a/blacklisted-modules +++ b/blacklisted-modules @@ -27,14 +27,14 @@ acx_pci hsfmodem prism54 -bcm4400 2.6.0 2.6.99 -emu10k1 2.4.0 2.4.99 2.6.0 2.6.99 -forcedeth 2.4.0 2.4.99 2.6.0 2.6.99 +bcm4400 2.6.0 3.99.0 +emu10k1 2.4.0 2.4.99 2.6.0 3.99.0 +forcedeth 2.4.0 2.4.99 2.6.0 3.99.0 @ipw2100 0.0 1.0.2 @ipw2200 0.0 0.20 -natsemi 2.6.0 2.6.99 +natsemi 2.6.0 3.99.0 psmouse 2.6.0 2.6.19 -rt2400 2.4.0 2.4.99 2.6.0 2.6.99 +rt2400 2.4.0 2.4.99 2.6.0 3.99.0 ehci_hcd 2.6.0 2.6.14 ohci_hcd 2.6.0 2.6.14 uhci_hcd 2.6.0 2.6.14 @@ -45,16 +45,16 @@ snd_ens1370 2.6.0 2.6.19 snd_ens1371 2.6.0 2.6.19 snd_maestro3 2.6.0 2.6.19 @snd_bt_sco 0.0 1.18 -en1370 2.6.0 2.6.99 -en1371 2.6.0 2.6.99 +en1370 2.6.0 3.99.0 +en1371 2.6.0 3.99.0 via_agp 2.6.0 2.6.8 -via_rhine 2.6.0 2.6.99 -i8042 2.6.10 2.6.99 -intel_mch_agp 2.6.0 2.6.99 +via_rhine 2.6.0 3.99.0 +i8042 2.6.10 3.99.0 +intel_mch_agp 2.6.0 3.99.0 rt2500 2.6.0 2.6.14 button 2.6.9 2.6.22 -speedstep_smi 2.6.12 2.6.99 +speedstep_smi 2.6.12 3.99.0 @ndiswrapper 0.10 0.11 debian/patches/series0000644000000000000000000000037211750272222012034 0ustar 10-grub-backup.patch 70-laptop-mode-rename.patch 80-log-permissions.patch 99-store-ifdown-auto.patch fix-userui-path.patch fix-manpage-parentheses.patch blacklisted-modules-3.x.patch fix-s2ram-options.patch fix-grub-config-name.patch fix-typos.patch debian/patches/fix-s2ram-options.patch0000644000000000000000000000334211750272222015141 0ustar Description: Fix option names for s2ram and apply s2ram options to s2both. Bug-Debian: http://bugs.debian.org/505410 Origin: vendor, http://bugs.debian.org/505410#5 Last-Update: 2012-05-01 diff --git a/scriptlets.d/ususpend b/scriptlets.d/ususpend index 25d9aa5..edf801e 100644 --- a/scriptlets.d/ususpend +++ b/scriptlets.d/ususpend @@ -33,10 +33,7 @@ USuspendConfigEnabler() { case "$1" in ususpendmethod) case "$2" in - disk|both) USUSPEND_PROG=s2$2;; - ram) - USUSPEND_PROG=s2ram - ;; + disk|both|ram) USUSPEND_PROG=s2$2;; *) vecho 1 "$EXE: Invalid value fo USuspendMethod." return 2 @@ -104,13 +101,13 @@ USuspendOptionHandler() { DoUSuspend() { if [ -z "$USUSPEND_NO_SUSPEND" ] ; then ARGS= - if [ "$USUSPEND_PROG" = s2ram ]; then - [ $USUSPEND_RAM_FORCE -eq 1 ] && ARGS="$ARGS -f" - [ $USUSPEND_RAM_VBESAVE -eq 1 ] && ARGS="$ARGS -s" - [ $USUSPEND_RAM_VBEPOST -eq 1 ] && ARGS="$ARGS -p" - [ $USUSPEND_RAM_RADEONTOOL -eq 1 ] && ARGS="$ARGS -r" - [ $USUSPEND_RAM_VBEMODE -eq 1 ] && ARGS="$ARGS -m" - [ $USUSPEND_RAM_ACPISLEEP -ne 0 ] && ARGS="$ARGS -a $USUSPEND_RAM_ACPISLEEP" + if [ "$USUSPEND_PROG" = s2ram -o "$USUSPEND_PROG" = s2both ]; then + [ $USUSPEND_RAM_FORCE -eq 1 ] && ARGS="$ARGS --force" + [ $USUSPEND_RAM_VBESAVE -eq 1 ] && ARGS="$ARGS --vbe_save" + [ $USUSPEND_RAM_VBEPOST -eq 1 ] && ARGS="$ARGS --vbe_post" + [ $USUSPEND_RAM_RADEONTOOL -eq 1 ] && ARGS="$ARGS --radeontool" + [ $USUSPEND_RAM_VBEMODE -eq 1 ] && ARGS="$ARGS --vbe_mode" + [ $USUSPEND_RAM_ACPISLEEP -ne 0 ] && ARGS="$ARGS --acpi_sleep $USUSPEND_RAM_ACPISLEEP" [ $USUSPEND_RAM_PCISAVE -eq 1 ] && ARGS="$ARGS -v" fi vecho 1 "$EXE: Running $USUSPEND_PROG_PATH $ARGS..." debian/patches/fix-typos.patch0000644000000000000000000000334611750272222013606 0ustar Description: Fix some typos in help strings. Author: Andrey Rahmatullin Last-Update: 2012-05-01 --- a/scriptlets.d/grub +++ b/scriptlets.d/grub @@ -13,7 +13,7 @@ AddOptionHandler GrubCmdlineOptions AddShortOption 'g' AddLongOption 'restore-grub' -AddOptionHelp '-g, --restore-grub' 'Restores the grub menu to normal (use if a resume was not completed sucessfully) and exits the script. A suspend is not performed.' +AddOptionHelp '-g, --restore-grub' 'Restores the grub menu to normal (use if a resume was not completed successfully) and exits the script. A suspend is not performed.' GRUB_BEGIN_SENTINEL="### BEGIN HIBERNATE SENTINEL" GRUB_END_SENTINEL="### END HIBERNATE SENTINEL" --- a/scriptlets.d/modules +++ b/scriptlets.d/modules @@ -3,7 +3,7 @@ AddConfigHandler ModulesOptions AddConfigHelp "UnloadModules [...]" "Names of modules to unload prior to suspending." -AddConfigHelp "LoadModules auto| [...]" "Names of modules to load after resumimg. If auto is specified, the modules that were unloaded previously are loaded." +AddConfigHelp "LoadModules auto| [...]" "Names of modules to load after resuming. If auto is specified, the modules that were unloaded previously are loaded." AddConfigHelp "UnloadBlacklistedModules " "Try to remove any modules that are known to be incompatible with hibernation prior to suspending." AddConfigHelp "UnloadAllModules " "Try to remove all modules loaded prior to suspending." AddConfigHelp "LoadModulesFromFile " "Load default modules after resuming from a given filename. Each module name must appear on its own line, and lines starting with # are ignored. (eg, Debian's /etc/modules, Gentoo's /etc/modules.autoload)" debian/patches/fix-userui-path.patch0000644000000000000000000000120311750272222014664 0ustar Description: Update default userui path to Debian default. Author: Andrey Rahmatullin Bug-Debian: http://bugs.debian.org/492392 Forwarded: not-needed Last-Update: 2012-04-22 diff --git a/conf/tuxonice.conf b/conf/tuxonice.conf index 4fee3fb..69828ec 100644 --- a/conf/tuxonice.conf +++ b/conf/tuxonice.conf @@ -37,7 +37,7 @@ Encryptor none # VerifyFilewriterResume2 yes ## Specify a userui like this: -# ProcSetting userui_program /usr/local/sbin/tuxoniceui_text +# ProcSetting userui_program /usr/lib/tuxonice-userui/tuxoniceui # Scale CPU to full speed to make sure we suspend as fast as possible. FullSpeedCPU yes debian/copyright0000644000000000000000000000163011750272222011121 0ustar This package was debianized by Cameron Patrick Tue, 13 Jul 2004 15:40:06 +0800. Martin F. Krafft took over on Mon, 04 Jun 2006 11:19:25 +0200. The source code was downloaded from http://www.suspend2.net/downloads/all Upstream author: Bernard Blackham Copyright © 2004-2006 Bernard Blackham Packaging copyright © 2004-2006 Cameron Patrick Packaging copyright © 2006- Martin F. Krafft This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'. debian/hibernate.examples0000644000000000000000000000001611750272222012664 0ustar hibernate.vim debian/watch0000644000000000000000000000014011750272222010212 0ustar version=3 http://www.suspend2.net/downloads/all/hibernate-script-([.[:digit:]]+).tar.gz # $Id$ debian/compat0000644000000000000000000000000211750272222010364 0ustar 9 debian/hibernate.postinst0000644000000000000000000000070711750272222012740 0ustar #!/bin/sh # # Post-install script for Debian hibernate package # # Originally written by Cameron Patrick, 2004 and released to the public domain. # Modified by martin f. krafft. # # Copyright © martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # $Id$ # set -e set -u if [ "${1:-}" = configure ]; then mkdir --parent /usr/local/share/hibernate/scriptlets.d || : fi # See #369953 set +u #DEBHELPER# set -u debian/NEWS0000644000000000000000000000232611750272222007670 0ustar hibernate (1.91-1) unstable; urgency=low This version of hibernate introduces significant changes to the configuration file structure. Previously, /etc/hibernate/hibernate.conf was the one-stop configuration file, supporting one suspend method (suspend2 by default). If you wanted to support ACPI as well, you needed a separate file (/etc/hibernate/ram.conf in our case). Hibernate now supports two new directives: Include and TryMethod. The first one is designed for common settings to all suspend methods (such as hooks), which can now be exported to a single, commonly used file (common.conf). TryMethod, on the other hand, is an include directive especially made for the different suspend methods (suspend2, disk/sysfs, ram/ACPI). If encountered, hibernate will load the file, try to suspend, and simply move on to the next TryMethod (or Include, or directive), if it failed. This allows different suspend methods to be tried in turn and should make your life much easier. Note that your old configuration files will continue to work, but you may want to consider moving over to the new structure at your next convenience. -- martin f. krafft Mon, 5 Jun 2006 12:14:54 +0200 debian/bugscript0000644000000000000000000000445711750272222011125 0ustar #!/bin/bash # # hibernate bug submission control script # # allows Debian's bug tools to include relevant information in bug reports. # # Copyright © martin f. krafft # distributed under the terms of the Artistic Licence 2.0 # # we need /bin/bash for readline and -n capabalities in the prompt(s) # # $Id: bugscript 89 2006-08-08 09:33:05Z madduck $ # set -eu if ! command -v yesno >/dev/null; then if [ -r /usr/share/reportbug/handle_bugscript ]; then exec /usr/share/reportbug/handle_bugscript ". $0" /dev/stdout fi yesno() { read -n1 -p"$1" REPLY case "$REPLY" in [yY]) REPLY=yep;; [nN]) REPLY=nop;; ('') REPLY="$2";; esac } exec 3>&1 fi L=$(sed -ne 's,^LogVerbosity[[:space:]]*,,p' /etc/hibernate/*.conf) case "$L" in 0|1|2) cat <<-_eof Your hibernate LogVerbosity is set to $L. It would be of great help if you could bump that up to 3, rerun hibernate to reproduce the bug, and then fire up reportbug. You may also wish to set the verbosity to 4 and submit a URL to your /var/log/hibernate.log in the bug report. Please do not include the output of a verbosity 4 run in the bug report as it's just too big. _eof #yesno "Do you wish to continue filing the bug report at this time? " yep yesno "Hit any key to continue..." yep #[ "$REPLY" = yep ] || exit 1 ;; esac echo "--- configuration" >&3 head -10000 /etc/hibernate/*.conf 2>/dev/null | grep '^[^#]' >&3 || : echo >&3 echo "--- /sys/power" >&3 head /sys/power/* 2>/dev/null | grep -v '^$' >&3 || : echo >&3 if [ -x "$(command -v s2ram)" ]; then echo "--- s2ram -n" >&3 s2ram -n | sed -e '/^See http:/,$d' >&3 || : fi yesno "Do you have a URL to your hibernate.log file? " yep LOG='' if [ "$REPLY" = yep ]; then while :; do read -e -p 'Please enter the http or ftp URL (or "none"): ' rep case "$rep" in http://*|ftp://*) LOG="$rep" break ;; none) break;; *) :;; esac done fi echo "--- log" >&3 if [ -z "$LOG" ]; then if [ -r /var/log/hibernate.log ]; then tac /var/log/hibernate.log | sed -ne '0,/^Starting/p' | tac >&3 else if [ -f /var/log/hibernate.log ]; then echo "hibernate.log file not readable." >&3 else echo "no hibernate.log file found." >&3 fi fi else echo "$LOG" >&3 fi debian/gbp.conf0000644000000000000000000000003611750272222010604 0ustar [DEFAULT] pristine-tar = True debian/source/0000755000000000000000000000000011750272222010466 5ustar debian/source/format0000644000000000000000000000001411750272222011674 0ustar 3.0 (quilt) debian/HOWTO0000644000000000000000000001243111750272222010012 0ustar ---------------------------------------------------------------- HOWTO HIBERNATE Cookbook Hibernation Instructions or I Don't Care, I Just Want It To Work! ---------------------------------------------------------------- This file attempts to walk you through the process of setting up your computer to hibernate ("suspend to disk"). We assume you are running a stock Debian kernel, and that hibernate will be defaulting to the "swsusp" method. (In the future it is hoped that even this small amount of configuration will be automated.) **************************************************************** **** WHAT YOU NEED TO DO **************************************************************** **** INSTALL AND REMOVE PACKAGES The following packages must be installed/removed: install: hibernate (version >= 1.91) install: initramfs-tools remove: yaird install: udev (reasonably recent, eg version >= 0.093) install: linux-image-XXX-YYY (with XXX >= 2.6.8) **** IDENTIFY SWAP PARTITION When awakening from hibernation, the kernel needs to know the location where the state of the suspended system is stored. This can be either a swap partition or a file. You can figure out your swap partition using the command egrep swap /etc/fstab or swapon -s If what you see is of the form /dev/ide/hostX/busX/targetX/lunX/partX you need to translate to the form /dev/hdXX or /dev/sdXX as appropriate, which can be done by looking for the symbolic link in /dev/. Here is a code fragment that shows what this looks like. $ ls -l /dev | egrep $(/sbin/swapon -s | sed -rne '0,/^\/dev/s,/dev/([/[:alnum:]]+).*,\1,p') lrwxrwxrwx 1 root root 33 Jul 9 10:21 hda3 -> ide/host0/bus0/target0/lun0/part3 **** CONFIGURE INITRAMFS-TOOLS OPTION The swap partition needs to be listed in /etc/initramfs-tools/conf.d/resume . (If you have an old version of initramfs-tools, the file is /etc/mkinitramfs/conf.d/resume .) It should look like this, where /dev/hdXX is your swap partition: $ cat /etc/initramfs-tools/conf.d/resume RESUME=/dev/hdXX If the file is already there but has /dev/ide/hostX/busX/... you need to convert it to the proper form, as above. **** REBUILD /boot/initrd.img Rebuild the initrd.img boot ram filesystem images by invoking update-initramfs -u -k all **** REBOOT You should now reboot into your shiny hibernation-capable system. **** TEST THAT HIBERNATION WORKS At this point, you should be able to run hibernate and it should do some crunching and then halt. When you reboot, the system should instead magically awaken from its hibernation. **************************************************************** **** WARNINGS **************************************************************** Don't suspend your system, then somehow boot using some other mechanism like a CDROM and play with the filesystems, then try to unsuspend the system. This would lead to corruption of your data. **************************************************************** **** INFORMATION YOU PROBABLY WILL NOT NEED **************************************************************** ***** Booting without resuming If you hibernate but then need to do a "normal" cold boot, ie not an unsuspend, you can pass the option resume= to the kernel from the boot loader. (This is good to do if you modified the filesystem using some external mechanism, like booting off a rescue disk.) ***** IDE vs SCSI Instead of /dev/hdXX, your swap partition might be of the form /dev/sdXX. That is okay. ***** USING BOOT LOADER TO PASS OPTION RESUME= Instead of using initrd, you can pass the resume=/dev/hdXX option directly to the linux kernel, where /dev/hdXX is your swap partition. This can be done manually, when the system is booting, or by reconfiguring your boot loader to do it. The resume= option is harmless if the machine is not suspended, so you can modify the boot loader to always pass the option. How to do this depends on which boot loader you use: LILO or GRUB. ****** LILO If you run lilo, add the line append="resume=/dev/hdXX" at the top of the file /etc/lilo.conf and run the command lilo ****** GRUB If you run grub, edit /boot/grub/menu.lst to include the line # defoptions=resume=/dev/hda1 immediately following the line ## e.g. defoptions=vga=791 resume=/dev/hda5 and run the command update-grub **** CORRUPTION Some old disk drives fail to write some information sent to them immediately before the system powers down. If you have one of these, you should set DisableWriteCacheOn for the drive in /etc/hibernate/common.conf. **** TROUBLESHOOTING: HARDWARE ISSUES AFTER AWAKENING Some kernel modules need to be unloaded prior to hibernation. This is largely preconfigured, but some carelessly built hardware, for instance many Dell laptops (Dell is notorious for sloppy engineering) require that particular modules be unloaded. For example, on my Dell X200, a particularly worthless piece-of-crap laptop which is also surprisingly slow, the 1394 (firewire) interface failed after hibernation. This was cured by adding the line UnloadModules ohci1394 ieee1394 to /etc/hibernate/common.conf immediately following the line # UnloadModules snd_via82cxxx usb-ohci **** AUTHORS This HOWTO was started by Barak A. Pearlmutter as a "cheat sheet" for his friends, and grew with help from Martin F. Krafft. $Id$ debian/rules0000755000000000000000000000110511750272222010243 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_build: sh ./gen-manpages.sh sed -i 's,^'\''-misc,\\\&\0,' hibernate.conf.5 override_dh_auto_install: install -m 644 logrotate.d-hibernate-script \ debian/hibernate/etc/logrotate.d/hibernate install -m 755 debian/bugscript \ debian/hibernate/usr/share/bug/hibernate/script install -m 755 hibernate.sh \ debian/hibernate/usr/sbin/hibernate override_dh_install: dh_install sed -i -e 's,^[^#].*Distribution.*,# &,' \ -e 's,^# Distribution.*,Distribution debian,' \ debian/hibernate/etc/hibernate/common.conf debian/hibernate.maintscript0000644000000000000000000000017211750272222013406 0ustar mv_conffile /etc/hibernate/suspend2.conf /etc/hibernate/tuxonice.conf 1.99-1.1 rm_conffile /etc/init.d/hibernate 1.99-1.1 debian/hibernate.install0000644000000000000000000000110611750272222012515 0ustar conf/hibernate.conf /etc/hibernate/ conf/ram.conf /etc/hibernate/ conf/disk.conf /etc/hibernate/ conf/tuxonice.conf /etc/hibernate/ conf/sysfs-ram.conf /etc/hibernate/ conf/sysfs-disk.conf /etc/hibernate/ conf/ususpend-ram.conf /etc/hibernate/ conf/ususpend-disk.conf /etc/hibernate/ conf/ususpend-both.conf /etc/hibernate/ conf/common.conf /etc/hibernate/ blacklisted-modules /etc/hibernate/ scriptlets.d/ /usr/share/hibernate/ debian/control0000644000000000000000000000254511750272222010577 0ustar Source: hibernate Section: utils Priority: optional Maintainer: Andrey Rahmatullin Uploaders: martin f. krafft , Cameron Patrick Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3 Homepage: http://tuxonice.net/ Vcs-Git: git://git.debian.org/collab-maint/hibernate.git Vcs-Browser: http://git.debian.org/?p=collab-maint/hibernate.git Package: hibernate Architecture: all Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, kbd Recommends: dash, hdparm, vbetool, uswsusp Suggests: 915resolution, xscreensaver | kscreensaver | gnome-screensaver | xlock | vlock Description: smartly puts your computer to sleep (suspend to RAM or disk) The hibernate script helps you in putting your computer to sleep, using one of the various methods available in the kernel. . Hibernate can take care of loading and unloading modules, provides various hacks needed to get some video cards to resume properly under X, can optionally restart networking and system services, and basically do whatever else you ask it. It can be extended by writing new "scriptlets" which run at different points during the suspend process. . Currently the script supports all suspend mechanisms available through the /sys/power/state interface (including ACPI suspend and the in-kernel software suspend), as well as TuxOnIce. debian/changelog0000644000000000000000000004762511750272222011056 0ustar hibernate (2.0+15+g88d54a8-1) unstable; urgency=low [ martin f. krafft ] * New upstream release (Closes: #491071, #532124, #555410). [ Andrey Rahmatullin ] * Adopt the package (Closes: #651194). * Bump Standards-Version to 3.9.3. * Switch to source package format 3.0 (quilt). * Switch to debhelper v9. * Switch to dh(1). * Change Priority to optional. * Fix a typo in debian/bugscript (Closes: #531290). * Remove Conflicts/Replaces on suspend-script. * Add an md5sums control file. * Use the Debian path to the userui program in the config (Closes: #492392). * Do not install the initscript, it needs rewriting (Closes: #363004) * Add Homepage. * Update Description. * Fix some manpage issues (Closes: #473530, #664830, #668978). * Replace 2.6.99 with 3.99.0 as a "maximum possible" version in blacklist-modules. * Fix the license file name in debian/copyright. * Fix option names for s2ram and apply s2ram options to s2both (Closes: #505410). * Update the default GRUB config name for GRUB2 (Closes: #512112). * Move sh options from the shebang to the maintscript body. * Remove outdated README.Debian (Closes: #495145). * Drop the optional dependency on console-tools (Closes: #671081). -- Andrey Rahmatullin Wed, 02 May 2012 23:53:16 +0600 hibernate (1.99-1.1) unstable; urgency=low * Non-maintainer upload. * Fix init.d LSB headers: hibernate should depend on mdadm-raid, not mdadm; patch by martin f krafft. (Closes: #554905) -- Stefano Zacchiroli Sun, 20 Dec 2009 14:54:20 +0100 hibernate (1.99-1) unstable; urgency=low * New upstream release, which scaling_setspeed returning "" properly (closes: #479643). -- martin f. krafft Fri, 09 May 2008 11:09:01 +0100 hibernate (1.98.1-1) unstable; urgency=low * New upstream version, which fixes a stupid bug I introduced in fixing the bashisms. -- martin f. krafft Mon, 31 Mar 2008 09:44:21 +0200 hibernate (1.98-1) unstable; urgency=low * Acknowledge NMU, thanks Morten! * New upstream release: - fixes get_env_var_of_process (closes: #457185) - implements USuspendRamPciSave to allow passing the -v option to s2ram (closes: #473322). - implements USuspendRamRadeontool to allow passing the -r option to s2ram; thanks to Matthijs Kooijman (closes: #445974). - works around a bashism when mktemp is not available; thanks to Morten Werner Forsbring (closes: #464989). - removes further bashisms (local variables are initialised on declaration) (also closes: #464989). * debian/control: Now maintained in Git, so update Vcs-* headers. * Bump debhelper compatibility level to 6; no changes required. * Bump Standards-Version to 3.7.3; no changes required. -- martin f. krafft Sun, 30 Mar 2008 17:10:41 +0200 hibernate (1.97-1.1) unstable; urgency=low * Non-maintainer upload * Adding dependencies from cryptdisk to the LSB init.d dependency headers in hibernate's init.d script. This prevents that the hibernate init.d script is placed at the very first of the boot sequence when using dependency based boot sequencing and the cryptdisk package is not installed. Thanks to Petter Reinholdtsen for bugreport and patch (closes: #458722). -- Morten Werner Forsbring Sun, 24 Feb 2008 21:19:27 +0100 hibernate (1.97-1) unstable; urgency=low * New upstream release (closes: #447589): - introduces USuspendRamUnsureOk to enable use of s2ram's system-specific options if it's unsure; thanks to Andrew Pimlott (closes: #433028). - scriptlets.d/lock now supports XtrLock; thanks to "cg" (closes: #427475). - get_env_var_of_process is now in the main script; thanks to Pascal Dormeau (closes: #433003). - Fixes manpage typo; thanks Justin Pryzby (closes: #443732). - The galeon and sylpheed-claws scriptlets by Norbert Buchmuller are now officially distributed (see #427376). - patch by Joey Hess which fixes the backlight script to work better if the backlight was initially below 10% (closes: #434825). - scriptlets.d/sysfs_power_state now uses `uname -m` instead of `arch`; thanks to Uwe Herman (closes: #436287). - prevents double execution of included configuration files Thanks to "CSights" and Martin Ziegler for analysing this. (closes: #433965, #392712). - patch by Matthias Hensler which fixes filewriter support for Tux-On-Ice (closes: #441801). - use start-stop-daemon instead of backgrounding ifup (closes: #422539). - adds anacron to sample RestartServices line (closes: #414100). -- martin f. krafft Mon, 22 Oct 2007 15:04:30 +0200 hibernate (1.96~pre-svn.r1136-1) unstable; urgency=low * New upstream checkout: - includes xbacklight scriptlet by Joey Hess (closes: #430148). - includes gaim scriptlet by Norbert Buchmuller (closes: #427376). - includes networkmanager scriptlet by Markus Becker (closes: #387456). - disabled vbetool by default for suspend-to-RAM (see #400688). * Prevent DownInterfaces auto from storing network interfaces it did not down, so that they are not brought up by NetworkStart if they weren't up before the suspend (closes: #432316). * Completed LSB init.d dependency headers; now starts after cryptdisks and before swap is mounted in mountall. -- martin f. krafft Mon, 09 Jul 2007 23:43:05 +0200 hibernate (1.96~pre-svn.r1125-1) unstable; urgency=low * The^W A Joey Hess tribute release: < joeyh> bloody debian maintainer filters * joeyh applies for a bugzilla.fedora account sorry for taking to long to integrate your patches. Don't leave us. * New checkout from upstream repository, which - fixes a syntax error and thus closes: #427962. - runs ifup in the background to prevent locking problems and closes: #422539. - introduces SwitchToTextModeOnResume to work around an X bug (#420400) and thus closes: #420401. -- martin f. krafft Thu, 07 Jun 2007 18:58:01 +0200 hibernate (1.96~pre-svn.r1121-1) unstable; urgency=low * Checkout from upstream repository - add patch by Enrico Tassi which adds options for -a/-m flags to s2ram to the ususpend method (closes: #427684). -- martin f. krafft Sat, 23 Jun 2007 18:23:11 +0100 hibernate (1.96~pre-svn.r1116-1) unstable; urgency=low * Snapshot of current upstream repository; see CHANGELOG for details. * Blacklist the ipw3945 module (closes: #427252). -- martin f. krafft Sun, 03 Jun 2007 14:34:03 +0200 hibernate (1.95-1) UNRELEASED; urgency=low * New upstream release: - Fix gfx_brightness if thinks the brightness is 0 (closes: #410750). - Add videodump to dump and reload the video RAM (closes: #410751). - Screen now does not lock when --no-suspend is given. - Support renamed swap and file directories in suspend2 2.2.8.4 and thus enable support on 2.6.19 kernel (closes: #416289). - Enable 2ram -p/-s options in a similar way to -f; thanks to Enrico Tassi (closes: #416967). - See CHANGELOG for more... * Fix bugscript to output s2ram -n instead of -v, thanks Joey Hess. -- martin f. krafft Sun, 03 Jun 2007 12:57:54 +0200 hibernate (1.94-2) unstable; urgency=low * Handle a read-only /usr/local directory as per policy 9.1.2. Thanks to Sam Hocevar for the report (closes: #392513). -- martin f. krafft Thu, 12 Oct 2006 10:43:08 +0200 hibernate (1.94-1) unstable; urgency=low * New upstream release: - properly escape amarok process listing (closes: #378282). - does not fail if KDE sessions are already locked (closes: #384471). - enables verbose output earlier (closes: #370713). * Merged several patches into upstream code: - Patch by Joey Hess to save/restore brightness levels with GFX cards (closes: #384140). - Patch against vbetool scriptlet to log stderr output to log file, and only let output through to real stderr if verbosity >=2 is selected (closes: #381927). - Corrected typo in hibernate.conf manpage (closes: #386799). - Reworded the init.d script message about invalidating stale signatures (closes: #381903). - Added ath_pci to blacklisted modules (see #383169). - Added scriptlet to remount /boot read-only if /boot is a separate partition, contains an XFS filesystem, hibernate was asked to update the Grub menu file, and this feature has not been disabled in the configuration file (closes: #317479, #317479, #386623). Also added README.xfs to document caveats for users of the XFS filesystem. - Improved ususpend method. Now supports USuspendRamForce (boolean) to pass the -f option to s2ram. Also tests with s2ram's -n option if s2ram is used and the option is not set. I also made disk.conf and ram.conf prefer the uswsusp methods, if they are available. If you do not want to use them, use the sysfs-{ram,disk}.conf files, which are the former ram.conf and disk.conf files. - Use /proc/net/dev instead of ifconfig to enumerate network devices, because the latter would ignore madwifi interfaces. * Now actually installs the ususpend configuration (though not ususpend.conf), which I had previously forgotten. Thanks to René van Bevern and Christian Schuerer for pointing it out (closes: #378347). * Added recommendation on vbetool, thanks to Minh Ha Duong. * Added recommendation on uswsusp, so that the new uswsusp code gets used if supported by the kernel (>= 2.6.17rc1), and suspend2 is not available. * Fixed up recommendations (other packages that most people will want to use) and suggestions (other packages used but not needed by many). * Added a hibernation HOWTO by Barak A. Pearlmutter to /usr/share/doc/hibernate (closes: #377389). * Moved vbetool options from sysfs-ram.conf to ram.conf; they're also applicable to ususpend. * Create log file with 0644:root:adm permissions (closes: #381033). * Added hibernate-ram and hibernate-disk symlinks which automatically use ram.conf or disk.conf as configuration file, rather than hibernate.conf (closes: #386426). -- martin f. krafft Tue, 10 Oct 2006 09:41:11 +0200 hibernate (1.93-1) unstable; urgency=low * New upstream release. * Also let kbd satisfy the console-tools dependency (closes: #372150). -- martin f. krafft Fri, 14 Jul 2006 00:28:31 +0200 hibernate (1.91-2) unstable; urgency=low * Taking over principal maintainership. * Let's not reverse the patch for #369632. Sorry. * Changed BackupGrubMenuFile in example configuration to Debian location. * Reworded package description and copyright file a bit. * Added debian/watch file. * Just noticed that hibernate.conf(5) documents the order with which options are processed if specified multiple times (closes: #354341, #354350). -- martin f. krafft Mon, 5 Jun 2006 16:49:39 +0200 hibernate (1.91-1) unstable; urgency=low * The "I bet Joey Hess actually gets 40 hours to each day" release. * Acknowledge NMU by Luk Claes; thanks! (closes: #360588, #363928) * New upstream release. This release started out as a Debian revision, but upstream simply decided to fold all changes into a new release. Thanks! Here's a summary of what's new, see upstream Changelog for credits: - fixes OnSuspend/OnResume (closes: #369632). - improves PID detection of the running X process (closes: #350670). - allows to disable xmessage dialogs (closes: #350676). - allows pausing of audio output during suspend (closes: #350667). - fixes font quoting issues (closes: #350767). - fixes X locking with mawk (thanks to EspeonEefi) (closes: #345295). - now has an option to run i915resolution on resume (closes: #349491). Thus, we also suggest the 915resolution. - favour pccardctl over the deprecatedd cardctl command (closes: #361673). - inspired by the work of Jan Weiner, hibernate can now try different suspend methods until one succeeds (closes: #336635). - now logs timestamps (closes: #354397). - new configuration file structure, which allows for inclusions (closes: #354332). * Make rmdir in prerm script write stderr to /dev/null since we actually really don't care about *any* warnings, including those about read-only /usr/local. * Removing the suggestion for kernel-patch-suspend2. There's really no point in suggesting it because what hibernate actually needs is a patched kernel, not the patch itself. Maybe one day our kernels can "provide" patches... I added a note to the new suspend2.conf file instead. * Added a dependency on console-tools because hibernate currently needs chvt (closes: #345122). * Pushed Standards-Version to 3.7.2; no changes needed. * Added dpatch to the source tree to make patch tracking easier. -- martin f. krafft Mon, 5 Jun 2006 13:41:37 +0200 hibernate (1.12-1.1) unstable; urgency=high * Non-maintainer upload. * Don't fail when /usr/local is read only (Closes: #360588). * Fix spelling error in description (Closes: #363928). -- Luk Claes Sat, 3 Jun 2006 20:08:55 +0200 hibernate (1.12-1) unstable; urgency=low * New upstream release (closes: #332240). - Supports swsusp 2.2-rc8 which renamed the /proc entries again. * Remove empty /usr/local/share/hibernate when purged (closes: #328296). * Fix lock scriptlet to work with mawk (closes: #326695). * Update address of FSF in copyright file. -- Cameron Patrick Fri, 21 Oct 2005 14:17:00 +0800 hibernate (1.10-1) unstable; urgency=low * New upstream release. * Don't break when people use mawk, not gawk, as /usr/bin/awk (closes: #317410). * Correct the location of grub menu file backups to /var/backups, not /var/backup (closes: #310759). -- Cameron Patrick Tue, 26 Jul 2005 19:12:29 +0800 hibernate (1.09-1) unstable; urgency=low * New upstream release (closes: #316614). * README no longer refers incorrectly to hibernate-cleanup.sh (which is instead installed as /etc/init.d/hibernate on Debian systems). * Uses /bin/echo rather than the shell's built-in echo for extra robustness against kernel bugs (closes: #309635). * The grub scriptlet now edits /boot/grub/menu.lst by default, in line with what Debian's grub uses (closes: #313425). * The grub scriptlet keeps backups in /var/backup by default (closes: #310759). * Remove superfluous quotes around `uname` in grub scriptlet (closes: #310758). -- Cameron Patrick Tue, 5 Jul 2005 17:35:46 +0800 hibernate (1.07-1) unstable; urgency=low * New upstream release. * Check for /var/run/suspend2-new-kernel to prevent people losing data by accidentally suspending with an old kernel and resuming with a newer kernel (closes: #298391). * Provides an "Include" directive for reading other files within hibernate.conf (closes: #299901). * More robust grub scriptlet (closes: #300445). * Updated module blacklist, including correct module names and buggy kernel version ranges for VIA chipset drivers (closes: #302177). * Package description more accurately describes the supported suspend methods (closes: #297130). * Updated Uploaders field to include Martin Krafft. * Don't install the modules_gentoo scriptlet, as it isn't relevant on a Debian system. * Add a README.Debian file documenting where to get software suspend patches. * Install the example ram.conf configuration file. -- Cameron Patrick Mon, 2 May 2005 22:39:02 +0800 hibernate (1.05-1) unstable; urgency=low * New upstream release. -- Cameron Patrick Wed, 16 Feb 2005 11:20:16 +0800 hibernate (1.03-1) unstable; urgency=low * New upstream release. * Clock scriptlet now calls /etc/init.d/hwclock.sh on Debian systems (closes: #287935). * Services listed in RestartServices are started in reverse order to being stopped (closes: #287936). -- Cameron Patrick Wed, 5 Jan 2005 18:12:57 +0800 hibernate (1.02-1) unstable; urgency=low * New upstream release. -- Cameron Patrick Wed, 24 Nov 2004 22:48:41 +0800 hibernate (1.01-1) unstable; urgency=low * New upstream release. * Works correctly with current software suspend patches (closes: #280106). -- Cameron Patrick Sat, 20 Nov 2004 14:00:06 +0800 hibernate (0.99-1) unstable; urgency=low * New upstream release. - Now the lock scriptlet works with mawk. * Minor tweaks from Erich Schubert . * Don't Suggests: kernel-patch-swsusp, as that package is not in the official archive, not maintained, and not likely to be updated in the forseeable future. * Add console-tools and vlock to Recommends. * Don't Depend on dash (although it's still nice to have, the script runs faster in dash than bash). -- Cameron Patrick Mon, 11 Oct 2004 21:54:58 +0800 hibernate (0.98-1) unstable; urgency=low * New upstream release. -- Cameron Patrick Fri, 20 Aug 2004 12:23:18 +0800 hibernate (0.97+0.98-rc2-1) unstable; urgency=low * New upstream release. -- Cameron Patrick Sat, 14 Aug 2004 20:34:04 +0800 hibernate (0.97+0.98-rc1-1) unstable; urgency=low * New upstream release. -- Cameron Patrick Sat, 14 Aug 2004 11:51:28 +0800 hibernate (0.97-1) unstable; urgency=low * New upstream release. -- Cameron Patrick Sat, 31 Jul 2004 20:58:53 +0800 hibernate (0.96-1) unstable; urgency=low * New upstream release, almost unchanged from rc2. -- Cameron Patrick Sun, 25 Jul 2004 00:31:09 +0800 hibernate (0.95+0.96-rc2-1) unstable; urgency=low * New upstream version. * Various bootsplash changes. * Updated VIM syntax highlighting. -- Cameron Patrick Sat, 24 Jul 2004 17:50:48 +0800 hibernate (0.95+0.96-rc1-1) unstable; urgency=low * New upstream version. * Fix the lock scriptlet when locking virtual consoles. -- Cameron Patrick Sat, 24 Jul 2004 11:45:16 +0800 hibernate (0.95-3) unstable; urgency=low * Merge some of the latest changes from SVN. * New scriptlet "lock" thanks to Carsten Rietzschel. * Update version number inside script to 0.95 (from 0.95-rc5) * Un-break the -F / --config-file option. -- Cameron Patrick Fri, 23 Jul 2004 09:37:33 +0800 hibernate (0.95-2) unstable; urgency=low * Fix the misclaunch scriptlet so that it doesn't always abort the suspend regardless of the exit status of the programme being launched. -- Cameron Patrick Thu, 22 Jul 2004 12:59:00 +0800 hibernate (0.95-1) unstable; urgency=low * New upstream release (rc4 released as 0.95 with essentially no changes). -- Cameron Patrick Wed, 21 Jul 2004 21:09:05 +0800 hibernate (0.94+0.95-rc4-1) unstable; urgency=low * New upstream release -- Cameron Patrick Wed, 21 Jul 2004 20:46:19 +0800 hibernate (0.94+0.95-rc1-1) unstable; urgency=low * New upstream release -- Cameron Patrick Fri, 16 Jul 2004 17:55:11 +0800 hibernate (0.94-2) unstable; urgency=low * Fix mistake in where scriptlets where installed, so that things actually work. * Rename package to hibernate. -- Cameron Patrick Thu, 15 Jul 2004 17:42:04 +0800 suspend-script (0.94-1) unstable; urgency=low * Initial Debian package. -- Cameron Patrick Tue, 13 Jul 2004 15:40:06 +0800 debian/hibernate.dirs0000644000000000000000000000011411750272222012006 0ustar etc/logrotate.d etc/hibernate/scriptlets.d usr/sbin usr/share/bug/hibernate debian/hibernate.docs0000644000000000000000000000005511750272222012001 0ustar README SCRIPTLET-API debian/HOWTO README.xfs debian/hibernate.links0000644000000000000000000000034611750272222012174 0ustar usr/sbin/hibernate usr/sbin/hibernate-disk usr/share/man/man8/hibernate.8.gz usr/share/man/man8/hibernate-disk.8.gz usr/sbin/hibernate usr/sbin/hibernate-ram usr/share/man/man8/hibernate.8.gz usr/share/man/man8/hibernate-ram.8.gz debian/hibernate.manpages0000644000000000000000000000003511750272222012642 0ustar hibernate.8 hibernate.conf.5 debian/hibernate.prerm0000644000000000000000000000074711750272222012206 0ustar #!/bin/sh # # Pre-removal hook script for hibernate # # Originally written by Cameron Patrick, 2004 and released to the public domain. # Modified by martin f. krafft. # # Copyright © martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # $Id$ # set -e set -u if [ "${1:-}" = remove ]; then rmdir --ignore-fail-on-non-empty --parents \ /usr/local/share/hibernate/scriptlets.d 2>/dev/null || : fi # See #369953 set +u #DEBHELPER# set -u