[clug] how do I disable usb IR device for Mythbox [solved]

Paul mylists at wilsononline.id.au
Mon Nov 9 15:52:40 MST 2009


On 9/11/2009 10:06 PM, Paul wrote:
> Hi,
> I have reached the end of my experience on how to handle this issue with 
> my Fedora box and was hoping for some insight on how to solve this issue.
> I installed a another DVB tuner (USB) which comes with an inbuilt  IR 
> device, but it seems to be recieving stray inputs meant from my original 
> IR reciever.
> ie I think effectively its doing two things when I hit my RC eg when I 
> hit OK this normal translates to [enter] but the 2nd IR device is 
> sending "|" [mute] key.
> 
> So I think the solution is to somehow disable this other device without 
> affecting the DVB adapter.
> 
> after some googling I see there is a there is something called HAL which 
> controlled this somehow
> 
> Does anyone have any experience with HAL
> 
> lshal show me the device in question
> ....
> udi = 
> '/org/freedesktop/Hal/devices/usb_device_5d8_810f_001_logicaldev_input'
>  info.addons.singleton = {'hald-addon-input'} (string list)
>  info.callouts.add = {'fedora-setup-keyboard'} (string list)
>  info.capabilities = {'input', 'input.keys', 'button'} (string list)
>  info.category = 'input'  (string)
>  info.parent = '/org/freedesktop/Hal/devices/usb_device_5d8_810f_001'  
> (string)
>  info.product = 'IR-receiver inside an USB DVB receiver'  (string)
>  info.subsystem = 'input'  (string)
>  info.udi = 
> '/org/freedesktop/Hal/devices/usb_device_5d8_810f_001_logicaldev_input'  
> (string)
>  input.device = '/dev/input/event7'  (string)
>  input.originating_device = 
> '/org/freedesktop/Hal/devices/usb_device_5d8_810f_001'  (string)
>  input.product = 'IR-receiver inside an USB DVB receiver'  (string)
>  input.x11_driver = 'evdev'  (string)
>  input.xkb.layout = 'us'  (string)
>  input.xkb.model = 'pc105+inet'  (string)
>  input.xkb.rules = 'base'  (string)
>  linux.device_file = '/dev/input/event7'  (string)
>  linux.hotplug_type = 2  (0x2)  (int)
>  linux.subsystem = 'input'  (string)
>  linux.sysfs_path = 
> '/sys/devices/pci0000:00/0000:00:02.1/usb1/1-7/input/input9/event7'  
> (string)
> 
> 


through some trail and error I found the following HAL config worked


<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
   <match key="info.product" string="IR-receiver inside an USB DVB receiver" >
     <merge key="info.ignore" type="bool">true</merge>
   </match>
  </device>
</deviceinfo>


Now Xorg ignores this device

Thanks



More information about the linux mailing list