I'm running 15.04 along with MythTV. The computer can suspend but freezes on resume. I've traced this down to a problem with mythbackend and module saa7164. I've written a script that I can manually run that will kill mythbackend and then unload module saa7164. The script needs sudo privileges to modprobe saa7164. I've also written a script that reloads module saa7164 and then resumes mythbackend. When I do things manually I can run the first script, then suspend, then resume, run the second script, and everything works fine.
My problem is I want these to run on suspend/resume automatically and not prompt for a password. I've tried every solution that I could find. I've placed test scripts in /etc/pm/sleep.d and tried the solution posted in this link as well: