SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-31-2016, 08:38 AM
Wrx4me Wrx4me is offline
Sage Advanced User
 
Join Date: Feb 2005
Location: New York
Posts: 117
Firewire Channel changing in Linux

I am in the middle of an unraid trial as I’d like to migrate to version 9 on a Linux VM running in unraid. So far I have my VM up and running thanks to SageWizdom’s excellent script and everything from Opendct to Comskip works well.

My only challenge is my HDPVR which on my current Windows 7 Server is using Firewire for Channel changing as it is a 32bit system. I understand Firewire can be used in 64bit Linux but I am lost as to where to start. Can someone please give me a hand with setting up Firewire channel changing in Ubuntu Linux 14.04? I would hate to go back to blasters as my Win 7 Firewire has been rock solid. I'd appreciate any suggestions as well, Thanks!
Reply With Quote
  #2  
Old 11-01-2016, 11:41 AM
Wrx4me Wrx4me is offline
Sage Advanced User
 
Join Date: Feb 2005
Location: New York
Posts: 117
I guess not many people are using Firewire Channel changing in Linux. Is the USB-UIRT a good alternative?
Reply With Quote
  #3  
Old 11-01-2016, 12:27 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Take a look at this: https://www.mythtv.org/wiki/FireWire...s_via_Firewire

What kind of cable box do you have?
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #4  
Old 11-01-2016, 01:18 PM
Wrx4me Wrx4me is offline
Sage Advanced User
 
Join Date: Feb 2005
Location: New York
Posts: 117
Interesting...I have FIOS and the Motorola QIP7100-1. Thanks for the link, let me see how far I get with it.
Reply With Quote
  #5  
Old 11-01-2016, 03:35 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
If you can get the standalone binary tuning channels, you can use the generic tuner plugin to integrate it.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #6  
Old 02-01-2017, 07:59 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Did anyone make any progress on firewire?
__________________
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
Reply With Quote
  #7  
Old 02-05-2017, 08:58 AM
Wrx4me Wrx4me is offline
Sage Advanced User
 
Join Date: Feb 2005
Location: New York
Posts: 117
Quote:
Originally Posted by wayner View Post
Did anyone make any progress on firewire?
Not only did I make progress, but it works flawlessly in Linux as it is builtin.

Once your card is detected by the OS it will be listed as a tuning option in Sage and you just select it and it works.

No messing around with the configuration like I did trying to get USB-UIRT to work. This was the easiest tuning setup I have done so far.

The hardest part of the process for me was to Passthrough my Firewire card in unRAID to my Ubuntu VM. Once I got that squared away everythng within Sage was straightforward.
Reply With Quote
  #8  
Old 02-05-2017, 09:52 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Awesome to hear that you got it working. I think you are right that the passthrough is the trickiest issue. I don't think I can get this working without changing some hardware, but that could be as simple as replacing my i5-2500k with an i5-2500 or other socket 1155 CPU that supports Vt-d or IOMMU or whatever it is called.
__________________
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
Reply With Quote
  #9  
Old 02-05-2017, 10:52 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Wrx4me View Post
Not only did I make progress, but it works flawlessly in Linux as it is builtin.

Once your card is detected by the OS it will be listed as a tuning option in Sage and you just select it and it works.

No messing around with the configuration like I did trying to get USB-UIRT to work. This was the easiest tuning setup I have done so far.

The hardest part of the process for me was to Passthrough my Firewire card in unRAID to my Ubuntu VM. Once I got that squared away everythng within Sage was straightforward.
Does it not work accessing the firewire port directly from the docker container?
__________________
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
Reply With Quote
  #10  
Old 02-05-2017, 10:55 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I don't think he is running unRAID/Docker, at least not yet.
__________________
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
Reply With Quote
  #11  
Old 02-05-2017, 10:58 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The most recent sagetv docker should have the 1394 package included, so it likely will work. I have neither a firewire port or a firewire capable STB to test it with, but it should be accessible.
__________________
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
Reply With Quote
  #12  
Old 02-05-2017, 11:04 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
The most recent sagetv docker should have the 1394 package included, so it likely will work. I have neither a firewire port or a firewire capable STB to test it with, but it should be accessible.
But I believe that assumes that you can passthrough the firewire port to VMs/Dockers which, I am pretty sure, requires a CPU that supports Vt-d.
__________________
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
Reply With Quote
  #13  
Old 02-05-2017, 11:41 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Passing it through to VM's, yes. That's not the same as the way docker deals with hardware. You aren't 'passing through' devices in the same way with docker. Essentially, if your /dev/video* devices of your HD-PVR's are accessible from the docker, then the /dev/fw* devices should as well. Docker is not a virtual machine, it is an isolated environment ON the host OS, so host OS accessible hardware is mostly available within the docker.
__________________
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
Reply With Quote
  #14  
Old 02-05-2017, 11:56 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
So how do I get firewire working in my docker container? When I type lspci from the unRAID bash prompt I can see the firewire port. When I do that from a bash prompt from within the docker container the lspci command doesn't exist.
__________________
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
Reply With Quote
  #15  
Old 02-05-2017, 12:06 PM
Wrx4me Wrx4me is offline
Sage Advanced User
 
Join Date: Feb 2005
Location: New York
Posts: 117
The reason I am not using the Docker container is that the first time I set it up a couple of months ago Opendct could not detect my tuners but could detect other network tuners so I decided to use a VM until the Opendct issue was sorted out.

I haven't checked into that since as my VM has been working well.

The Docker should be able to access the Firewire port as Fuzzy mentioned because you are not passing anything through as I am doing.
Reply With Quote
  #16  
Old 02-05-2017, 01:37 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by wayner View Post
So how do I get firewire working in my docker container? When I type lspci from the unRAID bash prompt I can see the firewire port. When I do that from a bash prompt from within the docker container the lspci command doesn't exist.
lspci simply isn't installed inside the container. Shouldn't matter. Check if you have and /dev/fw* devices inside the containers.
__________________
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
Reply With Quote
  #17  
Old 02-05-2017, 01:44 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
There is no /dev/fw* in either the docker container or the unRAID system.
__________________
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
Reply With Quote
  #18  
Old 02-05-2017, 07:42 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Anyone have any advice on where to start troubleshooting this?

Here is the output of an lspci command done in the unrAID prompt:
Code:
03:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)
But as I posted above there is nothing under /dev/fw*

edit - here is the c source code for sa3250ch which is from the mythtv wiki and changes channels on SA boxes, such as the one that I have. There are similar files for a few other boxes. But I think I still need to get the device recognized before I get to the step of using this.
__________________
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

Last edited by wayner; 02-05-2017 at 07:52 PM.
Reply With Quote
  #19  
Old 02-05-2017, 10:38 PM
Wrx4me Wrx4me is offline
Sage Advanced User
 
Join Date: Feb 2005
Location: New York
Posts: 117
Quote:
Originally Posted by wayner View Post
Anyone have any advice on where to start troubleshooting this?

Here is the output of an lspci command done in the unrAID prompt:
Code:
03:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)
But as I posted above there is nothing under /dev/fw*

edit - here is the c source code for sa3250ch which is from the mythtv wiki and changes channels on SA boxes, such as the one that I have. There are similar files for a few other boxes. But I think I still need to get the device recognized before I get to the step of using this.
I have a similar output as you do in unRAID for my firewire card however, I also don't have anything under /dev/fw*. I read somewhere that unRAID does not natively support firewire. My Ubuntu VM does and has the drivers thats why it works there for me. Type the following commands in your unRAID prompt and if they are empty then you know the drivers are not included in unRAID.
Code:
lsmod | grep firewire
lsmod | grep 1394
Below is the output from my VM showing I am using the new firewire stack and not the older 1394 stack.

Code:
sage@sage1:/$ lsmod | grep firewire
firewire_ohci          40960  0
firewire_core          65536  1 firewire_ohci
crc_itu_t              16384  1 firewire_core
Reply With Quote
  #20  
Old 02-06-2017, 04:22 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Wrx4me View Post
I have a similar output as you do in unRAID for my firewire card however, I also don't have anything under /dev/fw*. I read somewhere that unRAID does not natively support firewire. My Ubuntu VM does and has the drivers thats why it works there for me. Type the following commands in your unRAID prompt and if they are empty then you know the drivers are not included in unRAID.
Code:
lsmod | grep firewire
lsmod | grep 1394
Below is the output from my VM showing I am using the new firewire stack and not the older 1394 stack.

Code:
sage@sage1:/$ lsmod | grep firewire
firewire_ohci          40960  0
firewire_core          65536  1 firewire_ohci
crc_itu_t              16384  1 firewire_core
Do you happen to know what would need to be added to the kernel to get firewire support at the server level? It may be possible to get the linuxserver.io guys to add it into their kernels.
__________________
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewire channel changing derfel Hardware Support 1 01-29-2011 09:32 AM
Possible to use STB Firewire for channel changing only? rob.sfo Hardware Support 30 12-15-2009 09:25 PM
Channel changing via Firewire showson1 Hardware Support 1 10-15-2008 02:08 PM
Firewire channel changing gjvrieze Hardware Support 4 07-07-2008 03:05 PM
HD-PVR: Firewire channel changing? deria Hardware Support 5 06-03-2008 12:22 PM


All times are GMT -6. The time now is 05:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.