Comment 12 for bug 279472

Revision history for this message
Panayiotis Savva (psavva) wrote :

I have managed to solve the problem

I needed to edit the FDI for Lirc:

/usr/share/hal/fdi/preprobe/20thirdparty/lirc.fdi
[code]
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
     <match key="info.product" contains_ncase="saa7134 ir">
        <merge key="info.ignore" type="bool">true</merge>
     </match>
     <match key="info.product" contains_ncase="bttv IR">
        <merge key="info.ignore" type="bool">true</merge>
     </match>
  </device>
</deviceinfo>

[/code]

Please note that the in order to find which IR device you should use, you must type
[code]
[code]
lshal | grep IR
[/code]
input.product = 'bttv IR (card=139)' (string)
Note --> <match key="info.product" contains_ncase="bttv IR">

I think that this should be further reviewed and a patch should be supplied for this problem.

I used a second IR device which is the streamzap, which worked out of the box. :)
I hope we can do the same for the BTTV Device

I will include some info for your information about the exact card i have:

[code]
udi = '/org/freedesktop/Hal/devices/pci_109e_36e'
  info.linux.driver = 'bttv' (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_244e' (string)
  info.product = 'Bt878 Video Capture' (string)
  info.subsystem = 'pci' (string)
  info.udi = '/org/freedesktop/Hal/devices/pci_109e_36e' (string)
  info.vendor = 'Brooktree Corporation' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'pci' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0' (string)
  pci.device_class = 4 (0x4) (int)
  pci.device_protocol = 0 (0x0) (int)
  pci.device_subclass = 0 (0x0) (int)
  pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0' (string)
  pci.product = 'Bt878 Video Capture' (string)
  pci.product_id = 878 (0x36e) (int)
  pci.subsys_product_id = 16401 (0x4011) (int)
  pci.subsys_vendor = 'PROLINK Microsystems Corp' (string)
  pci.subsys_vendor_id = 5460 (0x1554) (int)
  pci.vendor = 'Brooktree Corporation' (string)
  pci.vendor_id = 4254 (0x109e) (int)

udi = '/org/freedesktop/Hal/devices/temp/179'
  info.ignore = true (bool)
  info.parent = '/org/freedesktop/Hal/devices/pci_109e_36e' (string)
  info.product = 'Ignored Device' (string)
  info.subsystem = 'input' (string)
  info.udi = '/org/freedesktop/Hal/devices/ignored-device' (string)
  input.device = '/dev/input/event8' (string)
  input.originating_device = '/org/freedesktop/Hal/devices/pci_109e_36e' (string)
  input.product = 'bttv IR (card=139)' (string)
  linux.device_file = '/dev/input/event8' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'input' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0/input/input15/event8' (string)

udi = '/org/freedesktop/Hal/devices/pci_109e_36e_video4linux_0'
  access_control.file = '/dev/vbi0' (string)
  access_control.type = 'video4linux' (string)
  info.callouts.add = {'hal-acl-tool --add-device'} (string list)
  info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
  info.capabilities = {'video4linux', 'video4linux.video_capture', 'video4linux.video_overlay', 'video4linux.tuner', 'access_control'} (string list)
  info.category = 'video4linux' (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_109e_36e' (string)
  info.product = 'BT878 video (Prolink PixelView ' (string)
  info.subsystem = 'video4linux' (string)
  info.udi = '/org/freedesktop/Hal/devices/pci_109e_36e_video4linux_0' (string)
  linux.device_file = '/dev/vbi0' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'video4linux' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0/video4linux/vbi0' (string)
  video4linux.device = '/dev/vbi0' (string)
  video4linux.version = '1' (string)

[/code]