You are not logged in.

#1 2010-06-19 14:01:22

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Strange hibernation problem.

Hi all,
I use kernel26-ice 2.6.33-6 and hibernation works definitely better than stock one, at least on asus 1005ha.
But sometimes it just won't suspend, and the reason is unknown to me; what happens is that it simply does nothing.
I've checked hibernate.log and found this:

Starting suspend at ven 18 giu 2010, 17.03.27, CEST
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
Resumed at ven 18 giu 2010, 17.03.27, CEST

As you see, at the same second it logs an hibernation and a resume, which is impossible.

Here's the log of a successfull hibernation instead:

Starting suspend at ven 18 giu 2010, 17.52.48, CEST
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureTuxOnIceCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [89] Executing SaveKernelModprobe ...
Saved /proc/sys/kernel/modprobe is /sbin/modprobe
hibernate: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
Module version for ipw2100 is 66050  
Module version for ipw2200 is 66050
Module version for snd_bt_sco is
Module version for ndiswrapper is
Unloading blacklisted module mac80211 (and dependencies)
Unloading ath9k ...
Removing modules with rmmod.
Unloading ath9k_common ...
Unloading mac80211 ...
Unloading blacklisted module uvcvideo (and dependencies)
Unloading uvcvideo ...
xhacks: changing console from 7 to 15
hibernate: [97] Executing ChangeToTuxOnIceVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing FullSpeedCPUSuspend ...
Switched to performance, with min freq at 1667000
Switched to performance, with min freq at 1667000
hibernate: [98] Executing TuxOnIceConfigSet ...
hibernate: [99] Executing DoTuxOnIce ...
hibernate: Activating TuxOnIce ...   
hibernate: [98] Executing FullSpeedCPUResume ...
hibernate: [97] Executing ChangeFromTuxOnIceVT ...
hibernate: [90] Executing ModulesLoad ...
Loading module ath9k (from auto)...  
Loading module ath9k_common (from auto)...
Loading module mac80211 (from auto)...
Loading module uvcvideo (from auto)...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
xhacks: changing console back to 7
hibernate: [70] Executing ClockRestore ...
hibernate: [59] Executing RemountXFSBootRW ...
hibernate: [11] Executing XHacksResumeHook1 ...
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
Resumed at ven 18 giu 2010, 20.03.42, CEST

I suspect this issue has nothing to do with tuxonice, because in the first case it just stops some steps before calling any tuxonice related function, in fact it seems something wrong happens between.
hibernate: [01] Executing LockFileGet ...
and:
hibernate: [01] Executing NewKernelFileCheck ...

Does anyone has a clue about this?

Thanks in advance.

Last edited by kokoko3k (2010-06-19 14:02:45)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2010-06-22 09:11:45

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Strange hibernation problem.

By highering verbosity to 10 in hibernate-scripts, i'm seeing strange segmentation fault messages, but apart from them, the system seems perfectly stable.
Maybe i'll write a little loop which checks how much time passed between suspend and resume, and if it is ridicously low, tries to suspend again (for a limited number of times, of course)...

Anyway, If anybody has a better idea, it still would be fine

-EDIT-
In the end did so, and it works well.
Still i haven't understood the root of the issue.

If anyone is interested, here's the skeleton of the loop:

#!/bin/bash

TOLLERANZA=10  # <- how many seconds (a maximum time) has to pass to detect a failed hibernation?
TENTATIVI=3 # <- How many times do we have to try?

SCARTO=0 # <- The time passed between the hibernation and the resume
while (( $SCARTO < $TOLLERANZA )); do
        TIME1=$(date +%s)                                     
        ##Hibernation command and quirks goes here                 <-----             
        sleep 2  #<- sleeping some time seems to be necessary to this specific problem
        TIME2=$(date +%s)                                      
        SCARTO=$(($TIME2-$TIME1))                     
        TENTATIVI=$(($TENTATIVI-1))
        if (( $TENTATIVI == 0 ))
        then
                echo "3 tryes reached, exiting."
                break
        fi
done

Last edited by kokoko3k (2010-06-28 10:07:32)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB