LINUX.ORG.RU

Не получается заставить работать

 ,


0

1

Суть проблемы в чем: hibernate -F /etc/hibernate/tuxonice.conf должен сваливать компьютер в гибернацию. Но этого не происходит. Копипаста:

[root@lenovo-sielab kostett]# hibernate -F /etc/hibernate/tuxonice.conf
hibernate: TuxOnIce reported the following errors:
 - TuxOnIce was aborted (see dmesg).
 - Freezing processes failed. Wacky driver problems :( (see dmesg)
[root@lenovo-sielab kostett]# tail /var/log/dmesg.log 
[   10.386206] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input10
[   10.386271] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[   10.386358] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[   10.386396] ACPI Warning: 0x00001c00-0x00001c1f SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 1 (20120111/utaddress-251)
[   10.386404] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   10.974285] EXT4-fs (sda7): re-mounted. Opts: (null)
[   11.028867] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[   11.292521] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[   11.459608] fuse init (API version 7.18)
[   11.848657] Adding 4882428k swap on /dev/sda6.  Priority:-1 extents:1 across:4882428k 
[root@lenovo-sielab kostett]# cat /var/log/dmesg.log | grep TuxOnIce
[    0.701350] TuxOnIce 3.2.1 (http://tuxonice.net)
[    0.701499] TuxOnIce: No storage allocators have been registered. Hibernating will be disabled.
[    0.701525] TuxOnIce: No storage allocators have been registered. Hibernating will be disabled.
[    0.701527] TuxOnIce: No storage allocators have been registered.
[root@lenovo-sielab kostett]# cat /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch Linux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=swap:/dev/sda6:sector"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x800x32

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-blue/black"
GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
[root@lenovo-sielab kostett]# cat /etc/hibernate/hibernate.conf 
# hibernate.conf is split into separate configuration files.
# 
# Each file is tried in the order below, until an available suspend
# method is found.
# 
# Options specific to a particular suspend method should be placed in the
# appropriate configuration file (tuxonice.conf, ususpend.conf, disk.conf
# or ram.conf).
# Options common to all suspend methods should be placed in common.conf.
#
# See hibernate.conf(5) for help on the configuration items.

TryMethod tuxonice.conf
#TryMethod disk.conf
#TryMethod ram.conf
[root@lenovo-sielab kostett]# cat /etc/hibernate/tuxonice.conf 
# Example tuxonice.conf file.
# 
# See hibernate.conf(5) for help on the configuration items.
#
# NOTE: TuxOnIce is an improved version of suspend-to-disk which currently
#       requires patching your kernel. For more information, see www.tuxonice.net
# 
#       If you do not wish to patch your kernel but still be able to suspend to
#       disk, see disk.conf instead.

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

ProcSetting user_interface/program "/usr/sbin/tuxoniceui"      # Text interface

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

## 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 1000
# 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

Include common.conf
[root@lenovo-sielab kostett]# cat /etc/hibernate/common.conf 
# 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
#DirectIsa

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

### diskcache
# DisableWriteCacheOn /dev/hda

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

### filesystems
 Unmount /windisk
# 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 "Good night!"
# OnResume 20 echo "Good morning!"

### 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

### pidgin
 LogoutPidgin yes
 PidginRestoreStatus yes
# PidginLogoutMessage Hibernating - bye!
# PidginLoginMessage I'm back!

### SSH and PGP keys
# AgentsClearGPG yes
# AgentsClearSSH yes

### Virtualbox
# SuspendVirtualbox yes
[root@lenovo-sielab kostett]# cat /etc/mkinitcpio.conf 
# 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="lzo tuxonice_compress tuxonice_swap tuxonice_userui"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run first, so it may be used to
# override the actual binaries used in a given hook.
# (Existing files are NOT overwritten if already added)
# BINARIES are dependency 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 any way.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options
# like so:
#    FILES="/etc/modprobe.d/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
# '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 a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev pata mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    fsck and shutdown hooks.
HOOKS="base udev autodetect pata scsi sata resume filesystems usbinput fsck"

# 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. Kernels 2.6.38 and later support xz
# compression.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
[root@lenovo-sielab kostett]# 
ссорь за многабукаф. Не подскажете, что я делаю не так? //Arch Linux, linux-pf-3.3.1 из их репозитория

★★★

ответ в первых трех строках - TuxOnIce was aborted (see dmesg). - Freezing processes failed. Wacky driver problems :( (see dmesg)

TuxOnIce абортирован см. причину в dmesg

процесс Freezing убит по причине проблемы с драйвером см. причину в dmesg

ipwww ★★
()
Ответ на: комментарий от ipwww

понимал бы я его вывод..)
и что такое драйвер? Типа надо при сборке ядра модуль для работы со своп-разделом добавить или как?

kostett ★★★
() автор топика
Ответ на: комментарий от kostett

И что не ясно ?

[    0.701350] TuxOnIce 3.2.1 (http://tuxonice.net)
[    0.701499] TuxOnIce: No storage allocators have been registered. Hibernating will be disabled.
[    0.701525] TuxOnIce: No storage allocators have been registered. Hibernating will be disabled.
[    0.701527] TuxOnIce: No storage allocators have been registered.

kostik87 ★★★★★
()
Ответ на: комментарий от kostik87

ведрышко-то 3.3, не кернел никак.


menuentry 'Arch Linux GNU/Linux, с Linux pf kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-pf kernel-true-ce2f05ca-da6f-4e60-a762-3ad083e19c4c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' 13780b8e-2b94-47a8-8d96-51c028ff1dea
else
search --no-floppy --fs-uuid --set=root 13780b8e-2b94-47a8-8d96-51c028ff1dea
fi
echo	'Загружается Linux pf kernel …'
linux	/vmlinuz-linux-pf root=UUID=ce2f05ca-da6f-4e60-a762-3ad083e19c4c resume=swap:/dev/sda6:sector ro quiet
echo	'Загружается начальный виртуальный диск …'
initrd	/initramfs-linux-pf.img
}

делал как написано в таблице http://tuxonice.net/features

kostett ★★★
() автор топика
Ответ на: комментарий от ipwww

и что-то можно сказать на счет тобой просмотренного?

kostett ★★★
() автор топика
Ответ на: комментарий от kostik87

упс, сенкс за линк, увидел

For swap partitions like /dev/hda1, simply use resume=/dev/hda1.
For swapfile `swapfile`, use resume=swap:/dev/hda2:0x242d.

kostett ★★★
() автор топика
Ответ на: комментарий от kostett

kostett

resume=swap:/dev/sda6:sector

Вместо 'sector' должен быть номер сектора, насколько я понял. Попробуйте использовать отдельный файл.

kostik87 ★★★★★
()
Ответ на: комментарий от kostik87

ды не, це не то
исправил как ты говоришь, ребутнулся, попробовал свалиться в гибернацию (успешно) и включиться (просто включился, из свопа ничего не восстанавливал)
кат dmesg'а - http://pastebin.com/2fpfGtd3
писал чего-то больше, чем до того, как я сменил параметр запуска ядра в граб.цфг на верный

kostett ★★★
() автор топика

Оффтоп, не удаляйте сразу

maxcom, посмотри насколько сильно нужен тег «спойлер».

mopsene ★★★
()
Ответ на: комментарий от kostett

Ну, кстати, попробуй TOI всё-таки не модулями… Или же у меня подозрение, что те модули, которые прописаны в mkinitcpio.conf, не грузятся.

post-factum ★★★★★
()
Ответ на: комментарий от post-factum

O_o
блин, откуда я должен был узнать, как существует туксонайс?.. модулями, а чем еще? и вообще, где есть хороший и понятный мануал по его настройке вместе с ядром linux-pf?
ппц.. теперь ясно, почему его в ванильное ядро не включают

kostett ★★★
() автор топика
Ответ на: комментарий от post-factum

нуу, спасибо за уточнение и труд, но можно как-то намекнуть этому чуваку про недостаточность сборки? или есть техническая причина этому?

kostett ★★★
() автор топика
Ответ на: комментарий от post-factum

осознавал, думал, что работает из коробки =)

kostett ★★★
() автор топика
Ответ на: комментарий от post-factum

если попросит, то дам) пока что пускай просто включит в ядро недостающий модуль (или этот аллокатор не модуль?), зачем мозги загрязнять человеку, может и так заработает..

kostett ★★★
() автор топика

красноглазие ради красноглазия

anonymous
()
Ответ на: комментарий от kostett

У меня, например, ванильная гибернация и так неплохо работает. Разве что без визуализации.

post-factum ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.