0

Using instructions from this answer I've created and placed a script at /etc/pm/sleep.d:

msi-keyboard.sh:

msi-keyboard -m normal -c left,red,high -c middle,purple,high -c right,sky,high

Unfortunately, after resuming it doesn't get called. Anyone have a solution on how to execute commands or a script on resume from suspend?

P.S. I've disabled login on resume/screensaver

0

Make sure script executable. It should be look like this I guess.

#!/bin/sh

case "$1" in
    resume|thaw)
        msi-keyboard -m normal -c left,red,high -c middle,purple,high -c right,sky,high
        ;;
esac
  • I've done that, rebooted and it doesn't work after resuming from sleep. – Michael Wanyoike Oct 19 '19 at 12:18
  • Have you figured out how to do this? This is not working for me either. – Jonathan Beaudoin Feb 13 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.