Mailinglist Archive: opensuse-bugs (4675 mails)

< Previous Next >
[Bug 641940] New: input.x11_options.ButtonMapping *not* recognized when using hal config; options in 'old' xorg.conf work as expected.
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 27 Sep 2010 05:31:03 +0000
  • Message-id: <bug-641940-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

https://bugzilla.novell.com/show_bug.cgi?id=641940

https://bugzilla.novell.com/show_bug.cgi?id=641940#c0


Summary: input.x11_options.ButtonMapping *not* recognized when
using hal config; options in 'old' xorg.conf work as
expected.
Classification: openSUSE
Product: openSUSE 11.3
Version: Final
Platform: All
OS/Version: openSUSE 11.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: X.Org
AssignedTo: bnc-team-xorg-bugs@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: pgngw+dev001+novell.com@xxxxxx
QAContact: xorg-maintainer-bugs@xxxxxxxxxxxxxxxxxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10)
Gecko/20100914 SUSE/3.6.10-30.2 Firefox/3.6.10

i'm running opensuse 11.3, with NO xorg.conf, and hardware autodetection.

i've got a functioning Kensington Expert Mouse attached via USB, and properly
detected,

cat /proc/bus/input/devices | grep -i kensington -B2 -A9

I: Bus=0003 Vendor=047d Product=1020 Version=0110
N: Name="Kensington Kensington Expert Mouse"
P: Phys=usb-0000:00:12.0-3.3/input0
S:
Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-3/3-3.3/3-3.3:1.0/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=17
B: KEY=f0000 0 0 0 0
B: REL=103
B: MSC=10

i find the corresponding hal stanza,

lshal

udi =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0_logicaldev_input'
info.capabilities = {'input', 'input.mouse'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0'
(string)
info.product = 'Kensington Kensington Expert Mouse' (string)
info.subsystem = 'input' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0_logicaldev_input'
(string)
input.device = '/dev/input/event2' (string)
input.originating_device =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0' (string)
input.product = 'Kensington Kensington Expert Mouse' (string)
input.x11_driver = 'evdev' (string)
linux.device_file = '/dev/input/event2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:12.0/usb3/3-3/3-3.3/3-3.3:1.0/input/input2/event2'
(string)

then change the logical order of the buttons, swapping Buttons 2 & 8,

cat /usr/share/hal/fdi/policy/20thirdparty/10-expertmouse.fdi
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="input.product" string="Kensington Kensington
Expert Mouse">
<merge key="input.x11_options.ButtonMapping" type="string">1 8
3 4 5 6 7 2</merge>
</match>
</device>
</deviceinfo>

unplug/replug the mouse, and note the inclusion of the ButtonMapping,

lshal
...
udi =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0_logicaldev_input'
info.capabilities = {'input', 'input.mouse'} (string list)
info.category = 'input' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0' (string)
info.product = 'Kensington Kensington Expert Mouse' (string)
info.subsystem = 'input' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0_logicaldev_input'
(string)
input.device = '/dev/input/event2' (string)
input.originating_device =
'/org/freedesktop/Hal/devices/usb_device_47d_1020_noserial_if0' (string)
input.product = 'Kensington Kensington Expert Mouse' (string)
input.x11_driver = 'evdev' (string)
*** input.x11_options.ButtonMapping = '1 8 3 4 5 6 7 2' (string)
linux.device_file = '/dev/input/event2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:12.0/usb3/3-3/3-3.3/3-3.3:1.0/input/input2/event2'
(string)
...

but, despite the Button re-Mapping ack'd by hal, the ACTUAL button order
remains unchaged.

OTOH, if I switch back to using an /etc/X11/xorc.conf confg, with,

Identifier "Mouse[0]"
Driver "evdev"
Option "Device" "/dev/input/event2"
Option "Dev Name" "Kensington Kensington Expert Mouse"
Option "Dev Phys" "usb-0000:00:12.0-3.3/input0"
Option "Name" "Kensington Expert Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
Option "Buttons" "6"
Option "Emulate3Buttons" "true"
Option "ButtonMapping" "1 8 3 4 5 6 7 2"
EndSection

then, as intended, buttons 2 & 8 are correctly swapped.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >