You are not logged in.

#1 2010-09-13 16:14:37

perfector
Member
Registered: 2010-08-09
Posts: 19

[Solved] Need to get Tuxonice working - kernel26-zen

I'm trying to get tuxonice to work for a while now. I somehow have manged to hibernate it successfully but it just does not resume. It does a normal boot every time. I'm using the kernel26-zen kernel. I'm attaching as much info as possible, hoping that someone can find a solution if it's not configured correctly.

$ dmesg | grep -i tux
TuxOnIce 3.2-rc1 (http://tuxonice.net)
TuxOnIce: Can't translate "/dev/sda5" into a device id yet.

related grub entry:

title  Arch Linux ZEN
root   (hd0,1)
kernel /vmlinuz26-zen root=/dev/disk/by-uuid/a39731bb-fc4d-47c6-a746-6600f7ef4e1e ro usbcore.autosuspend=1 i915.modeset=1 resume=/dev/sda5
initrd /kernel26-zen.img

/etc/hibernate/hibernate.conf contents:

TryMethod tuxonice.conf
TryMethod ususpend-disk.conf
TryMethod suspend2.conf
TryMethod disk.conf
TryMethod ram.conf

/etc/hibernate/common.conf contents

# Configuration options common for suspending to disk or RAM.
# Options are not case sensitive.
# 
# See hibernate.conf(5) for help on the configuration items.

##############################################################################
### Some global settings
##############################################################################

Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
LogTimestamp yes
# AlwaysForce yes
# AlwaysKill yes
# HibernateVT 15
Distribution arch
# XDisplay :0

##############################################################################
### Scriptlets
###   Scriptlets provide support for doing all sorts of things before and after
###   suspending. The defaults settings here should work for most people, but
###   you may wish to edit these to taste. Consult "hibernate -h" for help on
###   the configuration settings.
##############################################################################

### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg

### clock
SaveClock restore-only

### devices
# IncompatibleDevices /dev/dsp /dev/video*

### diskcache
# DisableWriteCacheOn /dev/hda

### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2

### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
Unmount /media/dump
UnmountFSTypes smbfs nfs
UnmountGraceTime 1
# Mount /windows

### grub
# ChangeGrubMenu yes
GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak

# see http://bugs.debian.org/317479
# RemountXFSBoot yes

### hardware_tweaks
# IbmAcpi yes
# RadeonTool yes
Runi915resolution yes
FullSpeedCPU yes

### lilo
# EnsureLILOResumes yes

### lock (generally you only want one of the following options)
## For console you need vlock available.
## For x you need xscreensaver-command-command available.
## For gnome you need gnome-screensaver-command available.
## For kde you need dcop, kscreensaver available.
## For XAuto you need xautolock available.
## For Xtr you need xtrlock available.
## For Freedesktop (for example KDE4) you need dbus-send available
# LockConsoleAs root
# LockXScreenSaver yes
# LockGnomeScreenSaver yes
# LockFreedesktop
# LockKDE yes
# LockXLock yes
# LockXAutoLock yes
# LockXtrLock yes

### misclaunch
# OnSuspend 20 echo "See ya soon"
OnResume 20 echo "Welcome back Stan."

### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules

### modules-gentoo
# GentooModulesAutoload yes

### network
# DownInterfaces eth0
# UpInterfaces auto

### networkmanager
EnableNMReconnect yes

### pause_audio
MuteAudio yes
PauseAudio yes

### pcmcia
# EjectCards yes

### programs
# IncompatiblePrograms xmms

### services
# RestartServices laptop_mode anacron
# StopServices alsasound
# StartServices aumix

### vbetool
#EnableVbetool yes
#RestoreVbeStateFrom /var/lib/vbetool/vbestate
#VbetoolPost yes
#RestoreVCSAData yes

### xhacks
#SwitchToTextMode yes
#UseDummyXServer yes
#DummyXServerConfig xorg-dummy.conf

### xstatus
## This can be set to gnome, kde or x:
## For gnome you need zenity available.
## For kde you need dcop, kstart, kdialog available.
## For x you need to have xosd OR xmessage available.
# XStatus gnome
# XmessageDisable yes
# XSuspendText Preparing to suspend...
# XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
# XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50

### xbacklight
# BackLight yes

### gaim
## You need to have dbus, gaim_remote available.
# LogoutGaim yes
# GaimRestoreStatus yes
# GaimLogoutMessage Hibernating
# GaimLoginMessage Back from hibernation

/etc/hibernate/tuxonice.conf contents

### TuxOnIce
UseTuxOnIce yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzo
Encryptor none
# ImageSizeLimit 200

## useful for initrd usage:
SuspendDevice swap:/dev/sda5

## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
# PowerdownMethod 5

## Any other /proc/software_suspend setting can be set like so:
# ProcSetting expected_compression 50

## Or traditionally like this:
# TuxOnIceAllSettings 0 0 2056 65535 5

## Or even from the results of hibernate --save-settings with this:
# TuxOnIceAllSettingsFile /etc/hibernate/suspend-settings.conf

## For filewriter:
#FilewriterLocation /suspend_file 3000
# VerifyFilewriterResume2 yes

## Specify a userui like this:
ProcSetting userui_program /usr/local/sbin/tuxoniceui_text

# Scale CPU to full speed to make sure we suspend as fast as possible.
FullSpeedCPU yes

ProcSetting user_interface/program /usr/sbin/tuxoniceui_text       # Text interface

Include common.conf

/etc/mkinitcpio.conf contents

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="intel_agp i915 lzo"

# BINARIES
# This setting includes, into the CPIO image, and additional
# binaries a given user may wish.  This is run first, so may
# be used to override the actual binaries used in a given hook.
# (Existing files are NOT overwritten is already added)
# BINARIES are dependancy parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in anyway.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options,
# like so:
#    FILES="/etc/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'modload' may be used in place of 'udev', but is not recommended
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
#    This setup specifies all modules in the MODULES setting above.
#    No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
#    This setup will autodetect all modules for your system and should
#    work as a sane default
#    HOOKS="base udev autodetect pata scsi sata filesystems"
#
#    This is identical to the above, except the old ide subsystem is
#    used for IDE devices instead of the new pata subsystem.
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
#    This setup will generate a 'full' image which supports most systems.
#    No autodetection is done.
#    HOOKS="base udev pata scsi sata usb filesystems"
#
#    This setup assembles an pata raid array with an encrypted root FS.
#    Note: See 'mkinitcpio -H raid' for more information on raid devices.
#    HOOKS="base udev pata raid encrypt filesystems"
#
#    This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
HOOKS="base udev autodetect sata userui resume filesystems"

# COMPRESSION
# Use this to compress the initramfs image. With kernels earlier than
# 2.6.30, only gzip is supported, which is also the default. Newer kernels
# support gzip, bzip2 and lzma.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"

This laptop runs on 3GB ram and has 6GB swap space. I hope this info is sufficient.

Last edited by perfector (2010-09-14 09:06:53)

Offline

#2 2010-09-13 16:53:08

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [Solved] Need to get Tuxonice working - kernel26-zen

Just a wild guess here: Try putting "resume=" in menu.lst as "by-uuid" like you have with the root partition.
Also, that 6GB swap partition you got is a pure waste or resources. You need 3GB of swap max, and that is only if you want to store all your cache when you hibernate. If not, you don't even need a swap. If you're a normal user (means, you're not using some resource heavy apps, like those for editing HD vids or similar).

Cheers.

Offline

#3 2010-09-13 17:38:55

perfector
Member
Registered: 2010-08-09
Posts: 19

Re: [Solved] Need to get Tuxonice working - kernel26-zen

archman-cro wrote:

Just a wild guess here: Try putting "resume=" in menu.lst as "by-uuid" like you have with the root partition.

Nope, that didn't help. now the dmesg related lines appear as:

TuxOnIce 3.2-rc1 (http://tuxonice.net)
TuxOnIce: Can't translate "/dev/disk/by-uuid/4564e7cd-aa5b-4b41-a7b5-20db4069bf1b" into a device id yet.

Also, that 6GB swap partition you got is a pure waste or resources. You need 3GB of swap max, and that is only if you want to store all your cache when you hibernate. If not, you don't even need a swap. If you're a normal user (means, you're not using some resource heavy apps, like those for editing HD vids or similar).

Sadly I realized that quite late sad Can't do a thing about it now.

Offline

#4 2010-09-13 17:48:41

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [Solved] Need to get Tuxonice working - kernel26-zen

Ok, the thing is that zen kernel creates /etc/mkinitcpio-zen.conf, and there's probably no "resume" flag in it. Put that in, and reinstall the kernel with that conf file. smile
Those "Can't translate" dmesg messages are irrelevant, since I get those too (tried now) and my hibernation is working.
Just try the above, it should work.

Cheers!! big_smile

Offline

#5 2010-09-14 05:55:29

perfector
Member
Registered: 2010-08-09
Posts: 19

Re: [Solved] Need to get Tuxonice working - kernel26-zen

archman-cro wrote:

Ok, the thing is that zen kernel creates /etc/mkinitcpio-zen.conf, and there's probably no "resume" flag in it. Put that in, and reinstall the kernel with that conf file. smile
Those "Can't translate" dmesg messages are irrelevant, since I get those too (tried now) and my hibernation is working.
Just try the above, it should work.

100% working solution. smile Thanks a million archman-cro, I simply symlinked /etc/mkinitcpio-zen.conf to /etc/mkinitcpio.conf. It just works beautifully now.

Offline

#6 2010-09-14 07:37:58

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [Solved] Need to get Tuxonice working - kernel26-zen

Heh, awesome, have fun! Mark the thread as [Solved], btw.

Cheers! smile

Offline

#7 2010-09-14 09:02:17

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [Solved] Need to get Tuxonice working - kernel26-zen

Just an OT question. Where did you install kernel26-zen from?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#8 2010-09-14 09:15:34

perfector
Member
Registered: 2010-08-09
Posts: 19

Re: [Solved] Need to get Tuxonice working - kernel26-zen

SanskritFritz wrote:

Just an OT question. Where did you install kernel26-zen from?

AUR

Offline

Board footer

Powered by FluxBB