Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-18-2009, 01:32 PM
|
#1
|
LQ Newbie
Registered: Dec 2008
Posts: 6
Rep:
|
acpid does not work after hibernation in Gentoo
I've just about given up on trying to get hibernation working correcly. I'm using Gentoo (tuxonice-sources kernel).
What I want is to be able to press the power button and have the system run the hibernate script. I have acpid installed, and if the system has been been rebooted (not resumed from hiberation) it will correctly detect the power button event and run the hibernation script. After I boot the computer back up, it loads the image, BUT, acpid seems to be broken at this point, and the power button is no longer detected. I've tried restarting acpid, but when I do this it says "/proc/acpi/event" is busy. Is there an alternative to acpid that I'm not aware of that DOESN'T use /proc/acpi/event?
I'm using fluxbox, and would rather not have to install gnome or kde just to get the power button working correctly.
Thanks for anyone who can help...
Last edited by geogaddi; 01-18-2009 at 01:35 PM.
|
|
|
01-18-2009, 01:47 PM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
when you apend your grub or lilo you need to tell acpid where to resume from.
image=/boot/vmlinuz
label="linux"
root=/dev/hda1 #my swap is on /dev/hda3
initrd=/boot/initrd.img
append="acpi=on resume=/dev/hda3 splash=silent" <--- this
vga=788............tells it to use /dev/hda3 as a swap file when coming out of hibernation. it also lets it use that to dump the cashe there if need. and this way everything can power down except the ram and swap on hda3 hope this helped
Last edited by Drakeo; 01-18-2009 at 01:50 PM.
|
|
|
01-18-2009, 02:32 PM
|
#3
|
LQ Newbie
Registered: Dec 2008
Posts: 6
Original Poster
Rep:
|
Thanks for the suggestion, Drakeo.
The "acpi=on" and "resume=" was actually missing from my grub.conf, but adding it doesn't seem to make a difference.
If it helps, I ran netstat both before hibernation (but after a fresh reboot), and after resuming from hibernation.
The first time I ran it (before hibernation), there was one entry for /var/run/acpid.socket (I-node 7026).
I ran "/etc/init.d/acpid stop", and netstat showed that the /var/run/acpid.socket entry was gone. I restarted acpid, and the connection was back... I don't know much about this, but it seems normal so far.
Next I hibernated the machine and powered it back on. After it resumed, I ran netstat again. This time there were two entries for /var/run/acpid.socket: one with 7026 I-node, and another with "0" for the I-node. Obviously not normal.
I tried stopping the acpid service the same way as before, but this time it gave me an error, and netstat showed me the same two entries. I did a killall acpid, and netstat still shows the same two entries. In fact, killall doesn't seem to kill acpid at all.
What's going on here?
|
|
|
01-18-2009, 03:00 PM
|
#4
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
I had this problem with a hp and hardy heron ubuntu 8.04. the it would not hibernate but I looked at the scripts and for some reason it never would come up from the power button drove me crazy. I set it up to hibernate close the lid then use the power button to start up. for some reason it creates another socket and to be honest I gave up and started using suspend .it worked so I used suspend to close the lid then power button to start. this was a soft boot. so I left my setting for hibernation only if my battery got low.
not sure if this helps but linux is not great at running bios.
I had a toshiba laptop that I had to modprobe toshiba before it worked. it seemed it loaded a generic module for acpid
Last edited by Drakeo; 01-18-2009 at 03:03 PM.
|
|
|
All times are GMT -5. The time now is 08:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|