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

1 Answer 1

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
2
  • I've done that, rebooted and it doesn't work after resuming from sleep. Oct 19, 2019 at 12:18
  • Have you figured out how to do this? This is not working for me either. Feb 13, 2020 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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