View previous topic :: View next topic |
Author |
Message |
entemoehre n00b
Joined: 22 Jul 2003 Posts: 64
|
Posted: Mon Aug 30, 2004 11:39 am Post subject: suspend to ram and acpid |
|
|
Hi there!
So, I finally got suspend to ram working with kernel 2.6.9-rc1 on my Samsung X05 notebook.
I have set up the hibernate.sh script from swsusp2 so I can conveniently enter the sleep state. When I have the script executed via the lid-button-event, the system goes to sleep alright.
But on waking it up, it goes into sleep again at once.
That should not have anything to do with pressing the power-button for wake-up, for this would shut the system down.
When I stop acpid before suspend, it wakes up again correctly.
But it does not seem to be possible to restart acpid from the hibernate script or the lid-event, I have to do it manually every time.
I would be thankful for any ideas on restarting acpid automatically.
Regards, soenke |
|
Back to top |
|
|
nightfrost Apprentice
Joined: 07 Dec 2004 Posts: 293 Location: Sweden
|
Posted: Tue Jan 11, 2005 7:19 pm Post subject: |
|
|
Yours seem to be an old post; but in case you haven't solved your problem yet, you could always try to write a script to do that for you, something like this:
sleeper.sh
Code: | #!/bin/bash
/etc/init.d/acpid stop
hibernate
/etc/init.d/acpid start
|
not sure if it will work, but it's worth a try.. |
|
Back to top |
|
|
Legoguy Apprentice
Joined: 22 Dec 2003 Posts: 166 Location: Edmonton, Alberta, Canada
|
Posted: Tue Jan 11, 2005 11:07 pm Post subject: |
|
|
Some buttons report two presses when released. Not just one when pushed, one when released, but it waits until the combination of push/release to send 2 events. Not really smart, I know - but it's easy to work around it with a script. First "press", check a file for the button state, if it's at 0, write 1 to the file; next "press", set the file back to 0 and then activate swsusp2. |
|
Back to top |
|
|
Defiance n00b
Joined: 14 Feb 2005 Posts: 28
|
Posted: Sat Feb 26, 2005 6:26 pm Post subject: |
|
|
This is a little late of a reply, but if you use:
/etc/init.d/acpid start &
Then it will work. I usually issue "sleep 1s" just before that command just in case. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|