![]() |
Blank /sys/power/state file
Hi
I am attempting to enable standby/suspend on my laptop - I have never tried this before on Linux. Anyway, I have done a bit of reading up on it and discovered that the commands echo -n standby > /sys/power/state or echo -n mem > /sys/power/state should effect this. The problem though is that the /sys/power/state file is just an empty file which results in write error: No such device message. My kernel is acpi-enabled and everything acpi-related such as cpu frequency scaling works. Are there options in the kernel (huge-smp-2.6.21.5-smp) that need to be enabled (that are disabled by default) in order to get suspend/standby to work? Or are there other programs I need to install? Cheers |
Please see this thread:
http://www.linuxquestions.org/questi...d.php?t=566633 You need to enable "CONFIG_HOTPLUG_CPU" in your kernel. HTH |
Thanks for the info m8.
Cheers |
Hmm, well adding support for CPU hotplugging in the kernel didn't do the trick for me.
Code:
root@gabriel:/sys/power# echo -n "standby" > state |
Umm .. .I am not sure but isn't this supported only in 2.6.23 ? Could you try with 2.6.23 kernel ... cos all of it is working fine for me in 2.6.23 and I am pretty sure I read somewhere that this works only in 2.6.23 ...
|
There used to be a conflict between smp kernels and hibernation (if you enabled smp you would not have the config option for suspend). Perhaps this has gone away in 2.6.23. In any case, you could try tuxonice (used to be called suspend2) which you can find at http://www.tuxonice.net/.
Brian |
I'm using Slackware 12.0 with a 2.6.21.5 kernel, something I forgot to mention. I intended to try tuxonice anyway but for "suspend to disk" aka hibernation. Does it support standby too?
|
On my laptop (hp zv5000 AMD64) it was the only way to get both to work acceptably.
Brian |
So there, tried TuxOnIce today and it gives a very similar error:
Code:
/usr/local/share/hibernate/scriptlets.d/suspend2: line 564: echo: write error: Device or resource busy |
If you are suspending to a file, try suspending to swap. If not, perhaps the following thread may help: http://lists.tuxonice.net/lurker/mes...e5b7a4.en.html
Brian |
Quote:
Yes I am suspending to a swap partition. The thread you linked was indeed the only thing that google gave me and unfortunately that seems to be dealing with swap files, not partitions. So it didn't seem of much use. Something else, found this from dmseg: Code:
Replacing swsusp.I'm using /dev/sda3 as the swap partition for hibernation. I thought the error came because the swap was not on (I use /dev/sda2 as my real swap, this one was made just for hibernation) but swapon'ing it didn't help eighter. The error in the script I gave before comes at the moment that the script tries to run Code:
echo > $SWSUSP_ROOT/do_suspend |
Did you add the line 'append = "resume=swap:/dev/sda3"' to your lilo.conf, rerun lilo, and reboot?
Brian BTW You don't need a separate swap partition to do this if your "normal" swap partition is big enough. |
Quote:
Quote:
|
| All times are GMT -5. The time now is 05:36 AM. |