![]() |
|
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
SageTV Docker LIRC/FireWire issues
Quote:
-Select tuning option for HD PVR... --*Use external Cable receiver to tunethen... -Select a Tuning Plugin --DirectTV Serial ControlAlso, just to note, if I try to change tuning device after initial setup, there are no options available. So, I need to remove the source and go through all the wizard steps again - not an issue for me. |
#2
|
||||
|
||||
Quote:
Another thing is that the sagetv container runs with very low user permissions and it might not have access to the lirc and firewire devices. This kind of thing is hard to troubleshoot, especially remotely, since I don't have a firewire device. I checked on my setup and both /dev/lirc0 and /dev/lirc1 are owned by 'root' and as such sagetv will not get access to the devices... I need to update the docker container to set ownership permissions on those devices so that sagetv can actually use the devices. I don't have a firewire device so I don't know what the /dev/ file would be called or what it's default permissions would be. Could you ssh into your unRAID server and then run the command... Code:
# docker exec -ti stuckless-sagetv-server-java8 /bin/bash Code:
# ls -al /dev/fire* It's canadian thanksgiving this weekend, so likely not much will happen on my end ![]()
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
||||
|
||||
Quote:
![]() I'm very Novice: Quote:
Quote:
Quote:
|
#4
|
|||
|
|||
Try running dmesg and look for the FireWire device drivers and device mapping. You can run it in the docker container or on the unRAID shell itself.
|
#5
|
||||
|
||||
For Firewire:
Quote:
For HDPVR IR: I'm hoping mixing IR into this thread isn't confusing, but I did find the following. If I could get my HDPVR IR blasting going, that would be second best (and worlds better than the nothing I have now). I found this information, fwiw. It's very interesting to immerse in linux...sorry I'm so newb at it. |
#6
|
|||
|
|||
So, I'm by no means an expert and perhaps someone has gotten the HD PVR blaster working. I've been working to get anything IR working. I have USB-UIRT and the HD PVR's and couldn't tune them for the past 4 weeks or so when I switched to the unRAiD Linux and Docker implementation. Stuckless has COMMANDIR working, but they no longer sell their wares. So, the short answer is that from what I've seen, you need something to be the intermediary between the gentuner plugin script and the IR tuner (USB-UIRT or HD PVR). I've gotten LIRC working for blasting the code out the main transmitter of my USB-UIRT(not out the zoned jack on the back). However, for it to be persistent across container updates Stuckless will need to include it on the distribution. Based on my discussion with him, he intends to do that, but I personally just got it working reasonably well on Friday and he has the holiday along with the many other great things he is working on for the Sage community, so I'm not sure when that might happen. I have DISH VIP 211k's that I controlled with USB-UIRT under windows for years. LIRC was a bit challenging to get just right, but it seems to do well and I suspect others will be able to refine it and get it working in a much more refined manner than I have and on many other devices.
As I was struggling with the USB-UIRT under LIRC, I took a detour trying to get the HD PVR IR blasters working. It is likely possible, but it didn't go well for me. I ended up locking up my HD PVR. The note in the dmesg about it not being stable and it not loading the firmware was concerning. I was able to get it to load the firmware under the docker container, but it still did not go particularly well. I'm not familiar with the tuning your particular receiver, but I have found that the DISH VIP 211's can likely also be tuned over the network. That may be my next attempt just for fun. Until the LIRC integration is done within the app, it isn't a trivial job to get it to work and it won't restart the LIRC daemon across docker restarts. Oh, and if the container updates, you'll have to do it all over again. If you want to try playing around with it, I ran apt-get update and then apt-get install lirc to install the software within the sagetv container. Then the fun begins. If you can get irsend to work at the command line, then it isn't too hard to get it working with the gentuner plugin. Although I did run into permissions issues with the gentuner script and had to set them differently as well. Getting it working this weekend may be a tall order. For me, I had HD Homeruns for all the OTA stuff, which kept my family at bay while I worked on the DISH tuning. Quote:
Last edited by mibsy; 10-09-2016 at 09:18 AM. Reason: Typo |
#7
|
||||
|
||||
That looks like lirc is installed and detecting the HD-PVR's blaster (that's the lirc_zilog driver being loaded). lirc does take some more steps to configure though, and honestly, I never got all that far in it. Sage DOES support lirc, as far as I can tell, that's the 0-9 selection in the source config, but how to translate those into the actual lirc drivers, and how to configure the lirc to blast the right IR for your STB, I do not know.
(the number refers to the i2c port - so in your case, you would select blaster 1 (which will map to /dev/i2c-1). Looking in the code, it looks like it talks to the i2c port directly, instead of using any lirc tools, so I'm not sure how it'd be to troubleshoot it. That said, the 'blaster' driver involved here is called PVR150Tuner.c, which I actually think hasn't changed much between then and the HD-PVR.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room Last edited by Fuzzy; 10-08-2016 at 11:00 PM. |
#8
|
|||
|
|||
Unfortunately, the LIRC driver is only integrated into the LibreElec kernel. None of the software is installed without manual install or integration into the container. If you look at the gentuner.LIRC script, it uses irsend from the LIRC distribution. Here is what I looked at when trying to use the HD PVR transmitter:
https://www.mythtv.org/wiki/Hauppaug...mitter_Support Perhaps there is another way that doesn't require the LIRC suite of tools. I'm just not certain. Quote:
Last edited by mibsy; 10-09-2016 at 09:08 AM. Reason: Error |
#9
|
||||
|
||||
I'm not so sure the packages are required (at least with sage's current code). Sage's PVR150Tuner.c writes/reads directly to/from the /dev/i2c-? port, not using irsend.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#10
|
||||
|
||||
I'm thinking I might have to get a hold of the irsend code, and compare what IT does to what the PVR150Tuner code in sage is doing, and see where the differences lie. Might be able to either make improvements to PVR150, or make a while new interface for the HD-PVR's blaster.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#11
|
|||
|
|||
Quote:
It turns out, that while I have LIRC working for my USB-UIRT via LIRC, I've been playing around with a UPNP tuning script that should interface exceptionally well with my DISH VIP211 tuners and gentuner, but that only supports network UPNP tuning for a small subset of receivers. LIRC is the very complex, all in one solution that can be painful to set up, but can be made to support almost anything from a transmitter and receiver standpoint. A simple point solution for HD PVR's is an outstanding idea given it is the tuner of choice for most folks. |
#12
|
||||
|
||||
well, the hd-pvr still uses the lirc_zilog driver, as that's what essentially simulates the i2c port, but it appears that it is being loaded in the unraid (with the DVB kernal at least). I think for a single device, it would not be difficult to have the docker preconfigured to deal with HD-PVR's, even if we were to use irsend, so that is also an option - again, I have to see how far sage is from working with it right now before trying to figure out which route to go.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#13
|
||||
|
||||
I'm adding some "lirc" support to the container (ie, installing lirc), and setting the permissions on /dev/lirc0 and /dev/lirc1 so that sagetv can access those.
Also, setting the permissions on irsend so that if gentuner is used to call irsend, it has permissions to access the ports, etc. There will be a new variable, OPT_LIRC, and if it is set to Y then a couple things will happen. 1. it will copy SAGE_HOME/lirc.d/hardware.conf and SAGE_HOME/lirc.d/lircd.conf to /etc/lirc/ (ie, this gives you a place to configure your hardware and lirc settings) 2. it will start the lirc daemon
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#14
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#15
|
||||
|
||||
I was asking about Firewire before, but now have the HD PVR blaster working fine in an Unraid VM. I neglected to realize my old Firewire card was PCI and not compatible with PCIe.
So, when the updates are available, I'll also fire up the docker and see if HD PVR IR blasting is working. For now, it's a relief to have the VM working - but I miss the cleanliness of the docker approach ![]() |
#16
|
|||
|
|||
Quote:
|
#17
|
||||
|
||||
Quote:
My Docker ambitions are on hold, I couldn't get my HDPVR IR Blaster working with my limited skillset. Fuzzy has been working towards enabling the UIRT product, and sharing info on that over time. It may be extended or translatable to the HDPVR perhaps. I'm waiting to learn of developments like this. What I did do was move to Unraid and simply setup a Windows 10 VM that controls the HDPVR IR blaster just fine. It's working very well (though I'd like to migrate to Docker when I can). I can share more on that if desired. |
#18
|
|||
|
|||
Quote:
I am actually going to be doing something similar to what you did only because Opendct is not playing nice with my Docker so I am also on hold with the Docker implementation. I am going to migrate to Unraid and run Sage on a Linux VM. I have Sage 9 running on both Ubuntu 14.04 and 16.04 so I am trying to iron out things like the HDPVR before making the move. I gave up on the HDPVR blaster and have a USBUIRT on order so if you have some setup suggestions I'd be glad to hear it. I regret that Unraid does not support Firewire as that is what I currently use on my Windows 7 Sage Server HDPVR channel changing. |
#19
|
||||
|
||||
FWIW: I've been running SageTV in a Windows 10 VM in Unraid, using my HDPVR for IR Blasting, and it's rock solid all around. HD PVR blasting is unexpectedly flawless. I used to use firewire, but my cards weren't PCIe, so I ditched them and am OK having done so.
Under my prior PC the HDPVR would disconnect often (Sage lost the tuner). I rarely see that now as well. I thought I had a weak power supply...but seems it may have been usb controllers instead or just windows. |
#20
|
|||
|
|||
Anyone know what the current state of either FW or the USB-UIRT are under unRAID? I had no problems having my HD-PVR recognized but I don't see firewire.
Here is the bottom of the the dmesg command that has all I can find relating to IR. Does it look like the Hauppauge IR would work? Code:
[252651.636101] media: Linux media interface: v0.10 [252651.638978] Linux video capture interface: v2.00 [252651.657254] hdpvr 2-1.4:1.0: firmware version 0x17 dated Jul 27 2011 05:11:32 [252651.657256] hdpvr 2-1.4:1.0: untested firmware, the driver might not work. [252652.048964] lirc_dev: IR Remote Control driver registered, major 247 [252652.049436] lirc_zilog: module is from the staging directory, the quality is unknown, you have been warned. [252652.049634] Zilog/Hauppauge IR driver initializing [252652.049636] lirc_zilog: module is from the staging directory, the quality is unknown, you have been warned. [252652.051206] probing IR Rx on Hauppage HD PVR I2C (i2c-1) [252652.051318] probe of IR Rx on Hauppage HD PVR I2C (i2c-1) done. Waiting on IR Tx. [252652.051323] i2c i2c-1: probe of IR Rx on Hauppage HD PVR I2C (i2c-1) done [252652.051336] probing IR Tx on Hauppage HD PVR I2C (i2c-1) [252652.051362] i2c i2c-1: Direct firmware load for haup-ir-blaster.bin failed with error -2 [252652.051365] i2c i2c-1: firmware haup-ir-blaster.bin not available (-2) [252652.051467] i2c i2c-1: lirc_dev: driver lirc_zilog registered at minor = 0 [252652.051470] i2c i2c-1: IR unit on Hauppage HD PVR I2C (i2c-1) registered as lirc0 and ready [252652.051473] i2c i2c-1: probe of IR Tx on Hauppage HD PVR I2C (i2c-1) done [252652.051504] initialization complete [252652.167811] hdpvr 2-1.4:1.0: device now attached to video0 [252652.167859] usbcore: registered new interface driver hdpvr
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV Server Linux with Comskip for Docker (and unRAID) Support Thread | stuckless | SageTV for unRAID/Docker | 409 | 10-10-2016 07:22 AM |
Interactive Docker Container for building SageTV (Linux) | stuckless | SageTV Github Development | 4 | 09-04-2016 03:14 PM |
Motorola DCT6200 Channel Change issues via firewire | mangriotis | Hardware Support | 10 | 09-02-2009 09:41 AM |
Firewire STB issues | ktuimala | Hardware Support | 3 | 07-26-2009 06:29 PM |
Network Encoder Issues on Firewire STB Help!! | gjvrieze | Hardware Support | 0 | 04-03-2008 07:34 PM |