in Jaunty acpi scripts are not called on events

Asked by Piotr Morgwai Kotarbiński on 2009-05-25

Hi,

I added a simple script that I wanted to be called when machines resumes from suspend:
-rwxr-xr-x 1 root root 37 2009-05-25 02:49 /etc/acpi/resume.d/99-test.sh

with the following content:
#!/bin/bash
/bin/date >>/tmp/acpi.txt

the file has permissions so everybody can write to it:
-rw-rw-rw- 1 morgwai morgwai 60 2009-05-25 03:04 /tmp/acpi.txt

and I verified that the script appends current date to /tmp/acpi.txt when called by hand, but when computer resumes from suspend nothing is appended to this file. Any idea why?

Thanks

  Morg

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu acpid Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
2009-05-25
Last query:
2009-05-25
Last reply:
2009-05-25
Best Sam_ (and-sam) said : #1

Hi,
acutally pm-utils does the work.
https://wiki.ubuntu.com/PMUtilsSpec

http://pm-utils.freedesktop.org/wiki/
http://people.freedesktop.org/~hughsient/quirk/quirk-suspend-index.html

https://wiki.ubuntu.com/DebuggingGNOMEPowerManager

/var/log/pm-suspend.log

e.g. ##in case not identical on different Ubuntu's
/etc/pm/config.d/
/etc/pm/sleep.d
/usr/lib/pm-utils/
/usr/lib/pm-utils/pm-action
/usr/lib/pm-utils/functions
/usr/share/doc/pm-utils/HOWTO.modules

Thanks Sam, that solved my question.