Home Ubuntu/Linux WIll not sleep when MythTV Backend is running
Post
Cancel

Ubuntu/Linux WIll not sleep when MythTV Backend is running

This has been very frustrating as I initially thought Ubuntu would not sleep because of the graphics drivers. I figured out it would not sleep when the mythtv backend service was running. It would just sit there with a blinking cursor and totally unresponsive.
To have Ubuntu disable mythtv backend service before sleep and start it again after waking up we need to add a file to /etc/pm/sleep.d/*file name*

#!/bin/sh
case "$1" in
        suspend|hibernate)
                stop mythtv-backend
                sleep 3
                ;;
        resume|thaw)
                start mythtv-backend
                ;;
esac
This post is licensed under CC BY 4.0 by the author.

If you have found this site useful, please consider buying me a coffee :)

Proud supporter of the Gnome Foundation

Become a Friend of GNOME

Gnome Network Manager OpenVPN AS Import from ovpn file

Get an A+ in Qualys SSL Labs

Comments powered by Disqus.