'echo -n mem > /sys/power/state' Operation not permitted error
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am not sure why you are giving the "-n" in the echo line. Try without it.
Also, I would recommend you to try out suspend2. It is not as complicated as it sounds like. Go to suspend2.net and download the proper patch - and get the latest stable kernel from kernel.org. apply the patches.
1. install hibernate script (from suspend2.net)
2. Test your suspend2.
Look in the wiki of suspend2 - it is written in detail. Suspend2 is NOT just fast but also reliable.
Alternatively, just install the hibernate script - try to suspend with hibernate script.
Did you get a solution for this yet? I am having the exact same problem...
Unfortunately I ended up and still am stumped. On Slackware, Zenwalk (Slackware based) this problem persists.... Including Slackware 11.0, which was recently released. One thing I did not try is patching a vanilla kernel with suspend2 (http://suspend2.net) and using that kernel.
However suspend/resume as well as hibernate work perfectly on my laptop under Fedora Core 5 and 6.
Unfortunately I ended up and still am stumped. On Slackware, Zenwalk (Slackware based) this problem persists.... Including Slackware 11.0, which was recently released. One thing I did not try is patching a vanilla kernel with suspend2 (http://suspend2.net) and using that kernel.
However suspend/resume as well as hibernate work perfectly on my laptop under Fedora Core 5 and 6.
Luckily I found a solution myself two days ago...
I have a Core Duo laptop, and chances are high you do as well. For hibernate and standby to work on a dual core system, the kernel needs support for "hotpluggable cpu's". I didn't had this enabled in my kernel config...
When patching the kernel with suspend2, they automatically select this option, but I believe that it is not necessary to suspend2 if you don't want to...
After adding the CONFIG_HOTPLUG_CPU option, I was able to write to /sys/power/state ...
Hopefully this works for you too...
Luckily I found a solution myself two days ago...
I have a Core Duo laptop, and chances are high you do as well. For hibernate and standby to work on a dual core system, the kernel needs support for "hotpluggable cpu's". I didn't had this enabled in my kernel config...
When patching the kernel with suspend2, they automatically select this option, but I believe that it is not necessary to suspend2 if you don't want to...
After adding the CONFIG_HOTPLUG_CPU option, I was able to write to /sys/power/state ...
Hopefully this works for you too...
Like I said, I didn't try suspend2, although I suspect it would have worked based on the information I've seen regarding it.
Actually my system is a Pentium M 1.8GHz, single core, no hyper-threading or anything fancy like that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.