![]() |
Linux System suspend with xbmc and tvheadend - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: Linux System suspend with xbmc and tvheadend (/showthread.php?tid=125819) |
System suspend with xbmc and tvheadend - joethefox - 2012-03-17 (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 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 ALTERNATE: If you have monit installed (yes, I've installed monit to control when very occasionally tvheadend crashes ![]() Code: #!/bin/sh 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. ![]() Hope this can be useful for someone. RE: System suspend with xbmc and tvheadend - Serafean - 2012-03-21 Hi, very nice, I have one nifty addition : if there are planned recordings, set the rct alarm to wake the PC up in time for the recording. I have written this script that should do just that. Code: #!/bin/bash $dir is the ~/.hts/tvheadend/dvr/log/ directory (where tvheadend keeps its dvr logs). Note that I haven't tested it in its current form, the time setting works fine, the $dir redirection is untested (I'm not on my tvheadend machine, so I used a pre-parsed file). RE: System suspend with xbmc and tvheadend - esofron - 2012-04-12 (2012-03-21, 16:10)Serafean Wrote: Hi, very nice, I have one nifty addition : if there are planned recordings, set the rct alarm to wake the PC up in time for the recording. I have written this script that should do just that. Hi can you give us some details, where to save the file etc ? thanks. RE: System suspend with xbmc and tvheadend - Snippo - 2012-05-02 I also was having the problem that suspend wouldn't work. This topic helped me to fix it but I had to change a few things. I'm using a TBS6981 card which uses the cx23885 module. Adding it to the file in config.d wouldn't work for me. I also had the problem that oscam stopped working after suspending the machine. I managed to fix it by creating a file "99_tvheadend" in /etc/pm/sleep.d with the following content: Code: #!/bin/sh If named "50_tvheadend" it didn''t work because the cx23885 wouldn't unload properly. With the above it works fine though ![]() RE: System suspend with xbmc and tvheadend - joethefox - 2012-05-05 @Snippo, thanks for sharing your experience. I think that despite the insertion of the removal of the module at the end of the other tasks (99_ instead of 50_) works at 99.99% of the time, if we let pm decide when suspending the modules perhaps we can cover the remaining 0.01% of cases. Just for curiosity, Instead of using /etc/pm/sleep.d/modules creating the file /etc/pm/sleep.d/config and always putting inside Code: SUSPEND_MODULES="cx23885 ftdi_sio" RE: System suspend with xbmc and tvheadend - Serafean - 2012-06-02 (2012-04-12, 09:23)esofron Wrote: Hi can you give us some details, where to save the file etc ? Sorry, forgot to subscribe.... Put the file anywhere you want, just make sure that this script is run at suspend time, and that should do the trick.Also make sure that you set the $dir variable in the script. RE: System suspend with xbmc and tvheadend - Janiporo - 2014-12-17 Ok, this is 2 years old thread but having similar problem so why not post here. Using Linux Mint 17.1 64 bit Mate My lspci gives this: Code: 01:09.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05) In reboot it works fine, but after suspend it does not wake up. Earlier (with Mint 17 / 32bit) all that was needed, was: Code: sudo invoke-rc.d tvheadend restart http://localhost:9981/extjs.html status-page tells me this is "Conexant CX22702 DVB-T" and location / dev/dvb/adapter0. Signal strength is 56% before and after suspend. When I command: Code: sudo /etc/init.d/tvheadend restart Code: * Restarting Tvheadend tvheadend [ OK ] How do I proceed from here? RE: System suspend with xbmc and tvheadend - Janiporo - 2014-12-28 Nevermind, I installed tvheadend from correct repo and now everything works out of the box. RE: System suspend with xbmc and tvheadend - disanv - 2015-01-21 I had the same problem but solutions from that topic didn't worked for me. I found a solution. I know it's an old topic but the trouble is still here. Firstly, install pm-utils. Code: sudo apt-get install pm-utils Secondly create a file named /etc/pm/sleep.d/50_tvheadend and write inside: Code: #!/bin/sh RE: System suspend with xbmc and tvheadend - Janiporo - 2015-01-21 My system stopped working couple of days ago (original problem came back), and this helped, THANKS! RE: System suspend with xbmc and tvheadend - BrunoDeGoyrans - 2015-12-24 Hi Since many years, I have lost almost all my hairs trying to build a stable and efficient HTPC with WINDOWS. But today, I'am done. ![]() So I give a try with LINUX. ![]() So I have installed UBUNTU, KODI and TVHEADEND. Configuring TVHEADEND is not that obvious. But my TV card had been recognized and it works! it is a TERRATEC CYNERGY PCIE DUAL T I can play TV with KODI. But I encounter that SUSPEND issue and fall into that thread. I had also this anomaly with WINDOWS at the begining, few years ago, and after months waiting TERRATEC had produced a new driver. The root cause is the same and solution also. they are primary given here: http://www.linuxtv.org/wiki/index.php/TerraTec_Cinergy_T_PCIe_dual Quote:Known Issues The solution given at the top of this thread works, BUT ONLY ONCE ![]() I mean, if I reboot then I suspend once, TV plays at resume. But if I suspend a second time, TV does NOT play and I have a message on KODI : "TVHEADEND HTSP client : no input detected". I need HELP, PLEASE. What could I look for? RE: System suspend with xbmc and tvheadend - BrunoDeGoyrans - 2015-12-24 Additionnal infos: I have look into /var/log/pm-suspend.log During the 1st SUSPEND, cx23885 and cx25840 are unloaded successfully: Code: Unloading kernel module cx23885...Done. But NOT during the 2nd SUSPEND: Code: Unloading kernel module cx23885...modprobe: FATAL: Module cx23885 is in use. although tvheadend is successfully unloaded just before: Code: Running hook /etc/pm/sleep.d/50_tvheadend suspend suspend: Something is using those tv drivers, but WHAT? ![]() |