Running a script when laptop wakes from RAM suspension
Joel Oliver
joelol75 at verizon.net
Wed Jul 2 02:15:03 UTC 2008
Dotan Cohen wrote:
> In KDE it is easy to have the machine run a script on login. How can I
> have the machine run a script whenever it wakes from RAM suspension?
> Thanks.
>
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
Put the script in /etc/acpi/suspend.d/ and follow the way its done---
the higher the number the later your script will run so it's best to
number it 99-yourscript.sh so any networking or other services are
started....
Make sure to sudo chmod a+x it or it won't run. There are directories
for resume and start as well...
More information about the kubuntu-users
mailing list