Comment 16 for bug 418470

Revision history for this message
Sean Hayes (sean-hayes) wrote :

I created a joystick.fdi in /etc/hal/fdi/policy/:
"<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
 <device>
   <match key="input.product" string="HID 6666:0667">
     <merge key="input.x11_options.SendCoreEvents" type="string">false</merge>
     <merge key="input.x11_options.StartKeysEnabled" type="string">false</merge>
     <merge key="input.x11_options.StartMouseEnabled" type="string">false</merge>
   </match>
 </device>
</deviceinfo>"
Then rebooted, but it didn't work. I've still got mouse and keyboard events being generated by my joystick.

Here's the lshal entry:
"$ lshal -u '/org/freedesktop/Hal/devices/usb_device_6666_667_noserial_if0_logicaldev_input'
udi = '/org/freedesktop/Hal/devices/usb_device_6666_667_noserial_if0_logicaldev_input'
  info.capabilities = {'input', 'input.joystick'} (string list)
  info.category = 'input' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_6666_667_noserial_if0' (string)
  info.product = 'HID 6666:0667' (string)
  info.subsystem = 'input' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_6666_667_noserial_if0_logicaldev_input' (string)
  input.device = '/dev/input/event6' (string)
  input.originating_device = '/org/freedesktop/Hal/devices/usb_device_6666_667_noserial_if0' (string)
  input.product = 'HID 6666:0667' (string)
  input.x11_options.SendCoreEvents = 'false' (string)
  input.x11_options.StartKeysEnabled = 'false' (string)
  input.x11_options.StartMouseEnabled = 'false' (string)
  linux.device_file = '/dev/input/event6' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'input' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/input/input6/event6' (string)

"