SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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-22.214.171.124-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?
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
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/.
Thanks for a quick response.
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:
No storage allocator is currently active. Rechecking whether we can use one.
Suspend2: SwapAllocator: No swap signature found at specified location.
Compression Driver: Argh! Nothing follows me in the pipeline!
compression didn't initialise okay.
Suspend2: Initialise modules failed!
That repeats actually like 20 times in dmseg.
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
echo > $SWSUSP_ROOT/do_suspend
The screen blanks actually for a second when trying to hibernate but then goes back to X.
Did you add the line 'append = "resume=swap:/dev/sda3"' to your lilo.conf, rerun lilo, and reboot?
Originally Posted by BCarey
BTW You don't need a separate swap partition to do this if your "normal" swap partition is big enough.
Yeah, when I first installed Linux here I made it a "thinkpad hibernation partition". Afterwards I realised I didn't need a special partition for it. Since it seemed too much trouble to merge it with some other partition, I made it a separate swap so I could still use it for suspending.