[Bug 641940] New: input.x11_options.ButtonMapping *not* recognized when using hal config; options in 'old' xorg.conf work as expected.
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@forge.provo.novell.com ReportedBy: pgngw+dev001+novell.com@f-m.fm QAContact: xorg-maintainer-bugs@forge.provo.novell.com 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.
https://bugzilla.novell.com/show_bug.cgi?id=641940
https://bugzilla.novell.com/show_bug.cgi?id=641940#c1
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=641940
https://bugzilla.novell.com/show_bug.cgi?id=641940#c2
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=641940
https://bugzilla.novell.com/show_bug.cgi?id=641940#c3
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=641940
https://bugzilla.novell.com/show_bug.cgi?id=641940#c4
dev001x _
https://bugzilla.novell.com/show_bug.cgi?id=641940
https://bugzilla.novell.com/show_bug.cgi?id=641940#c5
--- Comment #5 from dev001x _
1. Better reduce the evdev options you're using to the still existing ones.
do you have a reference for where those "still existing ones" are documented? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=641940
https://bugzilla.novell.com/show_bug.cgi?id=641940#c6
Stefan Dirsch
creating,
/etc/X11/xorg.conf.d/05-evdev-kmouse.conf with content:
Section "InputClass" Identifier "Kensington Expert Mouse" MatchIsPointer "on" MatchProduct "Kensington Expert Mouse" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "Emulate3Buttons" "true" Option "ButtonMapping" "1 8 3 4 5 6 7 2" EndSection
& then,
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.OLD
after logout/login, the trackball's button function/order is, now, as intended.
Ok. So your issue is fixed.
p.s. somewhat related ... my old/orig xorg.conf had a stanza with a bunch of FontPath specs. i'm assuming, similarly to what you suggested here, that a related, FontPath-containing file in /etc/X11/xorg.conf is called for?
No, there isn't a specific one. Although you can add such a section to any. (In reply to comment #5)
(In reply to comment #1)
1. Better reduce the evdev options you're using to the still existing ones.
do you have a reference for where those "still existing ones" are documented?
man evdev -- 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.
participants (1)
-
bugzilla_noreply@novell.com