Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend2-Sources:no actual poweroff but insta-resume[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cyberwizzard
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 244
Location: Norway

PostPosted: Sun Jun 24, 2007 2:21 am    Post subject: Suspend2-Sources:no actual poweroff but insta-resume[SOLVED] Reply with quote

Hi,

I'm running the suspend2-sources on my laptop (2.6.21-r6) and the hibernation seems to work fine: computer start the hibernation process, even blanks the screen.... and then turns the screen back on and resumes right after the screen went black... So it won't actually power off my machine. This usually is a sign that something went wrong but I can't find in the logs what that something might be. I tried updating my kernel, turning compression on/off, changing the power down ACPI mode (3 to 5) - nothing seems to help.

I got a log of a hibernate attempt using log level 5: http://sportlaan.adsl.utwente.nl/hibernate-debug.log
(Its rather big, 85k big, so I don't think it would be polite to post it in the forum :))

This is the part that I don't get: it wakes up just after the suspend command:
Code:

hibernate: [99] Executing DoSwsusp2 ...
+ '[' -n '' ']'
+ DoSwsusp2
+ local error
+ '[' -n '' ']'
+ '[' -z '' ']'
+ vecho 1 'hibernate: Activating suspend ...'
+ local v
+ v=1
+ shift
+ '[' x = x1 ']'
+ '[' 1 -le 5 ']'
+ echo hibernate: Activating suspend ...
hibernate: Activating suspend ...
+ SaveDmesg
++ mktemp /tmp/tmp.hibernate.XXXXXX
+ DMESG_ORIG=/tmp/tmp.hibernate.aQncnl
+ dmesg
+ return 0
++ DoSuspend
++ '[' -f /sys/power/suspend2/do_suspend ']'
++ echo
++ read REPLY
++ echo 0
++ return 0
+ error=0
+ '[' -n 0 ']'
+ '[' 0 -ne 0 ']'
+ PrintErrors 0
+ local code bit_num
+ code=0
+ '[' -n 0 ']'
+ '[' 0 -eq 0 ']'
+ return 0
+ '[' -n '' ']'
+ CleanupDmesg
+ '[' -n /tmp/tmp.hibernate.aQncnl ']'
+ rm -f /tmp/tmp.hibernate.aQncnl
+ return 0
+ '[' -f /sys/power/suspend2/freezer_test ']'
+ echo 0
+ '[' -n '' ']'
+ return 0
+ ret=0
+ '[' 0 -ge 2 ']'
+ '[' 0 -gt 0 ']'
+ '[' -n '' ']'
++ SortResumeBits
++ /bin/echo -ne '85XHacksResumeHook2\n11XHacksResumeHook1\n97VbetoolRestoreState\n60NetworkStart\n91GentooModulesAutoload\n90...
...ModulesLoad\n11RestoreGrubMenu\n70ClockRestore\n98FullSpeedCPUResume\n97ChangeFromSwsuspVT\n59RemountXFSBootRW\n89Restore...
...KernelModprobe\n01NoteLastResume\n01LockFilePut\n'
++ sort -rn
+ for bit in '`SortResumeBits`'
++ awk 'BEGIN{print substr("98FullSpeedCPUResume", 1, 2)}'
+ THIS_POS=98
+ '[' -z 98 ']'
+ bit=FullSpeedCPUResume
+ '[' 98 -gt 99 ']'
+ vecho 1 'hibernate: [98] Executing FullSpeedCPUResume ... '


Last edited by Cyberwizzard on Wed Jun 27, 2007 9:24 am; edited 1 time in total
Back to top
View user's profile Send private message
xalan
Apprentice
Apprentice


Joined: 01 Feb 2005
Posts: 190

PostPosted: Wed Jun 27, 2007 4:51 am    Post subject: Reply with quote

What is the PowerdownMethod in /etc/hibernate/suspend2.conf set to? If it is unset can you set it to 5 and see if it works?
Back to top
View user's profile Send private message
Cyberwizzard
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 244
Location: Norway

PostPosted: Wed Jun 27, 2007 9:24 am    Post subject: Reply with quote

I already had it set to 5 :)

But I got it to work - the dmesg output revealed that the swap writer wasn't working properly. So after compiling it into the kernel it worked!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum