swsusp+Suspend2

tom tompelka na atlas.cz
Pondělí Listopad 14 18:44:48 CET 2005


Pavel Machek wrote:
> Ahoj!
> 
> 
>>1)Ma nekdo pls zkusenosti se Suspend2, projevuje se mi zajimava chyba. 
>>Po opatchovani, skompilovani noveho jadra 2.6.14 (vanila), swsuspend2 
>>2.2-rc.9 a pridanim resume2=swap:/dev/hda# do menu.lst. Se zacnou dit 
>>velmi divne veci:-( Po prihlaseni do X se jakoby kurzor mysi zafocusuje 
>>do prvniho okna do ktereho kliknu a nejde mezi onky prepinat (pomoci 
>>mysi). Kurzor se normalne pohybuje. Vubec mi to nejde do hlavy, proto 
>>prosim o pomoc. Po odstraneni resume2=swap:/dev/hda# opet vse v poradku.
>>
>>2)Dalsim problemem swsusp.
>>echo 4 > /proc/acpi/sleep
>>sice notebook uspi ale po probuzeni, problikne obrazovka a pak uz 
>>nasleduje jen cerno:-(
> 
> 
> Je to suspend nebo suspend2? Jaka verse jadra? Co to udela v textovym
> rezimu?
> 
> 
> 
Na suspend sem se vykaslal, takze ted se snazim rozchodit suspend2, vyse 
popsany problem s mysi odstranen.
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.
---------------------------------------------------------
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




Další informace o konferenci Linux