View Full Version : Unloading PVR-150 before S3 Sleep
June 13th, 2010, 04:13 AM
I am using S3 sleep (suspend) to save power on my MythTV frontend/backend machine while it is not in use. Unfortunately, whenever it wakes up my PVR 150 card doesn't want to work. If I understand correctly the way to solve this would be to unload the card before sleep and then reload it on wakeup. Can anyone help me find the correct procedure to do this? Which modules will I need to unload?
June 13th, 2010, 08:20 AM
The pvr150 uses the ivtv modules, so you need to unload them. If your running 10.04 you should be able to create a upstart job that starts on standby, which just unloads the ivtv modules.
Sorry but I can't help you much more than this.
June 13th, 2010, 09:14 PM
Would you be able to steer me in the right direction as to where I might be able to find the names of these ivtv modules?
I am using a script at "/usr/lib/pm-utils/sleep.d/00mythlirc" to unload/reload lirc and my remote works fine after wakeup. I added some modules which I think are for ivtv to that script but it doesn't seem to be making a difference. What am I missing here?
case "$1" in
modunload lirc_mceusb2 lirc_dev ivtv saa7134_dvb saa7134_alsa saa7134
modreload lirc_mceusb2 lirc_dev ivtv
modreload saa7134_dvb saa7134_alsa saa7134
sudo -u dustin mythwelcome &
June 14th, 2010, 04:31 AM
Just go to the termnal and do a lsmod. The pvr150 module is called ivtv, so you need to unload it and any other modules that depend on it/uses it.
June 14th, 2010, 05:43 AM
Thank you, lsmod is exactly what I was looking for. Looking at my log files it also turned out that my unload/reload script was not executable (which would indicate I don't actually need to unload lirc before sleep). Oops! After that it still wasn't working, but I found another thread (http://www.gossamer-threads.com/lists/mythtv/users/363922) which seemed to indicate that the modules have to be loaded in a very specific order like so:
rmmod ivtv saa7134_dvb saa7134_alsa saa7134 tuner --force
rmmod --force tuner
rmmod --force ivtv
It is working now, although it has created a new problem where the computer wakes itself up as soon as it goes to sleep. Thanks for the help.
Edit: fixed the problem with the computer waking itself up by only unloading ivtv, saa7134_dvb, saa7134_alsa, saa7134.
June 19th, 2010, 06:17 PM
I'm having a similar problem now with DVD playback not working after wakeup. Does something need to be unloaded here as well?
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.