This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Running scripts before and after suspend (sleep).

Tags: None
(comma "," separated)
firewalker
Registered Member
Posts
67
Karma
0
OS
How can I run a script before sleep (sleep button) and after waking a laptop? Something like pm-utils use (/etc/pm/sleep.d/my-script.sh). Is Solid responsible for those tasks? I tried searching but couldn't find something relative.
User avatar
sredna
Registered Member
Posts
225
Karma
1
OS
try the pm-actions manual :)
firewalker
Registered Member
Posts
67
Karma
0
OS
This should be included as an option from KDE as it uses it's own (?) mechanism to suspend.

I suppose by now that there isn't a way for this, so I will fill a feature request. For Solid?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Currently, Powerdevil is responsible for handling Sleep/Hibernate actions, so the request should be aimed there I suspect.
However it is quite plausible the interface for interacting with the sleep/hibernate system will be moved into a more shared location in the future.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
firewalker
Registered Member
Posts
67
Karma
0
OS
I filled a bug report (for Solid) couple weeks ago.

https://bugs.kde.org/show_bug.cgi?id=313693

Should I change something?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That feature request looks fine as far as I can tell, and is assigned to the appropriate maintainer. You will now need to wait to see if they implement the feature. If they do, it will appear in the next feature release of KDE, which will be KDE 4.11 at this time.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]