I have a Hauppauge pvr-150 that refuses to work after waking from sleep mode. I either have to reboot or do a sudo rmmod ivtv > sudo modprobe ivtv > sudo depmod -a.
Is there any way to reload the ivtv driver automatically after waking from sleep? I do see an option in the system settings power management application that says run script, but don't know exactly how to write the script or make it run as root.
I did an attempt at a very simple script which does work when I run it manually and it looks like this (I have no experience at scripting, so no laughing!)"
Of course I run it with sudo. Oh, I also threw in the v4l2-ctl part because I'm using the composite output on the card. Thanks in advance for any ideas!
Is there any way to reload the ivtv driver automatically after waking from sleep? I do see an option in the system settings power management application that says run script, but don't know exactly how to write the script or make it run as root.
I did an attempt at a very simple script which does work when I run it manually and it looks like this (I have no experience at scripting, so no laughing!)"
Code:
#!/bin/bash rmmod ivtv modprobe ivtv depmod -a v4l2-ctl -i 2 echo "Done Resetting ivtv"
Comment