View previous topic :: View next topic |
Author |
Message |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Mon Oct 05, 2009 6:09 pm Post subject: Tuxonice stopped working with kernel upgrade to 2.6.31 |
|
|
I have had Tuxonice working reliably on an amd64 system with 2.6.30 for a month, after it worked well on 2.6.29 for about four months. Though it refused to recognize that LZO compression existed with 2.6.30, it hibernated without using compression. So I upgraded the kernel to try to overcome this problem. Now it hangs when I try to hibernate.
Hardware: Dell Latitude D520 with Core 2 Duo CPU and Intel 945GM graphics.
From /var/log/hibernate.log:
Code: | Starting suspend at Mon Oct 5 11:48:44 CDT 2009
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: [12] Executing FBSplashStartSuspend ...
hibernate: [12] Executing SplashStartSuspend ...
/proc/splash not found. Bootsplash disabled.
hibernate: [20] Executing FBSplashProgress ...
hibernate: [20] Executing SplashProgress ...
hibernate: [30] Executing FBSplashProgress ...
hibernate: [30] Executing SplashProgress ...
hibernate: [40] Executing FBSplashProgress ...
hibernate: [40] Executing SplashProgress ...
hibernate: [50] Executing FBSplashProgress ...
hibernate: [50] Executing SplashProgress ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [60] Executing FBSplashProgress ...
hibernate: [60] Executing SplashProgress ...
hibernate: [70] Executing FBSplashProgress ...
hibernate: [70] Executing SplashProgress ...
hibernate: [80] Executing FBSplashProgress ...
hibernate: [80] Executing SplashProgress ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [90] Executing FBSplashProgress ...
hibernate: [90] Executing SplashProgress ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [94] Executing FBSplashProgress ...
hibernate: [95] Executing SplashProgress ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToTuxOnIceVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing EnableSwsuspBootsplash ...
hibernate: [98] Executing FullSpeedCPUSuspend ...
hibernate: [98] Executing TuxOnIceConfigSet ...
FATAL: Module lzo not found.
Warning: Chosen TuxOnIce compressor (lzo) is not available. Compression disabled.
hibernate: [99] Executing DoTuxOnIce ...
hibernate: Activating TuxOnIce ...
(END)
|
From .config:
Code: | les@m2 /usr/src/linux $ grep LZO .config
CONFIG_JFFS2_LZO=y
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
CONFIG_CRYPTO_LZO=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
|
Any suggestions? |
|
Back to top |
|
 |
albright Advocate


Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Mon Oct 05, 2009 6:31 pm Post subject: |
|
|
I doubt that the compressor is your problem. What happens if you
comment out the compressor line in hibernate.conf? _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Mon Oct 05, 2009 7:10 pm Post subject: |
|
|
Quote: | I doubt that the compressor is your problem. What happens if you
comment out the compressor line in hibernate.conf? |
It suspends and restores correctly, without, of course, using compression.
I think the compressor must be the problem. |
|
Back to top |
|
 |
albright Advocate


Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Tue Oct 06, 2009 1:23 am Post subject: |
|
|
sorry for th red herring - on my system without lzo I get the
"disabling" message but hibernation proceeds to work fine ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Tue Oct 06, 2009 2:05 am Post subject: |
|
|
The disabling message was what I got with 2.6.30. But with LZO commented out now in 2.6.31, I now seem to be getting perfectly working suspend and resume, and it does both about three times faster than with 2.6.30.
So thanks for the red herring.
But I'd still like to know why LZO is not working. |
|
Back to top |
|
 |
DaggyStyle Watchman


Joined: 22 Mar 2006 Posts: 5941
|
Posted: Tue Oct 06, 2009 3:38 pm Post subject: |
|
|
where are you suspending to? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Tue Oct 06, 2009 5:28 pm Post subject: |
|
|
The location (specified on the grub.conf kernel line) is /dev/sda7 which is a 1GB swap partition. |
|
Back to top |
|
 |
DaggyStyle Watchman


Joined: 22 Mar 2006 Posts: 5941
|
Posted: Tue Oct 06, 2009 5:57 pm Post subject: |
|
|
post your config files _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Tue Oct 06, 2009 6:45 pm Post subject: |
|
|
tuxonice.conf (comments omitted)
Code: | UseTuxOnIce on
Reboot no
EnableEscape on
DefaultConsoleLevel 0
Encryptor none
ImageSizeLimit nocache
FullSpeedCPU on
Include common.conf |
common.conf (comments omitted)
Code: | Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 3
Distribution gentoo
SaveClock restore-only
FBSplash on
FBSplashTheme suspend2
UnloadBlacklistedModules yes
LoadModules auto
|
|
|
Back to top |
|
 |
DaggyStyle Watchman


Joined: 22 Mar 2006 Posts: 5941
|
Posted: Tue Oct 06, 2009 7:04 pm Post subject: |
|
|
your missing something, add
to /etc/hibernate/tuxonice.conf and retry again _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Tue Oct 06, 2009 8:13 pm Post subject: |
|
|
Interesting. Now it works with LZO compression. But on my trial run, with the compression takes about two seconds longer, both on the suspend and the restore. Is that normal?
I still have no idea why it would hang previously, giving the error message (copied from the log file)
Code: | FATAL: Module lzo not found. | I haven't touched the kernel. |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Wed Oct 07, 2009 1:14 pm Post subject: |
|
|
Now it has stopped hibernating again.
From messages:
Code: | Oct 6 22:38:08 m2 sudo: les : TTY=unknown ; PWD=/home/les/Documents ; USER=root ; COMMAND=/usr/sbin/hibernate
Oct 6 22:38:08 m2 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 6 22:38:08 m2 sudo: pam_unix(sudo:session): session closed for user root
Oct 6 22:38:12 m2 [ 7963.199836] TuxOnIce 3.0.1, with support for [usm], [swap storage], [file storage], checksumming, compression, userui.
Oct 6 22:38:12 m2 [ 7963.199921] Initiating a hibernation cycle. |
From hibernate.log
Code: | Starting suspend at Tue Oct 6 22:38:09 CDT 2009
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: [12] Executing FBSplashStartSuspend ...
hibernate: [20] Executing FBSplashProgress ...
hibernate: [30] Executing FBSplashProgress ...
hibernate: [40] Executing FBSplashProgress ...
hibernate: [50] Executing FBSplashProgress ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [60] Executing FBSplashProgress ...
hibernate: [70] Executing FBSplashProgress ...
hibernate: [80] Executing FBSplashProgress ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [90] Executing FBSplashProgress ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [94] Executing FBSplashProgress ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToTuxOnIceVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing FullSpeedCPUSuspend ...
hibernate: [98] Executing TuxOnIceConfigSet ...
hibernate: [99] Executing DoTuxOnIce ...
hibernate: Activating TuxOnIce ...
|
(end of file)
I'll disable compression and try it again. |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Wed Oct 07, 2009 1:20 pm Post subject: |
|
|
Works without compression. I'll crank up the log level and see if I get any ideas. |
|
Back to top |
|
 |
kly84g n00b

Joined: 31 Aug 2004 Posts: 55 Location: Houston
|
Posted: Wed Oct 07, 2009 1:56 pm Post subject: |
|
|
With LogVerbosity set to 4, and lzo compression re-enabled, it works normally (once, anyway). But I can see now that the uncompressed size is under 100 megabytes, less than 10% of my swap space, so I'm leaving it with no compression until it gives some trouble. It's faster, and seems more reliable. |
|
Back to top |
|
 |
z0ny Tux's lil' helper


Joined: 19 Mar 2005 Posts: 102 Location: Germany
|
Posted: Mon Nov 23, 2009 7:56 am Post subject: |
|
|
Unfortunately I am having a similar issue. I am not exactly sure when it stopped working, my *guess* is after the udev update some days ago. My current kernel is 2.6.31.5 (vanilla-sources).
tuxonice.conf
Code: | UseTuxOnIce on
Reboot no
EnableEscape on
DefaultConsoleLevel 1
Compressor none
Encryptor none
FullSpeedCPU on
Include common.conf |
common.conf
Code: | Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 3
Distribution gentoo
SaveClock restore-only
UnloadBlacklistedModules yes
LoadModules auto
RestartServices alsasound
SwitchToTextMode yes |
hibernate.log
Code: | Starting suspend at Mon Nov 23 08:24:58 CET 2009
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: [30] Executing ServicesStop ...
Executing /etc/init.d/alsasound stop
[32;01m*[0m Storing ALSA Mixer Levels ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
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
Module version for ipw2200 is
Module version for snd_bt_sco is
Module version for ndiswrapper is 79616
hibernate: [95] Executing XHacksSuspendHook2 ...
xhacks: changing console from 1 to 15
hibernate: [97] Executing ChangeToTuxOnIceVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing FullSpeedCPUSuspend ...
Switched to performance, with min freq at 1801000
Switched to performance, with min freq at 1801000
hibernate: [98] Executing TuxOnIceConfigSet ...
hibernate: [99] Executing DoTuxOnIce ...
hibernate: Activating TuxOnIce ... |
The result after trying to hibernate is a hanging TuxOnIce text UI when doing the atomic copy/restore (at 42/80MB?). Enabling the compression does not help. Any ideas how to debug this? Thanks in advance. _________________ Old C programmers never die. They're just cast into void. |
|
Back to top |
|
 |
z0ny Tux's lil' helper


Joined: 19 Mar 2005 Posts: 102 Location: Germany
|
Posted: Mon Nov 23, 2009 3:59 pm Post subject: |
|
|
Never mind, upgrading to 2.6.31.6 solved the problem. _________________ Old C programmers never die. They're just cast into void. |
|
Back to top |
|
 |
|