User:ManiacTwister/cinergy-suspend

From LinuxTVWiki
Revision as of 17:58, 15 January 2014 by ManiacTwister (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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