2012-03-17, 17:13
(Yes. Suspend is working on linux )
My system is an ubuntu 12.04 but I think is the same for 11.10.
Prerequisite: pm-utils
on ubuntu systems.
The issue in my case was because the dvb_usb_dib0700 and budget_ci modules needed to be suspended before the suspend action. tvheadend needs to be stopped as well.
Under /etc/pm/sleep.d create a file named, for example, 50_tvheadend and write inside:
ALTERNATE: If you have monit installed (yes, I've installed monit to control when very occasionally tvheadend crashes ) to monitor tvheadend change the content of 50_tvheadend with:
save and close the file and set the correct file permissions:
Then create under /etc/pm/config.d a file named modules and write inside:
if your dvb modules are different, place the correct ones and save and close the file.
Done. Now suspend should work.
Hope this can be useful for someone.
My system is an ubuntu 12.04 but I think is the same for 11.10.
Prerequisite: pm-utils
Code:
$ sudo apt-get install pm-utils
on ubuntu systems.
The issue in my case was because the dvb_usb_dib0700 and budget_ci modules needed to be suspended before the suspend action. tvheadend needs to be stopped as well.
Under /etc/pm/sleep.d create a file named, for example, 50_tvheadend and write inside:
Code:
#!/bin/sh
case "${1}" in
hibernate|suspend)
/etc/init.d/tvheadend stop
;;
resume|thaw)
/etc/init.d/tvheadend start
;;
*)
;;
esac
ALTERNATE: If you have monit installed (yes, I've installed monit to control when very occasionally tvheadend crashes ) to monitor tvheadend change the content of 50_tvheadend with:
Code:
#!/bin/sh
case "${1}" in
hibernate|suspend)
/etc/init.d/monit stop
/etc/init.d/tvheadend stop
;;
resume|thaw)
/etc/init.d/monit start
/etc/init.d/tvheadend start
;;
*)
;;
esac
save and close the file and set the correct file permissions:
Code:
$ sudo chmod 755 50_tvheadend
Then create under /etc/pm/config.d a file named modules and write inside:
Code:
SUSPEND_MODULES="dvb_usb_dib0700 budget_ci"
if your dvb modules are different, place the correct ones and save and close the file.
Done. Now suspend should work.
Hope this can be useful for someone.