Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Run script on wakeup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Sat Oct 03, 2015 9:29 pm    Post subject: Run script on wakeup Reply with quote

I have two Gentoo systems, both with a script in /etc/pm/sleep.d, this script executes perfectly fine on one system, but fails to execute on the other.

Both are set as +x and both do the exact same thing. For testing purposes I've reduced the script to simply:

Code:

#!/bin/sh

case "${1}" in
        resume|thaw)

        echo "test" >> /var/log/test.log
;;
esac


I expect this to execute when the system resumes from sleep mode. This is what happens on one system, on the other system, nothing happens. Both run the same kernel.

Maybe I'm missing something that I forgot to emerge? But what?
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Wed Nov 25, 2015 12:29 am    Post subject: Reply with quote

This might sound a little crazy, but are the appropriate power management settings enabled in BIOS?
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum