slackware + suspend-to-ram?
How can I use /etc/acpi/acpi_handler.sh to make the system suspend-to-ram when I hit the sleep button.
What should I put after Quote:
Can you recommend one? and... does the generic-smp kernel support sleep states, it looks to me like it doesn't, but I just want to check. |
Do something like
Code:
echo platform > /sys/power/disk; echo disk > /sys/power/state |
Code:
root@jan:~# echo platform > /sys/power/disk; echo disk > /sys/power/state Code:
cat /sys/power/state |
I noticed something similar on my Thinkpad x40 during the 12.0 RC stage and found this page on the thinkwiki.org site:
http://www.thinkwiki.org/wiki/Proble...suspend-to-ram (look at the second one on the list about "Write Error.") As far as I can tell, the regular Slackware kernels do not have "CONFIG_HOTPLUG_CPU" enabled so I recompiled my kernel and enabled that option and then acpi suspend to ram worked fine (with the appropriate acpi event and handler scripts, of course). I emailed Pat about this during the RC testing and he replied and said he would try to put this in the final 12.0 kernels but I have not had a chance to see if it was added. |
Quote:
Code:
# CONFIG_HOTPLUG_CPU is not set Eric |
well, I'm using the 2.6 series since 2.6.7 was out, always custom compiled.
Though, it would have been nice to run a official slackware kernel once again... Edit: On the other hand, it is a nice excuse to patch it for bootsplash support |
Finally it works!
The bootsplash stops people from asking Quote:
I also compiled in all the acpi modules. Now I'm using klaptop_acpi_helper to take care of the suspend. BTW to work in kde, klaptop_acpi_helper needs chmod +s . The dialog to do that in KDE complains about klaptop_acpi_helper not having the same size and checksum as it had when it was compiled. It also did that under 11.0 |
That is great to hear, thanks for posting a follow up, janhe.
|
All times are GMT -5. The time now is 02:16 AM. |