swsuspend2


To "czdebian-l zavinac debian bod cz" <czdebian-l zavinac debian bod cz>, tompelka zavinac atlas bod cz
From Tomas Pelka <tompelka zavinac atlas bod cz>
Date Mon, 14 Nov 2005 18:51:02 +0100
User-agent Debian Thunderbird 1.0.7 (X11/20051017)

Zdravim nema nekdo zkusenosti se Swsuspend2??
Kernel 2.6.14, Swsuspend2 patch_2.2-rc.9, Hibernate Script 1.12
No a problem je ze PC sice uspim ale uz neprobudim (cerna obrazovka, ani disk nehrabe), vyuzivam PowerdownMethod 3. Mam jeste dotaz, jak by mela fungovat PowerdownMethod 5, ta mi funguje avsak PC po znovuzapnuti bootuje vse odzacatku, nechapu??
---------------------------------------------------------
cat /boot/grub/menu.lst :

title           Debian GNU/Linux, kernel 2.6.14
root            (hd0,6)
kernel /vmlinuz-2.6.14 root=/dev/hda12 ro reboot=b resume2=swap:/dev/hda8
initrd          /initrd.img-2.6.14
savedefault
---------------------------------------------------------

pouzivam initrd, tudiz sem si do /etc/mkinitrd/scripts/ pridal skript resume2 a znovu vygeneroval initrd:
$ mkinitrd -o /boot/initrd.img-2.6.14 2.6.14

$ cat /etc/mkinitrd/scripts/resume2 :

#!/bin/sh
cat <<EOF >>$INITRDDIR/script
if [ -z "\$noresume" ]; then # be careful with the 'dollar' sign
   echo >/proc/software_suspend/do_resume
   umount -n devfs
   umount -n proc
fi
EOF

----------------------------------------------------------
cat /proc/swaps :

Filename Type Size Used Priority
/dev/hda8                               partition       497972  0   \    -1
swap zapinam v konfiguraku hibernate, takto:
### misclaunch
OnSuspend 10 swapon -a
OnSuspend 20 echo "Good night!"
OnResume 20 echo "Good morning!"


------------------------------------------------------------
$ hibernate -n
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
hibernate: [10] Executing MiscLaunchAuxFunc1 ...
Executing swapon -a...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [20] Executing MiscLaunchAuxFunc2 ...
Executing echo "Good night!"...
Good night!
hibernate: [55] Executing PCMCIAEject ...
hibernate: Ejecting PCMCIA cards
open_sock(): No such device
hibernate: [60] Executing NetworkStop ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [91] Executing LockXScreensaver ...
Locking tom's xscreensaver on display :0.0 using authority file /home/tom/.Xauthority
xscreensaver-command: xscreensaver window unexpectedly deleted.
Failed to activate xscreensaver on :0.0 using authority file /home/tom/.Xauthority.
hibernate: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
Unloading blacklisted module psmouse (and dependencies)
Unloading blacklisted module ehci_hcd (and dependencies)
Unloading blacklisted module uhci_hcd (and dependencies)
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToSwsuspVT ...
hibernate: [97] Executing VbetoolSaveState ...
'vbetool' utility not found. Vbetool disabled.
hibernate: [98] Executing Swsusp2ConfigSet ...
hibernate: [99] Executing DoSwsusp2 ...
hibernate: Not actually suspending (--no-suspend given)
hibernate: [97] Executing VbetoolRestoreState ...
hibernate: [97] Executing ChangeFromSwsuspVT ...
hibernate: [90] Executing ModulesLoad ...
Loading module psmouse (from auto)...

Loading module ehci_hcd (from auto)...
Loading module uhci_hcd (from auto)...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
hibernate: [70] Executing ClockRestore ...
open_sock(): No such device
hibernate: [60] Executing NetworkStart ...
hibernate: [55] Executing PCMCIAInsert ...
hibernate: Inserting PCMCIA cards
hibernate: [30] Executing UnlockXScreensaver ...
Unlocking tom's xscreensaver on display :0.0 using authority file /home/tom/.Xauthority
xscreensaver-command: no response to command.
Unlocking tom's xscreensaver on display :0.0 using authority file /home/tom/.Xauthority
xscreensaver-command: not active: idle timer reset.

hibernate: [20] Executing MiscLaunchAuxFunc3 ...
Executing echo "Good morning!"...
Good morning!
hibernate: [11] Executing XHacksResumeHook1 ...
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...


dik za odpovedi



Partial thread listing: