This is a bit tricky, because I don't know where the best place to put the device is -- within the device tags as a new match, or within a new set of device tags.
First, I uncommented-out the device as it was written in the previous post, so the second stylus appears as a separate device. This is the output:
Code:
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial'
info.linux.driver = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_2' (string)
info.product = 'DTZ-2100' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial' (string)
info.vendor = 'Wacom Co., Ltd' (string)
linux.device_file = '/dev/bus/usb/004/006' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1' (string)
usb_device.bus_number = 4 (0x4) (int)
usb_device.can_wake_up = false (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 260 (0x104) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = true (bool)
usb_device.linux.device_number = 6 (0x6) (int)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1' (string)
usb_device.max_power = 0 (0x0) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'DTZ-2100' (string)
usb_device.product_id = 63 (0x3f) (int)
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'Wacom Co., Ltd' (string)
usb_device.vendor_id = 1386 (0x56a) (int)
usb_device.version = 1.1 (1.1) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input'
info.callouts.add = {'hal-setup-wacom'} (string list)
info.capabilities = {'input', 'input.tablet'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial' (string)
info.product = 'Wacom Cintiq 21UX' (string)
info.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input' (string)
input.device = '/dev/input/event6' (string)
input.originating_device = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial' (string)
input.product = 'Wacom Cintiq 21UX' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.KeepShape = 'off' (string)
input.x11_options.MMonitor = 'off' (string)
input.x11_options.PressCurve = '0,5,95,100' (string)
input.x11_options.ScreenNo = '0' (string)
input.x11_options.Serial = '90178677' (string)
input.x11_options.TPCButton = 'off' (string)
input.x11_options.TVResolution = '1600x1200,1680x1050' (string)
input.x11_options.Threshold = '1' (string)
input.x11_options.TwinView = 'horizontal' (string)
input.x11_options.Type = 'stylus' (string)
input.x11_options.USB = 'on' (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:1d.2/usb4/4-1/4-1:1.0/input/input10/event6' (string)
wacom.types = {'eraser', 'cursor', 'pad'} (string list)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input_subdev_1'
info.capabilities = {'input'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input' (string)
info.product = 'Wacom Cintiq 21UX pad' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input_subdev_1' (string)
input.device = '/dev/input/event6' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.Type = 'pad' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input_subdev_0'
info.capabilities = {'input'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input' (string)
info.product = 'Wacom Cintiq 21UX cursor' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input_subdev_0' (string)
input.device = '/dev/input/event6' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.Type = 'cursor' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input_subdev'
info.capabilities = {'input'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input' (string)
info.product = 'Wacom Cintiq 21UX eraser' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_logicaldev_input_subdev' (string)
input.device = '/dev/input/event6' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.KeepShape = 'off' (string)
input.x11_options.MMonitor = 'off' (string)
input.x11_options.PressCurve = '0,5,95,100' (string)
input.x11_options.ScreenNo = '0' (string)
input.x11_options.TPCButton = 'off' (string)
input.x11_options.TVResolution = '1600x1200,1680x1050' (string)
input.x11_options.Threshold = '1' (string)
input.x11_options.TwinView = 'horizontal' (string)
input.x11_options.Type = 'eraser' (string)
input.x11_options.USB = 'on' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0'
info.linux.driver = 'wacom' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial' (string)
info.product = 'USB HID Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0' (string)
usb.bus_number = 4 (0x4) (int)
usb.can_wake_up = false (bool)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 260 (0x104) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 3 (0x3) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 2 (0x2) (int)
usb.interface.subclass = 1 (0x1) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 6 (0x6) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0' (string)
usb.max_power = 0 (0x0) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB HID Interface' (string)
usb.product_id = 63 (0x3f) (int)
usb.speed = 12.0 (12) (double)
usb.vendor = 'Wacom Co., Ltd' (string)
usb.vendor_id = 1386 (0x56a) (int)
usb.version = 1.1 (1.1) (double)
Now I'll try it again, putting the 2nd stylus just after the 1st stylus, within the same device tags:
Code:
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial'
info.linux.driver = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_2' (string)
info.product = 'DTZ-2100' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial' (string)
info.vendor = 'Wacom Co., Ltd' (string)
linux.device_file = '/dev/bus/usb/004/007' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1' (string)
usb_device.bus_number = 4 (0x4) (int)
usb_device.can_wake_up = false (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 260 (0x104) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = true (bool)
usb_device.linux.device_number = 7 (0x7) (int)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1' (string)
usb_device.max_power = 0 (0x0) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'DTZ-2100' (string)
usb_device.product_id = 63 (0x3f) (int)
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'Wacom Co., Ltd' (string)
usb_device.vendor_id = 1386 (0x56a) (int)
usb_device.version = 1.1 (1.1) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0'
info.linux.driver = 'wacom' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial' (string)
info.product = 'USB HID Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0' (string)
usb.bus_number = 4 (0x4) (int)
usb.can_wake_up = false (bool)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 260 (0x104) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 3 (0x3) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 2 (0x2) (int)
usb.interface.subclass = 1 (0x1) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 7 (0x7) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0' (string)
usb.max_power = 0 (0x0) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB HID Interface' (string)
usb.product_id = 63 (0x3f) (int)
usb.speed = 12.0 (12) (double)
usb.vendor = 'Wacom Co., Ltd' (string)
usb.vendor_id = 1386 (0x56a) (int)
usb.version = 1.1 (1.1) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input'
info.callouts.add = {'hal-setup-wacom'} (string list)
info.capabilities = {'input', 'input.tablet'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0' (string)
info.product = 'Wacom Cintiq 21UX' (string)
info.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input' (string)
input.device = '/dev/input/event6' (string)
input.originating_device = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0' (string)
input.product = 'Wacom Cintiq 21UX' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.KeepShape = 'off' (string)
input.x11_options.MMonitor = 'off' (string)
input.x11_options.PressCurve = '0,5,95,100' (string)
input.x11_options.ScreenNo = '0' (string)
input.x11_options.Serial = '90178677' (string)
input.x11_options.TPCButton = 'off' (string)
input.x11_options.TVResolution = '1600x1200,1680x1050' (string)
input.x11_options.Threshold = '1' (string)
input.x11_options.TwinView = 'horizontal' (string)
input.x11_options.Type = 'stylus' (string)
input.x11_options.USB = 'on' (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:1d.2/usb4/4-1/4-1:1.0/input/input11/event6' (string)
wacom.types = {'eraser', 'cursor', 'pad'} (string list)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input_subdev_1'
info.capabilities = {'input'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input' (string)
info.product = 'Wacom Cintiq 21UX pad' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input_subdev_1' (string)
input.device = '/dev/input/event6' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.Type = 'pad' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input_subdev_0'
info.capabilities = {'input'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input' (string)
info.product = 'Wacom Cintiq 21UX cursor' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input_subdev_0' (string)
input.device = '/dev/input/event6' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.Type = 'cursor' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input_subdev'
info.capabilities = {'input'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input' (string)
info.product = 'Wacom Cintiq 21UX eraser' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_3f_noserial_if0_logicaldev_input_subdev' (string)
input.device = '/dev/input/event6' (string)
input.x11_driver = 'wacom' (string)
input.x11_options.KeepShape = 'off' (string)
input.x11_options.MMonitor = 'off' (string)
input.x11_options.PressCurve = '0,5,95,100' (string)
input.x11_options.ScreenNo = '0' (string)
input.x11_options.TPCButton = 'off' (string)
input.x11_options.TVResolution = '1600x1200,1680x1050' (string)
input.x11_options.Threshold = '1' (string)
input.x11_options.TwinView = 'horizontal' (string)
input.x11_options.Type = 'eraser' (string)
input.x11_options.USB = 'on' (string)
As you can see, it's recognizing the Serial number that I entered in the options, and there's a very slight difference between the two lshal outputs, though I can't tell which one is better.
There seem to be a lot of variables when deciding upon where to enter the 2nd pen... I wonder where the correct location is?
Edit:
I also tried it like this:
Code:
<deviceinfo version="0.2">
<device>
<match key="input.x11_driver" contains="wacom">
<match key="input.x11_options.Type" contains="stylus">
<merge key="input.x11_options.USB" type="string">on</merge>
<merge key="input.x11_options.TPCButton" type="string">off</merge>
<merge key="input.x11_options.KeepShape" type="string">off</merge>
<merge key="input.x11_options.Threshold" type="string">1</merge>
<merge key="input.x11_options.PressCurve" type="string">5,0,100,95</merge>
<merge key="input.x11_options.MMonitor" type="string">off</merge>
<merge key="input.x11_options.TwinView" type="string">horizontal</merge>
<merge key="input.x11_options.TVResolution" type="string">1600x1200,1680x1050</merge>
<merge key="input.x11_options.ScreenNo" type="string">0</merge>
<merge key="input.x11_options.Serial" type="string">94379391</merge>
</match>
<match key="input.x11_options.Type" contains="stylus">
<merge key="input.x11_options.USB" type="string">on</merge>
<merge key="input.x11_options.TPCButton" type="string">off</merge>
<merge key="input.x11_options.KeepShape" type="string">off</merge>
<merge key="input.x11_options.Threshold" type="string">1</merge>
<merge key="input.x11_options.PressCurve" type="string">0,5,95,100</merge>
<merge key="input.x11_options.MMonitor" type="string">off</merge>
<merge key="input.x11_options.TwinView" type="string">horizontal</merge>
<merge key="input.x11_options.TVResolution" type="string">1600x1200,1680x1050</merge>
<merge key="input.x11_options.ScreenNo" type="string">0</merge>
<merge key="input.x11_options.Serial" type="string">90178677</merge>
</match>
</match>
<match key="input.x11_driver" contains="wacom">
<match key="input.x11_options.Type" contains="eraser">
<merge key="input.x11_options.USB" type="string">on</merge>
<merge key="input.x11_options.TPCButton" type="string">off</merge>
<merge key="input.x11_options.KeepShape" type="string">off</merge>
<merge key="input.x11_options.Threshold" type="string">1</merge>
<merge key="input.x11_options.PressCurve" type="string">0,5,95,100</merge>
<merge key="input.x11_options.MMonitor" type="string">off</merge>
<merge key="input.x11_options.TwinView" type="string">horizontal</merge>
<merge key="input.x11_options.TVResolution" type="string">1600x1200,1680x1050</merge>
<merge key="input.x11_options.ScreenNo" type="string">0</merge>
</match>
</match>
</device>
</deviceinfo>
And there was no change -- the 2nd device listed takes priority, regardless of where in the file it's entered... curious...
Bookmarks