I now received a wireless qwerty keyboard. I would like to have both azerty keyboards and qwerty keyboards attached to the same PC. I think I should somehow write a second 10-keymap-qwerty.fdi, but I am not sure<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">be</merge>
<merge key="input.xkb.variant" type="string" />
</match>
</device>
</deviceinfo>
1. How to distinguish between the azerty keyboards (I have multiple, both PS2 and USB) and the qwerty keyboard. Preferably I would have a specific rule for the qwerty keyboard based opon its hal info:
probably something likeudi = '/org/freedesktop/Hal/devices/usb_device_4d9_22_noserial_if2_logicaldev_in
put'
info.addons.singleton = {'hald-addon-input'} (string list)
info.capabilities = {'input', 'input.keys', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4d9_22_noserial_if2' (
string)
info.product = 'Device USB Device' (string)
info.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4d9_22_noserial_if2_logicaldev_input' (string)
input.device = '/dev/input/event7' (string)
input.originating_device = '/org/freedesktop/Hal/devices/usb_device_4d9_22_noserial_if2' (string)
input.product = 'Device USB Device' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'be' (string)
input.xkb.model = 'evdev' (string)
input.xkb.rules = 'base' (string)
input.xkb.variant = '' (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:07.2/usb1/1-1/1-1:1.2/input/input7/event7' (string)
<match key="info.udi" equals="/org/freedesktop/Hal/devices/usb_device_4d9_22_noserial_if2_logicaldev_input">
is needed, but I am not sure how to give priority between this match and the generl match on info.capabilities.
Second, can I trust that this udi remains unique (even e.g. when moving to a different pc) ?
Did anyone already try a similar thing ?

