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 04-26-2008, 08:53 AM
harrijay harrijay is offline
Sage Advanced User
 
Join Date: Jan 2007
Location: Wisconsin
Posts: 152
Video source problems

I have a small problem with my current setup. I currently have 1 PVR-150, 1 PVR-500 and 1 A180. The issue I am having is that whenever I reboot the server the video0, video1, video2, video3, which are all dynamically assigned on reboot move around based on when the A180 is loaded. I am trying to get a udev rule setup to do this and I have one working but it looks like sage is not looking at the symlinks from the rules that I have setup. can anyone provide insight as to what sage is looking for when giving avaliable video sources?

Jayson
__________________
ESXi Host Intel Xeon x3440 on Intel S3420PLX, 4GB RAM, 80GB Primary
Server:2 CPU's and 2GB memory Allocated, 15GB Virtual Primary, 1.5 TB RDM Physical Disk,
A180 using VMDirectPath, 1 xHDHR
Headless ArchLinux 2.6.34 64-bit, SageTV 7.0.15
Sun JRE 1.6.0_20
Comskip&PlayonWindows XP 2CPU and 1GB Ram Allocated
Clients: 1 Media MVP and 2 STX-HD100
Reply With Quote
  #2  
Old 04-26-2008, 05:54 PM
harrijay harrijay is offline
Sage Advanced User
 
Join Date: Jan 2007
Location: Wisconsin
Posts: 152
yeah never really thought I would be answering my own post but just in case anyone is in the same situation or gets in the same situation this is what I did to get it working for me.

You need to start by getting some information about the hardware you have in your system.
Code:
sudo udevinfo -a -p /class/video4linux/video0
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/class/video4linux/video0':
    KERNEL=="video0"
    SUBSYSTEM=="video4linux"
    DRIVER==""
    ATTR{name}=="saa7133_0_ video _AVerMedia AVe"
    ATTR{dev}=="81:0"

  looking at parent device '/devices/pci0000:00/0000:00:08.0/0000:02:07.0':
    KERNELS=="0000:02:07.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="saa7134"
    ATTRS{msi_bus}==""
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v00001131d00007133sv00001461sd00001044bc04sc80i00"
    ATTRS{local_cpus}=="ff"
    ATTRS{irq}=="20"
    ATTRS{class}=="0x048000"
    ATTRS{subsystem_device}=="0x1044"
    ATTRS{subsystem_vendor}=="0x1461"
    ATTRS{device}=="0x7133"
    ATTRS{vendor}=="0x1131"
There is more information that gets spit out for each device but this contains all of the info you need. you mainly only need the line in there that starts with ATTRS{modalias}==. Copy the pci:... from there and enter in your rules. continue on for the rest of the video inputs you have and get the same info just changing the 0 at the end to a 1,2,3 and so on.

Now open a new file for editing so you can add your new rules.
Code:
 sudo nano /etc/udev/rules.d/10-local.rules
Here are my rules that work for me
Code:
KERNEL=="video[0-9]", ATTRS{modalias}=="pci:v00001131d00007133sv00001461sd00001044bc04sc80i00" , NAME="video0", GROUP="video"
KERNEL=="video[0-9]", ATTRS{modalias}=="pci:v00004444d00000016sv00000070sd00008801bc04sc00i00" , NAME="video1", GROUP="video"
KERNEL=="video[0-9]", ATTRS{modalias}=="pci:v00004444d00000016sv00000070sd0000E807bc04sc00i00" , NAME="video2", GROUP="video"
KERNEL=="video[0-9]", ATTRS{modalias}=="pci:v00004444d00000016sv00000070sd0000E817bc04sc00i00" , NAME="video3", GROUP="video"
now just restart udev by
Code:
sudo /etc/init.d/udev restart
I also restarted sage for good measure and the new labels are now accessible.
__________________
ESXi Host Intel Xeon x3440 on Intel S3420PLX, 4GB RAM, 80GB Primary
Server:2 CPU's and 2GB memory Allocated, 15GB Virtual Primary, 1.5 TB RDM Physical Disk,
A180 using VMDirectPath, 1 xHDHR
Headless ArchLinux 2.6.34 64-bit, SageTV 7.0.15
Sun JRE 1.6.0_20
Comskip&PlayonWindows XP 2CPU and 1GB Ram Allocated
Clients: 1 Media MVP and 2 STX-HD100
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
New tools for Studio users GKusnick SageTV Studio 206 11-29-2009 10:08 PM
SageTV V6.3 is now available for Win/Linux! Narflex Announcements 1 03-07-2008 12:33 PM
sage.PlaybackException on new video source during first run dsobiera SageTV Linux 2 09-23-2007 04:29 AM
SageTV V6.0.14 Beta is Now Available Narflex SageTV Beta Test Software 70 11-21-2006 11:23 AM


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


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