--- pm-utils-0.99.2.orig/man/Makefile.in +++ pm-utils-0.99.2/man/Makefile.in @@ -140,6 +140,9 @@ pm-pmu.sgml \ $(man_MANS) +MAINTAINERCLEANFILES = \ + $(man_MANS) + all: all-am .SUFFIXES: @@ -281,6 +284,7 @@ maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-local mostlyclean-am @@ -359,7 +363,6 @@ clean-local : rm -f *~ - rm -f *.1 rm -f manpage.* # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. --- pm-utils-0.99.2.orig/man/Makefile.am +++ pm-utils-0.99.2/man/Makefile.am @@ -7,6 +7,9 @@ pm-pmu.sgml \ $(man_MANS) +MAINTAINERCLEANFILES= \ + $(man_MANS) + pm-pmu.1: pm-pmu.sgml docbook2man $? @@ -15,5 +18,4 @@ clean-local : rm -f *~ - rm -f *.1 rm -f manpage.* --- pm-utils-0.99.2.orig/debian/changelog +++ pm-utils-0.99.2/debian/changelog @@ -0,0 +1,126 @@ +pm-utils (0.99.2-3ubuntu9) hardy; urgency=low + + * debian/patches/70-remove-pm-pmu.patch: Check for /dev/pmu before calling + /usr/lib/hal/hal-system-power-pmu. Not doing so causes error messages and + g-p-m error beeps on non-powerpc systems. (LP: #210832) + * debian/patches/98-unload_network_modules.patch: Restart network after + resuming, since this unloads/reloads network modules during suspend. This + unbreaks static network configuration after suspend, and mimics + acpi-support's behaviour of previous releases. (LP: #162654) + + -- Martin Pitt Fri, 11 Apr 2008 08:21:13 -0500 + +pm-utils (0.99.2-3ubuntu8) hardy; urgency=low + + * Fix "!grep" to be "! grep" in last patch. + + -- Ben Collins Thu, 03 Apr 2008 09:02:51 -0400 + +pm-utils (0.99.2-3ubuntu7) hardy; urgency=low + + * Do not "chvt 1" on resume when using fglrx. Work around for corrupted + terminal, suggested and tested by AMD/AGP. + + -- Ben Collins Wed, 02 Apr 2008 11:54:18 -0400 + +pm-utils (0.99.2-3ubuntu6) hardy; urgency=low + + * Add debian/patches/97_fix_ppc_suspend_test.patch: Fix suspend test on + PowerPC, thanks to Matthew Garrett (see patch header for details). + * debian/patches/70-remove-pm-pmu.patch: Change the patch to not entirely + drop pm-pmu, but use hal-system-power-pmu instead. This brings back + suspend to PowerPC. (LP: #189851) + * Add debian/patches/98-unload_network_modules.patch: Unload/reload network + modules during suspend. Thanks to Matthew Garrett! (LP: #162654) + + -- Martin Pitt Thu, 27 Mar 2008 16:26:43 +0100 + +pm-utils (0.99.2-3ubuntu5) hardy; urgency=low + + * Fix typo in 95-fix-config-file-parsing.patch which made loading + configs from /etc/pm/config.d/* break. LP: #190679 + * Add 35-skip-linked-cpus-cpufreq.patch which skips all CPUs whose speed + is shared with other CPUs (or cores) when saving state. LP: #162652. + + -- Tollef Fog Heen Wed, 26 Mar 2008 09:00:25 +0100 + +pm-utils (0.99.2-3ubuntu4) hardy; urgency=low + + * debian/patches/25-functions-modunload-regex.patch: + - in modunload(): Fix literally quoted regular expression to + make SUSPEND_MODULES work (LP: #188261) + + -- John Dong Fri, 01 Feb 2008 23:49:53 -0500 + +pm-utils (0.99.2-3ubuntu3) hardy; urgency=low + + * Drop 96-video-quirk-ignoring.patch again. It is incomplete (since we need + to do the same on the suspend side) and does not really fit here (if + pm-utils gets quirks passed on the command line, they should actually be + used). We'll solve this in the hal suspend script instead. (LP: #198808) + + -- Martin Pitt Mon, 24 Mar 2008 16:32:06 +0100 + +pm-utils (0.99.2-3ubuntu2) hardy; urgency=low + + * Add debian/patches/96-video-quirk-ignoring.patch: Ignore resume video + quirks when using the proprietary nvidia or fglrx drivers, or Intel >= + 915G, since they are not needed on them and actively break resuming. Since + this cannot be expressed as FDI rules with current hal, this hack needs to + suffice for Hardy. See patch tags for links to further information. + (LP: #198808) + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Martin Pitt Fri, 21 Mar 2008 13:09:45 +0100 + +pm-utils (0.99.2-3ubuntu1) hardy; urgency=low + + * debian/patches/99-fixup-ubuntu-behaviour.patch + - fix globbing to avoid hooks being run twice + - explicitly reset text mode if it was in use before + - Ubuntu keeps the vbestate file in a separate location and stores + it on boot + - backport the brightness resetting quirk from 0.99.4 + + -- Matthew Garrett Tue, 15 Jan 2008 22:52:23 +0000 + +pm-utils (0.99.2-3) unstable; urgency=low + + * Support modules/serices with dashes (closes: #433179) + * Fix config file parser (closes: #427254) + + -- Tim Dijkstra Mon, 16 Jul 2007 22:31:53 +0200 + +pm-utils (0.99.2-2) unstable; urgency=low + + * Make --hibernate test in pm-is-supported less strict so we + can support suspend2 too (closes: #422745) + * pm-action: Fix pm-suspend-hybrid support (closes: 427253) + * Add some more words to the pm-action manpage (closes: #425282) + * Don't install useless NEWS file (closes: #431551) + * Add support for NO_QUIRKS from HAL. Now we can distinguish + between `no quirks' and 'unknown' (closes: #427052) + + -- Tim Dijkstra Sat, 14 Jul 2007 22:41:06 +0200 + +pm-utils (0.99.2-1) unstable; urgency=low + + [ Michael Biebl ] + * Initial release (Closes: #389817). + * Do not install on_ac_power binary. Instead depend on powermgmt-base + package. + + [ Tim Dijkstra ] + * Support for `s2ram' for hal >= 0.5.9 + * First stab at suspend-hybrid support + * Do not install pm-pmu, it is hack for old kernels (older than the one + in etch) which is also present in the s2ram binary if needed. + * Do not install pm-reset-swap, it has bugs and is superflous since + swapon in debian has similar functionality. + * Recommend vbetool and radeontool (not depend on it) else pm-utils + won't be installable on anything but x86_* + * Add manpages. + + -- Tim Dijkstra Wed, 25 Apr 2007 22:48:19 +0200 + --- pm-utils-0.99.2.orig/debian/compat +++ pm-utils-0.99.2/debian/compat @@ -0,0 +1 @@ +5 --- pm-utils-0.99.2.orig/debian/watch +++ pm-utils-0.99.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://people.freedesktop.org/~pjones/pm-utils/pm-utils-(.*)\.tar\.gz --- pm-utils-0.99.2.orig/debian/rules +++ pm-utils-0.99.2/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +MANPAGES = pm-action pm-powersave pm-is-supported + +configure/pm-utils:: + # Hack to not build some stuff + touch src/pm-pmu.o src/pm-reset-swap.o + touch src/pm-pmu src/pm-reset-swap + +build/pm-utils:: + for file in $(MANPAGES) ; do \ + echo "generating $$file manpage..." ; \ + xmlto man debian/$$file.xml ; \ + done \ + +binary-install/pm-utils:: + # We depend on powermgmt-base to provide on_ac_power. + # This way we don't have to conflict with this package. + rm -f debian/pm-utils/usr/bin/on_ac_power + rm -f debian/pm-utils/usr/share/man/man1/on_ac_power.1 + # Remove tools/hooks that are not suitable for Debian. + rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/60sysfont + rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/55battery + rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/65alsa + rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/01grub + rm -f debian/pm-utils/usr/lib/pm-utils/bin/pm-reset-swap + rm -f debian/pm-utils/usr/lib/pm-utils/bin/pm-pmu + rm -f debian/pm-utils/usr/share/man/man1/pm-pmu.1 + # Make lintian happy and the man pages for pm-suspend and pm-hibernate + # easy accessible + ln -sf pm-action.8 debian/pm-utils/usr/share/man/man8/pm-suspend.8 + ln -sf pm-action.8 debian/pm-utils/usr/share/man/man8/pm-hibernate.8 + ln -sf pm-action.8 debian/pm-utils/usr/share/man/man8/pm-suspend-hybrid.8 + + chmod -x debian/pm-utils/usr/lib/pm-utils/defaults + +clean:: + rm -f *.8 *.1 --- pm-utils-0.99.2.orig/debian/pm-action.xml +++ pm-utils-0.99.2/debian/pm-action.xml @@ -0,0 +1,434 @@ + + + + + + + + + + + + + + + + + Debian"> + GNU"> + GPL"> +]> + + + + + &dhtitle; + &dhpackage; + &dhdate; + + + &dhfirstname; + &dhsurname; + Manpage author. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the &debian; system + (but may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the &gnu; General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found + in file:///usr/share/common-licenses/GPL. + +
+ + + &dhucpackage; + &dhsection; + + + &dhpackage; + suspend or hibernate your computer + + + + + pm-hibernate + + + + pm-suspend + + + + + + + + + + + + pm-suspend-hybrid + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage;, pm-hibernate, + pm-suspend and pm-suspend-hybrid + commands. This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + + These commands can be used to put the machine in a sleep + state. The precise way how this is done can be + influenced by installing executabes and configuration snipplets. + For some options external programs are needed. + + + These commands will usually be called by + hald when triggered to do so by a program + in a desktop session such as gnome-power-manager. + Calling them from the command line is also possible, but it is not + guaranteed that all programs in your desktop session keep working + as expected. + + + + + + + Suspend is a state where most devices are shutdown, except + for RAM. This state still draws power. + + + + + + + During hibernate the state of the system is saved to disk, + the system is fully powered off. Except maybe for a very low + power state on - for example - an ethernet card to enable + wake-on-lan. + + + + + + + Hybrid-suspend is the process where first the state of the + system is saved to disk - just like with hibernate - but + instead of poweroff, the + system goes in suspend state, which means it can wakeup + quicker than for normal hibernation. The advantage over + suspend is that you can resume even if you run out of power. + s2both(8) is an hybrid-suspend implementation. + + + + + + + + + + OPTIONS + + Om most hardware putting the video card in the suspend state and + recovering from it needs some hacks. + With the --quirk-* options of the pm-suspend and + pm-suspend-hybrid commands you can select which + should be used. + + + + + + + + + + + + + + + + + + + + + + Turn off the backlight on radeons before suspending. + + + + + + + Set ACPI parameter to s3bios + + + + + + + Set ACPI parameter to s3mode + + + + + + + VBE POST the graphics card after resume. + + + + + + + Get VBE mode before suspend and set it after resume. + + + + + + + Save VBE state before suspending and restore after resume. + + + + + + + + + + + + + + + Save the PCI config space for the VGA card. + + + + + + + FILES + + + /etc/pm/config.d + + + The files in this directory are evaluated in C sort order. + These files can be provided by individual packages outside + of pm-utils. If a global configuration variable is set, the + value set to will be appended to the previous value. + If any other variable is set, it will be ignored. + The syntax is simply: VAR_NAME = value. + See the + CONFIGURATION VARIABLES section for valid variables defined + by pm-utils. External packages can define others, see + their respective documentation for more information. + + + + + /etc/pm/sleep.d + /usr/lib/pm-utils/sleep.d + + + Programs in these directories (we call them hooks) are + combined and executed in C sort order before suspend and + hibernate with as argument 'suspend' or 'hibernate'. + Afterwards they are called in reverse order with + argument 'resume' and 'thaw' respectively. + If both directories contain a similar named file, + the one in /etc/pm/sleep.d will get preference. It + is possible to disable a hook in the distribution + directory by putting a non-executable file in + /etc/pm/sleep.d. + + + + + /var/log/pm-suspend.log + + + The log file showing what is done on suspend/hibernate + and resume/thaw. + + + + + + + + + + + CONFIGURATION VARIABLES + + Configuration variables defined by pm-utils. These can be set + in any file in /etc/pm-utils/config.d + + + + + HIBERNATE_RESUME_POST_VIDEO [=no] + + + If video should be posted after hibernate, just like + after suspend + + + + + INHIBIT + + + File to use as lock-file + + + + + PM_LOGFILE + + + File where pm-utils will log to. + + + + + + + SUSPEND_MODULES + + + Modules to unload before suspend + + + + + S2RAM_OPTS + + + If you installed s2ram + you can tell pm-utils which command line options + to use. This overrides any options given on the + command line to pm-utils. + + + + + S2DISK_CONF + + + If you installed s2disk + you can tell pm-utils which configuration file it + should use for it. + + + + + + + + + SEE ALSO + + + + s2ram + 8 + , + + s2disk + 8 + , + + s2both + 8 + , + + pm-is-supported + 1 + , + + pm-powersave + 8 + , + + vbetool + 8 + , + + radeontool + 8 + + + +
+ --- pm-utils-0.99.2.orig/debian/TODO +++ pm-utils-0.99.2/debian/TODO @@ -0,0 +1,3 @@ +* Write init script which loads the cpufreq modules (governors and drivers) +* Move the uswsusp related functionality into uswsusp package. + Provide a function.d hook, which overrides do_suspend() and do_hibernate() --- pm-utils-0.99.2.orig/debian/patches/90-support-services-modules-with-dash.patch +++ pm-utils-0.99.2/debian/patches/90-support-services-modules-with-dash.patch @@ -0,0 +1,41 @@ +--- pm/functions 2007-07-15 10:15:49.000000000 +0200 ++++ pm/functions 2007-07-15 10:14:55.000000000 +0200 +@@ -261,7 +261,7 @@ + + modreload() + { +- if [ "$(eval echo \$${1}_MODULE_LOAD)" == "yes" ]; then ++ if [ "$(eval echo \$${1//-/_}_MODULE_LOAD)" == "yes" ]; then + modprobe "$1" >/dev/null 2>&1 + fi + } +@@ -269,14 +269,14 @@ + stopservice() + { + if [ -x "/etc/init.d/$1" ]; then +- echo "export ${1}_SERVICE_ACTIVATE=yes" >> /var/run/pm-suspend ++ echo "export ${1//-/_}_SERVICE_ACTIVATE=yes" >> /var/run/pm-suspend + invoke-rc.d "$1" stop 2>&1 + fi + } + + restartservice() + { +- if [ "x$(eval echo \$${1}_SERVICE_ACTIVATE)" == "xyes" \ ++ if [ "x$(eval echo \$${1//-/_}_SERVICE_ACTIVATE)" == "xyes" \ + -a -x "/etc/init.d/$1" ]; then + invoke-rc.d "$1" start 2>&1 + fi +@@ -284,10 +284,10 @@ + + savestate() + { +- echo "export ${1}_STATE=$2" >> /var/run/pm-suspend ++ echo "export ${1//-/_}_STATE=$2" >> /var/run/pm-suspend + } + + restorestate() + { +- eval echo \$${1}_STATE ++ eval echo \$${1//-/_}_STATE + } --- pm-utils-0.99.2.orig/debian/patches/110-do-not-chtv-1-on-resume-with-fglrx.patch +++ pm-utils-0.99.2/debian/patches/110-do-not-chtv-1-on-resume-with-fglrx.patch @@ -0,0 +1,15 @@ +--- pm/functions~ 2008-04-02 11:45:38.000000000 -0400 ++++ pm/functions 2008-04-02 11:44:01.000000000 -0400 +@@ -64,7 +64,11 @@ + remove_suspend_lock() + { + rm -f /var/run/pm-suspend +- chvt 1 ++ # This call will cause terminal corruption when using fglrx. This is a work around only. ++ # Tested and suggested by AMD/AGP (ATI) Linux engineering group ++ if ! grep -q fglrx /proc/modules; then ++ chvt 1 ++ fi + chvt $VT + openvt -- sh -c "usleep $1 ; rm -f /.suspended >/dev/null 2>&1 0<&1" >/dev/null 2>&1 0<&1 & + } --- pm-utils-0.99.2.orig/debian/patches/99-fixup-ubuntu-behaviour.patch +++ pm-utils-0.99.2/debian/patches/99-fixup-ubuntu-behaviour.patch @@ -0,0 +1,89 @@ +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/functions pm-utils-0.99.2.new/pm/functions +--- pm-utils-0.99.2/pm/functions 2008-01-15 22:47:25.000000000 +0000 ++++ pm-utils-0.99.2.new/pm/functions 2008-01-15 22:52:00.000000000 +0000 +@@ -60,6 +60,7 @@ + + find_sleepd_files() + { ++ shopt -s nullglob + flist="/etc/pm/sleep.d/*[^~] /usr/lib/pm-utils/sleep.d/*[^~]" + bases=$(for file in $flist ; do echo $(basename $file) ; done | sort -n) + for base in $bases ; do +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/hooks/20video pm-utils-0.99.2.new/pm/hooks/20video +--- pm-utils-0.99.2/pm/hooks/20video 2008-01-15 22:47:24.000000000 +0000 ++++ pm-utils-0.99.2.new/pm/hooks/20video 2008-01-15 22:49:31.000000000 +0000 +@@ -46,9 +46,6 @@ + fi + + # We might need to do one or many of these quirks +- if [ "${DISPLAY_QUIRK_VBESTATE_RESTORE}" == "true" ]; then +- vbe vbestate save > /var/run/vbestate +- fi + if [ "${DISPLAY_QUIRK_VBEMODE_RESTORE}" == "true" ]; then + vbe vbemode get > /var/run/vbemode + fi +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/hooks/99video pm-utils-0.99.2.new/pm/hooks/99video +--- pm-utils-0.99.2/pm/hooks/99video 2008-01-15 22:47:25.000000000 +0000 ++++ pm-utils-0.99.2.new/pm/hooks/99video 2008-01-15 22:49:12.000000000 +0000 +@@ -13,6 +13,16 @@ + exit 0; + fi + ++reset_brightness() { ++ for bl in /sys/class/backlight/* ; do ++ [ -d $bl ] || continue ++ [ -f $bl/brightness ] || continue ++ BR=$(cat $bl/brightness) ++ echo 0 > $bl/brightness ++ echo $BR > $bl/brightness ++ done ++} ++ + vbetool=$(type -p vbetool) + vbe() { + if [ -z "$vbetool" ]; then +@@ -43,14 +53,22 @@ + sleep 0.1 + fi + if [ "${DISPLAY_QUIRK_VBESTATE_RESTORE}" == "true" ]; then +- vbe vbestate restore < /var/run/vbestate ++ vbe vbestate restore < /var/lib/acpi-support/vbestate + fi + if [ "${DISPLAY_QUIRK_VBEMODE_RESTORE}" == "true" ]; then +- vbe vbemode set `cat /var/run/vbemode` ++ vbemode=`cat /var/run/vbemode` ++ if [ $vbemode != "3" ]; then ++ vbe vbemode set `cat /var/run/vbemode` ++ else ++ vbe vgamode set 3 ++ fi + fi + if [ "${DISPLAY_QUIRK_DPMS_ON}" == "true" ]; then + vbe dpms on + fi ++ if [ "${DISPLAY_QUIRK_RESET_BRIGHTNESS}" == "true" ]; then ++ reset_brightness ++ fi + } + + +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/src/pm-action pm-utils-0.99.2.new/src/pm-action +--- pm-utils-0.99.2/src/pm-action 2008-01-15 22:47:25.000000000 +0000 ++++ pm-utils-0.99.2.new/src/pm-action 2008-01-15 22:48:26.000000000 +0000 +@@ -36,6 +36,7 @@ + echo " --quirk-dpms-on" + echo " --quirk-dpms-suspend" + echo " --quirk-radeon-off" ++ echo " --quirk-reset-brightness" + echo " --quirk-s3-bios" + echo " --quirk-s3-mode" + echo " --quirk-vbe-post" +@@ -66,6 +67,8 @@ + --quirk-radeon-off) + S2RAM_OPTS="$S2RAM_OPTS --radeontool"; + export DISPLAY_QUIRK_RADEON_OFF="true" ;; ++ --quirk-reset-brightness) ++ export DISPLAY_QUIRK_RESET_BRIGHTNESS="true" ;; + --quirk-s3-bios) + ACPI_SLEEP+=$((ACPI_SLEEP+1)) + export DISPLAY_QUIRK_S3_BIOS="true" ;; --- pm-utils-0.99.2.orig/debian/patches/80-service.patch +++ pm-utils-0.99.2/debian/patches/80-service.patch @@ -0,0 +1,26 @@ +Index: pm/functions +=================================================================== +--- pm/functions (Revision 3228) ++++ pm/functions (Arbeitskopie) +@@ -229,10 +229,9 @@ + + stopservice() + { +- service "$1" status 2>/dev/null | grep -c -q running +- if [ "$?" == "0" -a -x "/etc/init.d/$1" ]; then ++ if [ -x "/etc/init.d/$1" ]; then + echo "export ${1}_SERVICE_ACTIVATE=yes" >> /var/run/pm-suspend +- "/etc/init.d/$1" stop 2>&1 ++ invoke-rc.d "$1" stop 2>&1 + fi + } + +@@ -240,7 +239,7 @@ + { + if [ "x$(eval echo \$${1}_SERVICE_ACTIVATE)" == "xyes" \ + -a -x "/etc/init.d/$1" ]; then +- "/etc/init.d/$1" start 2>&1 ++ invoke-rc.d "$1" start 2>&1 + fi + } + --- pm-utils-0.99.2.orig/debian/patches/98-unload_network_modules.patch +++ pm-utils-0.99.2/debian/patches/98-unload_network_modules.patch @@ -0,0 +1,36 @@ +# Description: unload network modules during suspend/resume +# Ubuntu: https://bugs.launchpad.net/bugs/162654 +# Upstream: https://bugs.freedesktop.org/show_bug.cgi?id=15226 +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/hooks/50modules pm-utils-0.99.2.new/pm/hooks/50modules +--- pm-utils-0.99.2/pm/hooks/50modules 2008-04-11 08:25:08.000000000 -0500 ++++ pm-utils-0.99.2.new/pm/hooks/50modules 2008-04-11 08:26:41.000000000 -0500 +@@ -19,12 +19,29 @@ + done + } + ++unload_network() ++{ ++ for x in /sys/class/net/*; do ++ if [ -e $x/device/driver ]; then ++ NETMODULES="$NETMODULES $(basename $(readlink $x/device/driver) | tr [:upper:\] [:lower:])" ++ fi ++ done ++ for x in $NETMODULES; do ++ modunload $x; ++ done ++ if [ -d /sys/module/ndiswrapper ]; then ++ modunload ndiswrapper; ++ fi ++} ++ + case "$1" in + hibernate|suspend) + suspend_modules ++ unload_network + ;; + thaw|resume) + resume_modules ++ invoke-rc.d networking restart + ;; + *) + ;; --- pm-utils-0.99.2.orig/debian/patches/20-do-not-unload-button.patch +++ pm-utils-0.99.2/debian/patches/20-do-not-unload-button.patch @@ -0,0 +1,12 @@ +Index: pm/defaults +=================================================================== +RCS file: /cvs/pm-utils/pm-utils/pm/defaults,v +retrieving revision 1.1 +diff -u -3 -p -r1.1 defaults +--- pm/defaults 6 Mar 2007 19:08:05 -0000 1.1 ++++ pm/defaults 6 Mar 2007 21:53:24 -0000 +@@ -1,3 +1,3 @@ +-SUSPEND_MODULES="button" ++SUSPEND_MODULES="" + + HIBERNATE_RESUME_POST_VIDEO="no" --- pm-utils-0.99.2.orig/debian/patches/50-no-usleep.patch +++ pm-utils-0.99.2/debian/patches/50-no-usleep.patch @@ -0,0 +1,35 @@ +Index: pm/hooks/99video +=================================================================== +--- pm/hooks/99video (Revision 2646) ++++ pm/hooks/99video (Arbeitskopie) +@@ -36,7 +36,7 @@ + # We might need to do one or many of these quirks + if [ "${DISPLAY_QUIRK_VBE_POST}" == "true" ]; then + vbe post /dev/null 2>&1 0<&1" >/dev/null 2>&1 0<&1 & ++ openvt -- sh -c "sleep $1 ; rm -f /.suspended >/dev/null 2>&1 0<&1" >/dev/null 2>&1 0<&1 & + } + + find_sleepd_files() +@@ -167,7 +197,7 @@ + + run_hooks "$2" reverse + +- remove_suspend_lock 200 ++ remove_suspend_lock 0.0002 + + return 0 + } --- pm-utils-0.99.2.orig/debian/patches/30-comment-defaults-file.patch +++ pm-utils-0.99.2/debian/patches/30-comment-defaults-file.patch @@ -0,0 +1,33 @@ +Index: pm/defaults +=================================================================== +--- pm/defaults (revision 2562) ++++ pm/defaults (working copy) +@@ -1,3 +1,25 @@ +-SUSPEND_MODULES="" ++# what modules should be unloaded during suspend/hibernate? ++# note that this removes the module and all dependent modules, if possible. ++SUSPEND_MODULES="" ++ ++# this variable is not used if the uswsusp package is installed ++# we use s2ram instead in this case ++HIBERNATE_RESUME_POST_VIDEO="no" + +-HIBERNATE_RESUME_POST_VIDEO="no" ++####################################################################### ++# The following options require the uswsusp package being installed ++ ++# what options should be passed to s2ram? ++# see http://en.opensuse.org/S2ram for more information ++# for hal 0.5.9 and up don't set this option to get the options supplied ++# by HAL ++# S2RAM_OPTS="" ++ ++# where is the s2disk binary located? Defaults to "/usr/sbin/s2disk" ++# (do not change unless you kow what you are doing) ++# S2DISK_BIN="" ++ ++# which method should be used for suspend to disk? ++# defaults to "autodetect" ("userspace" if s2disk is available, "kernel" otherwise) ++# (do not change unless you kow what you are doing) ++HIBERNATE_METHOD="" + --- pm-utils-0.99.2.orig/debian/patches/35-skip-linked-cpus-cpufreq.patch +++ pm-utils-0.99.2/debian/patches/35-skip-linked-cpus-cpufreq.patch @@ -0,0 +1,10 @@ +--- pm-utils.old/pm/hooks/94cpufreq ++++ pm-utils/pm/hooks/94cpufreq +@@ -7,6 +7,7 @@ + [ -d /sys/devices/system/cpu/ ] || return 0 + pushd /sys/devices/system/cpu/ >/dev/null 2>&1 + for x in $(ls -1) ; do ++ [ -L $x/cpufreq ] && continue + [ -d $x/cpufreq ] || continue + [ -f $x/cpufreq/scaling_governor ] || continue + --- pm-utils-0.99.2.orig/debian/patches/75-suspend-support.patch +++ pm-utils-0.99.2/debian/patches/75-suspend-support.patch @@ -0,0 +1,10 @@ +--- src/pm-is-supported 2007-05-08 23:15:40.000000000 +0200 ++++ src/pm-is-supported 2007-05-08 23:46:01.000000000 +0200 +@@ -32,7 +32,6 @@ + grep -q mem /sys/power/state || exit 1 + ;; + hibernate) +- [ -f /sys/power/disk ] || exit 1 + grep -q disk /sys/power/state || exit 1 + ;; + suspend-hybrid) --- pm-utils-0.99.2.orig/debian/patches/15-laptop-tools.patch +++ pm-utils-0.99.2/debian/patches/15-laptop-tools.patch @@ -0,0 +1,13 @@ +Index: pm/power.d/laptop-tools +=================================================================== +--- pm/power.d/laptop-tools (Revision 3228) ++++ pm/power.d/laptop-tools (Arbeitskopie) +@@ -2,8 +2,6 @@ + # Values are taken from the laptop-tools package + # Bart Samwel + +-. /etc/pm/functions +- + setlowpowermode() + { + # Seconds laptop mode has to to wait after the disk --- pm-utils-0.99.2.orig/debian/patches/25-functions-modunload-regex.patch +++ pm-utils-0.99.2/debian/patches/25-functions-modunload-regex.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/functions pm-utils-0.99.2.new/pm/functions +--- pm-utils-0.99.2/pm/functions 2008-02-01 23:48:48.000000000 -0500 ++++ pm-utils-0.99.2.new/pm/functions 2008-02-01 23:49:05.000000000 -0500 +@@ -230,7 +230,7 @@ + # if the module was not loaded, also return 0 since this is no error. + # if no module was unloaded successfully, return 1 + while read MOD D C USED D; do +- [[ "$MOD" =~ "$UNL" ]] || continue ++ [[ "$MOD" =~ $UNL ]] || continue + if [ "$USED" == "-" ]; then + _rmmod $MOD $C + RET=$? --- pm-utils-0.99.2.orig/debian/patches/97_fix_ppc_suspend_test.patch +++ pm-utils-0.99.2/debian/patches/97_fix_ppc_suspend_test.patch @@ -0,0 +1,16 @@ +# Description: on PPC (with PMU), /sys/power/state does not contain +# 'mem', suspend to ram needs an ioctl. Thus, do not claim that +# suspend is not supported. +# Ubuntu: https://launchpad.net/bugs/189851 +# Debian: http://bugs.debian.org/452367 +--- pm-utils-0.99.2/src/pm-is-supported 2008-03-27 12:42:26.000000000 +0000 ++++ pm-utils-0.99.2.new/src/pm-is-supported 2008-03-27 12:42:45.000000000 +0000 +@@ -29,7 +29,7 @@ + + case "$ARG" in + suspend) +- grep -q mem /sys/power/state || exit 1 ++ grep -q mem /sys/power/state || [ -c /dev/pmu ] || exit 1 + ;; + hibernate) + grep -q disk /sys/power/state || exit 1 --- pm-utils-0.99.2.orig/debian/patches/85-remove-empty-NEW.patch +++ pm-utils-0.99.2/debian/patches/85-remove-empty-NEW.patch @@ -0,0 +1,6 @@ +Index: NEWS +=================================================================== +--- NEWS (revision 3903) ++++ NEWS (working copy) +@@ -1 +0,0 @@ +-News goes here --- pm-utils-0.99.2.orig/debian/patches/95-fix-config-file-parsing.patch +++ pm-utils-0.99.2/debian/patches/95-fix-config-file-parsing.patch @@ -0,0 +1,56 @@ +--- pm/functions.old 2007-07-15 11:26:52.000000000 +0200 ++++ pm/functions 2007-07-15 11:28:31.000000000 +0200 +@@ -9,6 +9,7 @@ + # RESUME_MODULES + # S2RAM_OPTS + # ++set -a + HIBERNATE_RESUME_POST_VIDEO=no + INHIBIT=/var/run/pm-utils.inhibit + PM_LOGFILE=${PM_LOGFILE:=/var/log/pm-suspend.log} +@@ -18,37 +19,17 @@ + S2DISK_CONF=/etc/uswsusp.conf + + [ -f /usr/lib/pm-utils/defaults ] && . /usr/lib/pm-utils/defaults +- +-GLOBAL_CONFIG_VARIABLES="" +-add_global() { +- export $1 +- GLOBAL_CONFIG_VARIABLES="$GLOBAL_CONFIG_VARIABLES $1" +-} +- +-# export them all here +-add_global HIBERNATE_RESUME_POST_VIDEO +-add_global INHIBIT +-add_global PM_LOGFILE +-add_global PM_CMDLINE +-add_global RESUME_MODULES +-add_global SUSPEND_MODULES +-add_global HIBERNATE_METHOD +-add_global S2DISK_BIN +-add_global S2DISK_CONF +-add_global S2RAM_OPTS ++set +a + + source_configs() + { +- cfgs="/etc/pm/config.d/*[^~]" +- for cfg in $cfgs ; do +- [ -x $cfg ] || continue +- while read LINE ; do +- case "$GLOBAL_CONFIG_VARIABLES " in +- *" ${LINE%=*} "*) continue ;; +- *) eval $LINE ;; +- esac +- done < $cfg +- done ++ cfgs="/etc/pm/config.d/*[^~]" ++ for cfg in $cfgs ; do ++ [ -f $cfg ] || continue ++ set -a ++ . $cfg ++ set +a ++ done + } + + source_configs --- pm-utils-0.99.2.orig/debian/patches/40-performance-gov-on-hibernate.patch +++ pm-utils-0.99.2/debian/patches/40-performance-gov-on-hibernate.patch @@ -0,0 +1,13 @@ +Index: pm/hooks/94cpufreq +=================================================================== +--- pm/hooks/94cpufreq (Revision 2621) ++++ pm/hooks/94cpufreq (Arbeitskopie) +@@ -11,7 +11,7 @@ + [ -f $x/cpufreq/scaling_governor ] || continue + + savestate ${x}_governor $(cat $x/cpufreq/scaling_governor) +- sh -c "echo userspace > $x/cpufreq/scaling_governor" >/dev/null 2>&1 ++ sh -c "echo performance > $x/cpufreq/scaling_governor" >/dev/null 2>&1 + done + popd >/dev/null 2>&1 + } --- pm-utils-0.99.2.orig/debian/patches/70-remove-pm-pmu.patch +++ pm-utils-0.99.2/debian/patches/70-remove-pm-pmu.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/functions pm-utils-0.99.2.new/pm/functions +--- pm-utils-0.99.2/pm/functions 2008-03-27 14:49:58.000000000 +0100 ++++ pm-utils-0.99.2.new/pm/functions 2008-03-27 14:50:49.000000000 +0100 +@@ -154,7 +154,7 @@ + echo "This machine is unkown, please try to find out how to suspend this machine. See s2ram(8)." + fi + else +- pm-pmu --suspend || echo -n "mem" > /sys/power/state ++ [ -e /dev/pmu ] && /usr/lib/hal/hal-system-power-pmu sleep || echo -n "mem" > /sys/power/state + fi + } + --- pm-utils-0.99.2.orig/debian/patches/10-uswsusp-support.patch +++ pm-utils-0.99.2/debian/patches/10-uswsusp-support.patch @@ -0,0 +1,173 @@ +Index: src/pm-action +=================================================================== +--- src/pm-action (Revision 3228) ++++ src/pm-action (Arbeitskopie) +@@ -52,6 +52,9 @@ + + export LC_COLLATE=C + ++unset S2RAM_OPTS ++unset ACPI_SLEEP ++ + # Get the command line options + while [ $# -gt 0 ] + do +@@ -61,19 +64,30 @@ + --quirk-dpms-suspend) + export DISPLAY_QUIRK_DPMS_SUSPEND="true" ;; + --quirk-radeon-off) ++ S2RAM_OPTS="$S2RAM_OPTS --radeontool"; + export DISPLAY_QUIRK_RADEON_OFF="true" ;; + --quirk-s3-bios) ++ ACPI_SLEEP+=$((ACPI_SLEEP+1)) + export DISPLAY_QUIRK_S3_BIOS="true" ;; + --quirk-s3-mode) ++ ACPI_SLEEP+=$((ACPI_SLEEP+2)) + export DISPLAY_QUIRK_S3_MODE="true" ;; + --quirk-vbe-post) ++ S2RAM_OPTS="$S2RAM_OPTS --vbe_post"; + export DISPLAY_QUIRK_VBE_POST="true" ;; + --quirk-vbemode-restore) ++ S2RAM_OPTS="$S2RAM_OPTS --vbe_mode"; + export DISPLAY_QUIRK_VBEMODE_RESTORE="true" ;; + --quirk-vbestate-restore) ++ S2RAM_OPTS="$S2RAM_OPTS --vbe_save"; + export DISPLAY_QUIRK_VBESTATE_RESTORE="true" ;; + --quirk-vga-mode3) + export DISPLAY_QUIRK_VGA_MODE_3="true" ;; ++ --quirk-save-pci) ++ S2RAM_OPTS="$S2RAM_OPTS --pci_save"; ++ export DISPLAY_QUIRK_PCI_SAVE="true" ;; ++ --quirk-none) ++ NO_QUIRKS="1";; + --help) + help_options + exit 0 ;; +@@ -83,6 +97,21 @@ + shift + done + ++if [ -n "$ACPI_SLEEP" ]; then ++ S2RAM_OPTS=" --acpi_sleep $ACPI_SLEEP" ++fi ++ ++if [ -n "$S2RAM_OPTS" ]; then ++ S2RAM_OPTS="--force $S2RAM_OPTS" ++fi ++ ++if [ -n "$NO_QUIRKS" ]; then ++ S2RAM_OPTS="--force" ++fi ++ ++export S2RAM_OPTS ++export NO_QUIRKS ++ + . /usr/lib/pm-utils/functions + + [ -f /sys/power/state ] || exit 1 + +Index: pm/hooks/99video +=================================================================== +--- pm/hooks/99video (Revision 3228) ++++ pm/hooks/99video (Arbeitskopie) +@@ -9,6 +9,10 @@ + + . /usr/lib/pm-utils/functions + ++if [ -x /usr/sbin/s2ram ] || [ -x /usr/sbin/s2both ]; then ++ exit 0; ++fi ++ + vbetool=$(type -p vbetool) + vbe() { + if [ -z "$vbetool" ]; then +Index: pm/hooks/20video +=================================================================== +--- pm/hooks/20video (Revision 3228) ++++ pm/hooks/20video (Arbeitskopie) +@@ -9,6 +9,10 @@ + + . /usr/lib/pm-utils/functions + ++if [ -x /usr/sbin/s2ram ] || [ -x /usr/sbin/s2both ]; then ++ exit 0; ++fi ++ + vbetool=$(type -p vbetool) + vbe() { + if [ -z "$vbetool" ]; then +Index: pm/functions +=================================================================== +--- pm/functions (Revision 3228) ++++ pm/functions (Arbeitskopie) +@@ -7,11 +7,15 @@ + # + # PM_CMDLINE + # RESUME_MODULES ++# S2RAM_OPTS + # + HIBERNATE_RESUME_POST_VIDEO=no + INHIBIT=/var/run/pm-utils.inhibit + PM_LOGFILE=${PM_LOGFILE:=/var/log/pm-suspend.log} + SUSPEND_MODULES="" ++HIBERNATE_METHOD="" ++S2DISK_BIN=/usr/sbin/s2disk ++S2DISK_CONF=/etc/uswsusp.conf + + [ -f /usr/lib/pm-utils/defaults ] && . /usr/lib/pm-utils/defaults + +@@ -28,6 +32,10 @@ + add_global PM_CMDLINE + add_global RESUME_MODULES + add_global SUSPEND_MODULES ++add_global HIBERNATE_METHOD ++add_global S2DISK_BIN ++add_global S2DISK_CONF ++add_global S2RAM_OPTS + + source_configs() + { +@@ -134,13 +142,40 @@ + + do_suspend() + { +- pm-pmu --suspend || echo -n "mem" > /sys/power/state ++ if [ -x /usr/sbin/s2ram ]; then ++ if [ -n "$S2RAM_OPTS" ]; then ++ # Trust HAL or the user to pass the correct options ++ /usr/sbin/s2ram $S2RAM_OPTS ++ elif /usr/sbin/s2ram --test > /dev/null ; then ++ # Trust s2ram's internal whitelist ++ /usr/sbin/s2ram ++ else ++ # Unknown machine ++ echo "This machine is unkown, please try to find out how to suspend this machine. See s2ram(8)." ++ fi ++ else ++ pm-pmu --suspend || echo -n "mem" > /sys/power/state ++ fi + } + + do_hibernate() + { +- echo -n "platform" > /sys/power/disk +- echo -n "disk" > /sys/power/state ++ if [ -z "$HIBERNATE_METHOD" ]; then ++ if [ -x $S2DISK_BIN -a -c /dev/snapshot ]; then ++ HIBERNATE_METHOD="userspace" ++ else ++ HIBERNATE_METHOD="kernel" ++ fi ++ fi ++ case $HIBERNATE_METHOD in ++ userspace) ++ $S2DISK_BIN -f $S2DISK_CONF ++ ;; ++ kernel) ++ echo -n "platform" > /sys/power/disk ++ echo -n "disk" > /sys/power/state ++ ;; ++ esac + } + + do_suspend_hybrid() --- pm-utils-0.99.2.orig/debian/patches/60-suspend-hybrid.patch +++ pm-utils-0.99.2/debian/patches/60-suspend-hybrid.patch @@ -0,0 +1,78 @@ +Index: src/pm-action +=================================================================== +--- src/pm-action (revision 2764) ++++ src/pm-action (working copy) +@@ -92,27 +110,34 @@ + ACTION=${ACTION#pm-} +-ACTION=${ACTION/-/_} + + case "$ACTION" in + suspend) +- if ! grep -q mem /sys/power/state ; then ++ if ! pm-is-supported --$ACTION ; then + echo "Error: kernel cannot suspend to ram." 1>&2 + exit 1 + fi +- REVERSE=resume ;; ++ REVERSE=resume ++ ;; + hibernate) +- if ! grep -q disk /sys/power/state ; then ++ if ! pm-is-supported --$ACTION ; then + echo "Error: kernel cannot suspend to disk." 1>&2 + exit 1 + fi + REVERSE=thaw + ;; ++ suspend-hybrid) ++ if ! pm-is-supported --$ACTION ; then ++ echo "Error: Hybrid suspend is not supported." 1>&2 ++ exit 1 ++ fi ++ REVERSE=resume ++ ;; + *) + exit 1 + ;; + esac + + export PM_CMDLINE="$@" + +-pm_main "$ACTION" "$REVERSE" ++pm_main "${ACTION/-/_}" "$REVERSE" + + exit $? +Index: pm/functions +=================================================================== +--- pm/functions (revision 2764) ++++ pm/functions (working copy) +@@ -164,7 +164,11 @@ + + do_suspend_hybrid() + { +- return 1 ++ if [ -x /usr/sbin/s2both ]; then ++ /usr/sbin/s2both -f $S2DISK_CONF $S2RAM_OPTS ++ else ++ exit 1; ++ fi + } + + pm_main() +Index: src/pm-is-supported +=================================================================== +--- src/pm-is-supported (revision 2764) ++++ src/pm-is-supported (working copy) +@@ -36,9 +36,9 @@ + grep -q disk /sys/power/state || exit 1 + ;; + suspend-hybrid) +- # grep -q mem /sys/power/state || exit 1 +- # grep -q disk /sys/power/state || exit 1 +- exit 1 ++ grep -q mem /sys/power/state || exit 1 ++ grep -q disk /sys/power/state || exit 1 ++ [ -x /usr/sbin/s2both ] || exit 1 + ;; + help) + help_options --- pm-utils-0.99.2.orig/debian/pm-utils.manpages +++ pm-utils-0.99.2/debian/pm-utils.manpages @@ -0,0 +1,3 @@ +pm-action.8 +pm-powersave.8 +pm-is-supported.1 --- pm-utils-0.99.2.orig/debian/pm-powersave.xml +++ pm-utils-0.99.2/debian/pm-powersave.xml @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + Debian"> + GNU"> + GPL"> +]> + + + + + &dhtitle; + &dhpackage; + &dhdate; + + + &dhfirstname; + &dhsurname; + Manpage author. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the &debian; system + (but may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the &gnu; General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found + in file:///usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + put your computer into low power mode + + + + &dhpackage; + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; command. + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhpackage; can be used to set your system into low power mode. + + + One of the features that is enabled by pm-powersave + is the so-called Laptop Mode. A feature of the Linux kernel that allows + to spin down the hard drive for longer periods of time. + + + + + OPTIONS + + + + + + + Set the computer into low power mode to reduce energy consumption + and extend your laptop's battery life. + + + + + + + Turn off low power mode. + + + + + + + FILES + + + /etc/pm/power.d/ + /usr/lib/pm-utils/power.d/ + + + When you run pm-powersave it combines the scripts in + these two directories and executes them in sorted order. + If both directories contain a script with the same name, the one in + /etc/pm/power.d/ has a higher precedence and only + this one will be executed. + + + Therefore to disable a script from /usr/lib/pm-utils/power.d/ simply + create an empty file in /etc/pm/power.d/ with the same name and + without the execute bit set. + + + + + + + + + + SEE ALSO + + + + pm-suspend + 8 + , + pm-hibernate + 8 + + + To learn more about Laptop Mode read + /usr/src/linux/Documentation/laptop-mode.txt. + + +
+ --- pm-utils-0.99.2.orig/debian/control +++ pm-utils-0.99.2/debian/control @@ -0,0 +1,20 @@ +Source: pm-utils +Section: admin +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Tim Dijkstra +Uploaders: Michael Biebl +Build-Depends: cdbs, debhelper (>= 5), docbook-utils, xmlto +Standards-Version: 3.7.2 +XS-Vcs-Svn: svn://svn.debian.org/svn/collab-maint/ext-maint/pm-utils/trunk +XS-Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/ext-maint/pm-utils/trunk + +Package: pm-utils +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, powermgmt-base +Recommends: hal (>= 0.5.9), uswsusp, vbetool, radeontool +Description: utilities and scripts for power management + This packages provides simple shell command line tools to suspend and + hibernate your computer. + . + Homepage: http://webcvs.freedesktop.org/pm-utils/pm-utils/ --- pm-utils-0.99.2.orig/debian/pm-is-supported.xml +++ pm-utils-0.99.2/debian/pm-is-supported.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + Debian"> + GNU"> + GPL"> +]> + + + + &dhtitle; + &dhpackage; + &dhdate; + + + &dhfirstname; + &dhsurname; + Manpage author. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the &debian; system + (but may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the &gnu; General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found + in file:///usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + Does my computer support suspend and/or hibernate. + + + + &dhpackage; + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; command. + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + The intended purpose of &dhpackage; is to + find out which power management modes are supported by the + system. hald(8) will call it to do just that. + + + + OPTIONS + + + + + + Is suspend supported? Suspend is a state where + most devices are shutdown, except for RAM. This + state still draws power. + + + + + + + Is hibernate supported? During hibernate the state of the + system is saved to disk, the system is fully powered off. + + + + + + Is hybrid-suspend supported? Hybrid-suspend is the process + where first the state of the system is saved to disk + -- just like with hibernate -- but instead of poweroff, the + system goes in suspend state, which means it can wakeup + quicker than for normal hibernation. The advantage over + suspend is that you can resume even if you run out of power. + s2both(8) is an hybrid-suspend implementation. + + + + + + + + RETURN VALUE + The result of the test for a certain powermanagement state + is defined by the following exit codes. + + + Code + Diagnostic + + 0 + State available. + + + 1 + State NOT available. + + + + + SEE ALSO + + + hald + 8 + , + pm-suspend + 8 + , + s2both + 8 + + +
+ --- pm-utils-0.99.2.orig/debian/copyright +++ pm-utils-0.99.2/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Michael Biebl on +Sat, 3 Mar 2007 04:12:26 +0100. + +It was downloaded from http://webcvs.freedesktop.org/pm-utils/pm-utils/ + +Upstream Author: + Bill Nottingham + Peter Jones + David Zeuthen + Richard Hughes + +Copyright: + Copyright 2006 Red Hat, Inc. + Copyright 2007 Peter Jones + Copyright 2006-2007 Richard Hughes + +License: + + This package 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. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Michael Biebl and +is licensed under the GPL, see above. +