Package: hibernate
Version: 1.97-1
Severity: grave
Tags: patch
Justification: renders package unusable

Hibernate just hung on my machine after a recent update. Examining the
script showed that get_env_var_of_process is called with the args the
wrong way round (or is defined with them the wrong way round ..). That
made everything hunky-dory for me (hibernate always used to work fine
before my upgrade).

Here's my patch

--- hibernate   2007-10-22 15:06:52.000000000 +0200
+++ /usr/sbin/hibernate 2007-11-28 23:21:50.000000000 +0100
@@ -222,8 +222,8 @@ FindXServer() {
            # Ensure the process still exists, and we aren't hallucinating.
            [ -d "/proc/$xpid/" ] || continue

-           xauth="`get_env_var_of_process XAUTHORITY $xpid`"
-           xhome="`get_env_var_of_process HOME $xpid`"
+           xauth="`get_env_var_of_process $xpid XAUTHORITY`"
+           xhome="`get_env_var_of_process $xpid HOME`"
            xuser=`/bin/ls -ld /proc/$xpid/ | awk '{print $3}'`
            [ -z $xauth ] && [ -n $xhome ] && [ -f $xhome/.Xauthority ] && 
xauth=$xhome/.Xauthority




-- Package-specific info:
--- configuration
==> /etc/hibernate/common.conf <==
Verbosity 1
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution debian
SaveClock restore-only
UnmountFSTypes smbfs nfs
UnmountGraceTime 5
OnSuspend 20 echo "Good night!"
OnResume 20 echo "Good morning!"
UnloadModules snd_via82cxxx usb-ohci dm_snapshot dm_mirror vfat msdos 
snd_pcm_oss eeprom battery button fan thermal usbmouse pcmcia irtty_sir 
hostap_pci hw_random nvram ibm_acpi firmware_class eeprom nls_cp437 
rsrc_nonstatic crc32 pcmcia_core
UnloadBlacklistedModules yes
LoadModules auto
DownInterfaces eth0 eth1
UpInterfaces auto
MuteAudio yes
PauseAudio yes
EjectCards yes
RestartServices laptop-mode
SwitchToTextMode yes
XStatus kde
==> /etc/hibernate/disk.conf <==
TryMethod sysfs-disk.conf
==> /etc/hibernate/hibernate.conf <==
TryMethod disk.conf
TryMethod ram.conf
==> /etc/hibernate/ram.conf <==
TryMethod ususpend-ram.conf
TryMethod sysfs-ram.conf
==> /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 <==
USuspendMethod both
Include common.conf
==> /etc/hibernate/ususpend-disk.conf <==
USuspendMethod disk
Include common.conf
==> /etc/hibernate/ususpend-ram.conf <==
USuspendMethod ram
Include common.conf

--- /sys/power
==> /sys/power/disk <==
shutdown
==> /sys/power/resume <==
3:2
==> /sys/power/state <==
mem disk 

--- log
Starting suspend at Thu Dec 20 06:59:54 CET 2007
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [05] Executing XStatusSuspendBegin ...
hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [15] Executing MuteAudio ...
hibernate: [15] Executing PauseAudio ...
hibernate: [20] Executing MiscLaunchAuxFunc1 ...
Executing echo "Good night!"...
Good night!
hibernate: [20] Executing XStatusProgress ...
hibernate: [30] Executing ServicesStop ...
Disabling laptop mode...done (disabled, not active.).
hibernate: [30] Executing XStatusProgress ...
hibernate: [40] Executing XStatusProgress ...
hibernate: [45] Executing FSTypesUnmount ...
hibernate: [50] Executing XStatusProgress ...
hibernate: [55] Executing PCMCIAEject ...
hibernate: Ejecting PCMCIA cards
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 ModulesUnload ...
Unloading module nvram failed!
hibernate: [90] Executing XStatusProgress ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [95] Executing XStatusProgress ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing XStatusProgressKill ...
hibernate: [99] Executing DoSysfsPowerStateSuspend ...
hibernate: Activating sysfs power state disk ...
hibernate: [95] Executing XStatusResumeBegin ...
hibernate: [90] Executing XStatusProgress ...
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: [60] Executing XStatusProgress ...
hibernate: [60] Executing NetworkStart ...
hibernate: [59] Executing RemountXFSBootRW ...
hibernate: [55] Executing PCMCIAInsert ...
hibernate: Inserting PCMCIA cards /usr/kde/*/bin
hibernate: [50] Executing XStatusProgress ...
hibernate: [40] Executing XStatusProgress ...
hibernate: [30] Executing XStatusProgress ...
hibernate: [30] Executing ServicesStart ...
Enabling laptop mode...done (enabled, active.).
hibernate: [20] Executing XStatusProgress ...
hibernate: [20] Executing MiscLaunchAuxFunc2 ...
Executing echo "Good morning!"...
Good morning!
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 Thu Dec 20 07:03:44 CET 2007

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.15.3 (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

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

Versions of packages hibernate recommends:
ii  dash                   0.5.3-7           The Debian Almquist Shell
ii  hdparm                 7.7-1             tune hard disk parameters for high
ii  uswsusp                0.3~cvs20060928-7 tools to use userspace software su
ii  vbetool                0.7-1.1           run real-mode video BIOS code to a

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to