Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Kubuntu User (http://www.linux-archive.org/kubuntu-user/)
-   -   Running a script when laptop wakes from RAM suspension (http://www.linux-archive.org/kubuntu-user/116873-running-script-when-laptop-wakes-ram-suspension.html)

"Dotan Cohen" 07-01-2008 01:20 PM

Running a script when laptop wakes from RAM suspension
 
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?
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users

Joel Oliver 07-02-2008 02:15 AM

Running a script when laptop wakes from RAM suspension
 
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...



--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users


All times are GMT. The time now is 10:43 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.