Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291688 - sys-power/hibernate-script 2.0-r1 does not work
Summary: sys-power/hibernate-script 2.0-r1 does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-03 11:55 UTC by water
Modified: 2013-01-12 16:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my kernel config file (kernel.config,66.65 KB, text/plain)
2009-11-26 16:21 UTC, water
Details
/var/log/hibernate.log (hibernate.log,7.36 KB, text/plain)
2009-11-26 16:25 UTC, water
Details

Note You need to log in before you can comment on or make changes to this bug.
Description water 2009-11-03 11:55:38 UTC
my computer is thinkpad w500.
I can not use `hibernater' and 'hibernate-ram' in gnome-terminal with root user.

below is my emerge --info.

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9600_@_2.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 03 Nov 2009 09:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://61.135.158.199"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en zh zh_CN zh_TW"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/devnull /usr/local/portage/layman/sectools"
SYNC="rsync://61.135.158.199/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 asf avahi bash-completion berkdb bitmap-fonts blas bzip2 cdparanoia cdr chm cjk cli cracklib crypt cups dbus divx4linux dri dv dvd dvdread emacs encode examples exif ffmpeg firefox flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gtk hal hdaps iconv ieee1394 java jpeg lame laptop lm_sensors mad midi mjpeg mmx modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png ppds pppd python qq quicktime rar readline reflection session spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd threads tiff unicode wifi xft xine xinerama xml xorg xscreensaver xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon vesa intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2009-11-14 15:31:15 UTC
How does it not work?
Comment 2 seraph@xs4all.nl 2009-11-18 21:06:42 UTC
Not sure if it's the same problem the reporter has, but for me, hibernate-script stopped working after I recompiled the kernel with CONFIG_SYSFS_DEPRECATED_V2=n. (I did that because the new udev complains and is very slow when it is set to yes.)

I traced the problem to the scriptlet /usr/share/hibernate/scriptlets.d/sysfs_power_state which at some point does a write to /sys/power/state. This fails with a "no such device" error after a few seconds.

The problem may be that the major and minor number in /sys/power/resume point to a device that does not exist on my system, but changing them and attempting the hibernate again just made my system hang.

I suspect that hibernate-script is not yet converted to the new layout of sysfs. Unfortunately I do not know enough about sysfs and hibernation to attempt to fix this.


To the original reporter: Check the configuration file for your kernel (usually found in /usr/src/linux/.config, it may also be found in /boot) for the value of the parameter CONFIG_SYSFS_DEPRECATED_V2. If it is not set, then you probably have the same issue as I do.
Comment 3 water 2009-11-19 09:31:30 UTC
(In reply to comment #1)
> How does it not work?
> 

when I input hibernate and hibernate-ram in gnome-terminal, I see a lot of codes appearing in the gnome-terminal and compute does not go into suspend or hibernate.
Comment 4 Wormo (RETIRED) gentoo-dev 2009-11-24 21:16:00 UTC
Did you check on the kernel config option Jos mentioned? If that didn't help you, try posting more information:
* attach your kernel config
* attach /var/log/hibernate.log
Comment 5 water 2009-11-26 16:20:19 UTC
(In reply to comment #4)
> Did you check on the kernel config option Jos mentioned? If that didn't help
> you, try posting more information:
> * attach your kernel config
> * attach /var/log/hibernate.log
> 

after I choose Y for CONFIG_SYSFS_DEPRECATED_V2, when start up , It gives me a warning: udev may not work correctly.
And at this time , I still can not use hibernate and hibernate-ram.
I upload my kernel config and hibernate.log.
Thanks
Comment 6 water 2009-11-26 16:21:33 UTC
Created attachment 211260 [details]
my kernel config file
Comment 7 water 2009-11-26 16:25:08 UTC
Created attachment 211262 [details]
/var/log/hibernate.log
Comment 8 Pacho Ramos gentoo-dev 2012-12-16 14:26:15 UTC
This package is now orphan:
http://my.opera.com/pacho/blog/2012/11/27/about-maintainer-needed
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2013-01-12 16:33:03 UTC
Please reopen if still exists.

Attach hibernate.log with recent kernel.

I working with non depreciated in kernel for ~2 years no without any issue with this script.

Thanks!