0

I have problem with artefacts on background after suspend mode. But i can background by enter this command: "gala -r" from carrent user.

How i can auto execute this command after suspend?

OS Loki

I saw few topics about this i tried but it not help. https://askubuntu.com/questions/92218/how-to-execute-a-command-after-resume-from-suspend?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

https://mariogalan.com/en/content/execute-script-after-suspend-ubuntu-1604

I did this:

$ sudo nano /lib/systemd/system-sleep/galar

#!/bin/sh

# Execute fancontrol

case "$1" in
        post)
          su a -c "gala -r"
                ;;
esac

$ sudo chmod a-x /lib/systemd/system-sleep/galar

Artefacts: enter image description here

Your Answer

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

Browse other questions tagged or ask your own question.