You are not logged in.

#1 2024-12-20 11:11:04

aladar
Member
Registered: 2024-12-20
Posts: 6

[SOLVED] Execute script after suspend resuming

Hi,
I'd like to run a script when the system wakes up from suspend. I'd know how to do that using systemd, but I'm managing power with KDE and Power Devil, so systemd power management is inhibited. Have you any suggestion about that?
Thanks,

Francesco

Last edited by aladar (2024-12-21 20:15:29)

Offline

#2 2024-12-20 14:48:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,661

Offline

#3 2024-12-20 14:54:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,194

Re: [SOLVED] Execute script after suspend resuming

The "inhibition" in this context simply means that powerdevil is managing when to tell systemd to go to sleep and the like, systemd is still the process that executes the actual operation and all hooks and integrations in relevance to that will still function as is

Online

#4 2024-12-20 15:39:51

aladar
Member
Registered: 2024-12-20
Posts: 6

Re: [SOLVED] Execute script after suspend resuming

Hi,
you are totally right... I was convinced that it works like you say, and so I put the scripts in /usr/lib/systemd/system-sleep , but I forgot to set chmod +x , so the test failed. Now that I've realized my stupid mistake, the problem is solved, thanks!

Offline

#5 2024-12-20 15:46:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,661

Re: [SOLVED] Execute script after suspend resuming

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#6 2024-12-20 15:47:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,194

Re: [SOLVED] Execute script after suspend resuming

Great, please mark as [SOLVED] by editing the title in your first post.

FFF5CK tongue

Last edited by V1del (2024-12-20 15:48:14)

Online

Board footer

Powered by FluxBB