User:ManiacTwister/cinergy-suspend

From LinuxTVWiki
Jump to navigation Jump to search

This script can be used on systemd systems. This makes the Terratec Cinergy T Dual card working after suspend/hibernation.

/usr/lib/systemd/system-sleep/unload-cinergydrivers.sh

#!/bin/bash

case $1 in
   pre)
	# Uncomment the next two line if you're using kaffeine.
	# If not you should add pkill <yourtvsoftware> here.

	#pkill kaffeine
	# sleep 2
        rmmod cx23885 cx25840
        ;;
   post)
        modprobe cx25840
	modprobe cx23885
       ;;
esac


chmod a+x /usr/lib/systemd/system-sleep/unload-cinergydrivers.sh