Summary: | sys-power/hibernate-script 2.0-r1 does not work | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | water <waterloo2005> |
Component: | New packages | Assignee: | Alon Bar-Lev (RETIRED) <alonbl> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | seraph |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
my kernel config file
/var/log/hibernate.log |
Description
water
2009-11-03 11:55:38 UTC
How does it not work? 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. (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. 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 (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 Created attachment 211260 [details]
my kernel config file
Created attachment 211262 [details]
/var/log/hibernate.log
This package is now orphan: http://my.opera.com/pacho/blog/2012/11/27/about-maintainer-needed 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! |