Your message dated Thu, 03 May 2012 10:33:02 +0000
with message-id <[email protected]>
and subject line Bug#505410: fixed in hibernate 2.0+15+g88d54a8-1
has caused the Debian Bug report #505410,
regarding hibernate: s2ram options aren't applied to s2both when using ususpend
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
505410: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505410
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hibernate
Version: 1.99-1
Severity: normal
Tags: patch

Hi,

Let me know if I'm missing something, but I couldn't find how to set the options
for s2both.

According to the s2ram manpage, "it is recommended to use s2both(8) s2ram is
only provided to  find  out  any  work around  needed to make suspend to both
work." The s2both manpage says, "The s2both command also inherits all command
line arguments from s2ram." So, it seems odd to me that the USuspendRam*
options don't apply when USuspendMethod is set to both.

Anyways, I made a patch that works for me. It turns out the s2both manpage is
inaccurate, as s2both doesn't accept the -a option, and uses -f for something
different. (I only use the USuspendRamForce and USuspendRamAcpiSleep options,
so those are the only ones I tested.) As a workaround, I made the scriptlet
pass the long version of these arguments. Something similar may be needed for
the others.

Anyways, with this patch, it makes sense to put "Include ususpend-ram.conf"
at the top of /etc/hibernate/ususpend-both.conf so that the user only needs to
figure out the right options once. (Since they will almost certainly need to
pass the same options to s2both as they needed for s2ram.)

Let me know if you want me to change anything.

Thanks,
Ivan


-- Package-specific info:
--- configuration
==> /etc/hibernate/common.conf <==
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution debian
SaveClock restore-only
LockXScreenSaver yes
UnloadBlacklistedModules yes
LoadModules auto
DownInterfaces wlan0
UpInterfaces auto
SwitchToTextMode yes
XStatus x
XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' 
--colour=Green --shadow 1 --pos bottom --align center --offset 50
BackLight yes
==> /etc/hibernate/disk.conf <==
TryMethod ususpend-disk.conf
TryMethod sysfs-disk.conf
==> /etc/hibernate/hibernate.conf <==
TryMethod ususpend-both.conf
TryMethod suspend2.conf
TryMethod disk.conf
TryMethod ram.conf
==> /etc/hibernate/ram.conf <==
TryMethod ususpend-ram.conf
TryMethod sysfs-ram.conf
LockXScreenSaver yes
==> /etc/hibernate/suspend2.conf <==
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
FullSpeedCPU yes
Include common.conf
==> /etc/hibernate/sysfs-disk.conf <==
UseSysfsPowerState disk
Include common.conf
==> /etc/hibernate/sysfs-ram.conf <==
UseSysfsPowerState mem
Include common.conf
==> /etc/hibernate/ususpend-both.conf <==
Include ususpend-ram.conf
USuspendMethod both
Include common.conf
==> /etc/hibernate/ususpend-disk.conf <==
USuspendMethod disk
Include common.conf
==> /etc/hibernate/ususpend-ram.conf <==
USuspendMethod ram
USuspendRamForce yes
USuspendRamAcpiSleep 3
Include common.conf

--- /sys/power
==> /sys/power/disk <==
[platform] test testproc shutdown reboot 
==> /sys/power/image_size <==
952130109
==> /sys/power/resume <==
254:0
==> /sys/power/state <==
mem disk

--- s2ram -n
Machine unknown
This machine can be identified by:
    sys_vendor   = ""
    sys_product  = ""
    sys_version  = ""
    bios_version = ""
--- log
Starting suspend at Fri Nov 7 11:58:37 EST 2008
hibernate: [01] Executing CheckLastResume ... 
hibernate: [01] Executing CheckRunlevel ... 
hibernate: [01] Executing LockFileGet ... 
hibernate: [01] Executing NewKernelFileCheck ... 
hibernate: [05] Executing XStatusSuspendBegin ... 
hibernate: [10] Executing EnsureUSuspendCapable ... 
hibernate: [11] Executing XHacksSuspendHook1 ... 
hibernate: [20] Executing XStatusProgress ... 
hibernate: [30] Executing XStatusProgress ... 
hibernate: [40] Executing XStatusProgress ... 
hibernate: [50] Executing XStatusProgress ... 
hibernate: [59] Executing RemountXFSBootRO ... 
hibernate: [60] Executing NetworkStop ... 
hibernate: [60] Executing XStatusProgress ... 
hibernate: [70] Executing XStatusProgress ... 
hibernate: [80] Executing XStatusProgress ... 
hibernate: [89] Executing SaveKernelModprobe ... 
hibernate: [90] Executing XStatusProgress ... 
hibernate: [91] Executing LockXScreensaver ... 
xscreensaver-command: activating and locking.

hibernate: [91] Executing ModulesUnloadBlacklist ... 
hibernate: [91] Executing ModulesUnloadBlacklist ... 
hibernate: [95] Executing XHacksSuspendHook2 ... 
hibernate: [95] Executing XStatusProgress ... 
hibernate: [98] Executing CheckRunlevel ... 
hibernate: [98] Executing DimBackLight ... 
hibernate: [98] Executing XStatusProgressKill ... 
hibernate: [99] Executing DoUSuspend ... 
hibernate: Running /usr/sbin/s2both  --force --acpi_sleep 3...
hibernate: [95] Executing XStatusResumeBegin ... 
hibernate: [90] Executing XStatusProgress ... 
hibernate: [90] Executing RestoreBackLight ... 
hibernate: [90] Executing ModulesLoad ... 
hibernate: [89] Executing RestoreKernelModprobe ... 
hibernate: [85] Executing XHacksResumeHook2 ... 
hibernate: [80] Executing XStatusProgress ... 
hibernate: [70] Executing XStatusProgress ... 
hibernate: [70] Executing ClockRestore ... 
hibernate: [70] Executing ClockRestore ... 
hibernate: [60] Executing XStatusProgress ... 
hibernate: [60] Executing NetworkStart ... 
hibernate: [59] Executing RemountXFSBootRW ... 
hibernate: [50] Executing XStatusProgress ... 
hibernate: [40] Executing XStatusProgress ... 
hibernate: [30] Executing XStatusProgress ... 
hibernate: [30] Executing UnlockXScreensaver ... 
hibernate: [20] Executing XStatusProgress ... 
hibernate: [15] Executing XStatusProgress ... 
hibernate: [11] Executing XHacksResumeHook1 ... 
hibernate: [05] Executing XStatusProgressKill ... 
hibernate: [01] Executing XStatusReportErrors ... 
hibernate: [01] Executing NoteLastResume ... 
hibernate: [01] Executing LockFilePut ... 
Resumed at Sun Nov 9 22:54:14 EST 2008

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages hibernate depends on:
ii  console-tools            1:0.2.3dbs-65.1 Linux console and font utilities

Versions of packages hibernate recommends:
pn  dash                          <none>     (no description available)
ii  hdparm                        8.9-2      tune hard disk parameters for high
ii  uswsusp                       0.8-1.1    tools to use userspace software su
ii  vbetool                       1.0-3      run real-mode video BIOS code to a

Versions of packages hibernate suggests:
pn  915resolution                 <none>     (no description available)
ii  xscreensaver                  5.05-3     Automatic screensaver for X

-- no debconf information
--- /root/ususpend.orig 2008-10-28 01:30:27.432726201 -0400
+++ /usr/share/hibernate/scriptlets.d/ususpend  2008-10-28 01:44:52.569246666 
-0400
@@ -33,10 +33,7 @@
     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 @@
 DoUSuspend() {
     if [ -z "$USUSPEND_NO_SUSPEND" ] ; then
        ARGS=
-       if [ "$USUSPEND_PROG" = s2ram ]; then
-           [ $USUSPEND_RAM_FORCE -eq 1 ] && ARGS="$ARGS -f"
+       if [ "$USUSPEND_PROG" = s2ram  -o "$USUSPEND_PROG" = s2both ]; then
+           [ $USUSPEND_RAM_FORCE -eq 1 ] && ARGS="$ARGS --force"
            [ $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"
+           [ $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..."

--- End Message ---
--- Begin Message ---
Source: hibernate
Source-Version: 2.0+15+g88d54a8-1

We believe that the bug you reported is fixed in the latest version of
hibernate, which is due to be installed in the Debian FTP archive:

hibernate_2.0+15+g88d54a8-1.debian.tar.gz
  to main/h/hibernate/hibernate_2.0+15+g88d54a8-1.debian.tar.gz
hibernate_2.0+15+g88d54a8-1.dsc
  to main/h/hibernate/hibernate_2.0+15+g88d54a8-1.dsc
hibernate_2.0+15+g88d54a8-1_all.deb
  to main/h/hibernate/hibernate_2.0+15+g88d54a8-1_all.deb
hibernate_2.0+15+g88d54a8.orig.tar.gz
  to main/h/hibernate/hibernate_2.0+15+g88d54a8.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrey Rahmatullin <[email protected]> (supplier of updated hibernate package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 02 May 2012 23:53:16 +0600
Source: hibernate
Binary: hibernate
Architecture: source all
Version: 2.0+15+g88d54a8-1
Distribution: unstable
Urgency: low
Maintainer: Andrey Rahmatullin <[email protected]>
Changed-By: Andrey Rahmatullin <[email protected]>
Description: 
 hibernate  - smartly puts your computer to sleep (suspend to RAM or disk)
Closes: 363004 473530 491071 492392 495145 505410 512112 531290 532124 555410 
651194 664830 668978 671081
Changes: 
 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).
Checksums-Sha1: 
 07c1559e58568350cdd690abcfc71645864d62d1 2279 hibernate_2.0+15+g88d54a8-1.dsc
 6d6668a6a0469d0a0aa0f50a91e819287e5f28d0 83941 
hibernate_2.0+15+g88d54a8.orig.tar.gz
 107118f03129eaf6bd8e835f962cd91a8867aa74 18236 
hibernate_2.0+15+g88d54a8-1.debian.tar.gz
 cf84cbb91141d8afca6c08b34ae2cc2304a4098e 98694 
hibernate_2.0+15+g88d54a8-1_all.deb
Checksums-Sha256: 
 1fee079156ddd4512c3f383f5557719543fd47124ac2cf29257d5e9a9971c257 2279 
hibernate_2.0+15+g88d54a8-1.dsc
 b14a5b2ef161542e217b9ba913a51529f527f54f6f629a3332ce5b545488983c 83941 
hibernate_2.0+15+g88d54a8.orig.tar.gz
 37bd31a259443b503d155581057a5eed52cc2a63c0f24f77ed6b52ede8c9608c 18236 
hibernate_2.0+15+g88d54a8-1.debian.tar.gz
 e8c21be4ee8b570fce7087e905b101ea557742116ca07c33741762c9323fef52 98694 
hibernate_2.0+15+g88d54a8-1_all.deb
Files: 
 629ae6e083ddafa7762154de532a3554 2279 utils optional 
hibernate_2.0+15+g88d54a8-1.dsc
 b847f95590432ad48db3064b79b02779 83941 utils optional 
hibernate_2.0+15+g88d54a8.orig.tar.gz
 24e0fe1272eae4c4a4768a5fd6a1bc9b 18236 utils optional 
hibernate_2.0+15+g88d54a8-1.debian.tar.gz
 1e9e7133d23d219e8a4bef58e95c7edf 98694 utils optional 
hibernate_2.0+15+g88d54a8-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQLvBAEBCgDZBQJPol3qwBEaaHR0cDovL21hcnRpbi1rcmFmZnQubmV0L2dwZy9z
aWctcG9saWN5LzU1Yzk4ODJkOTk5YmJjYzQvMjAxMTAxMjQxMTI1P3NoYTUxMnN1
bT0xY2FkOTZmZDI3ZDMyMzNmNTNlMjI4NDk1MzM2NDgxMDdlNWVlOGQ1YmU2NTUy
NTFkNzRjOGYxYzVjM2JjNDJmMjMwNGZhNTE1MTUwZjdiZDRkZDA1ZTk4MTk5MjRm
MDQ5NTEzZWU5OTYyY2E3MTcwOWY4MWQ5NDUxNTg1MmJkOAAKCRBVyYgtmZu8xOzW
D/0SgqJm5pKo5wBUxKCmhAZ27m2SuvWOhW8Suf996Nge2nwJE5anrTN4/9Kq2RX9
ncXvUS/H0RGxH2OHWdHs1T59qxcIc+sq+XSop5By/nhijgwmJfCSrzsycuSvICPK
2FvGKyujrwu4fUznZW1uYzvmGBNPlLu6pE8asyqbI+3XCPUBUwki3LNXdRN4jqNd
EGDOrhGgqGpJQigi3rgDyiUGqUrlHY+XKOEzumZwfMtZVKdSvAwdl+UClYyPkAXe
x1IsY0Uy7MplUHnYLfZHbUZ3euhkYtJuSuc7GeYvTjWLaBXMAepWFePbiF1xjGqq
1JlHr1C0hfL5arHnAdP4SeEeajXLLbUObk5vsm7bCk15JKtqqP3VvuGHNAl/XDwQ
UJRK3NY92Rp2A+nn1P3cLdzXFqTFjwBu5tNIpQ3iu+bz3GoHETHRR+tLIGEOP1I+
SXBRJNneR1bbc9pBejbkK+buRcGxvo/LNz9yHt7mnM78vwouQMRKs0RR3LhxRDox
11UL/7K7179eLNb8q6gIA0IEtKR+0LHEVW0YeqlBFgsTDnAmmcymJBVu95gIx/3v
1L3VjS573Wpyj4cLCsjGcuN99qhZ+5LFjSPd7d1VBABOn3vVxo/949X0dfRbR0eb
STazbgPhgQ+aYjmHj4abmn316XRvlhSoMvaIqvA82D982A==
=DdyX
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to