[Bug 267922] Contour Rollermouse Red not supported by ums(4)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 Dec 2022 01:20:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267922

--- Comment #15 from Atte Peltomäki <koston@iki.fi> ---
I'm delighted to report that your patch together with the loader.conf options
have successfully fixed the mouse, and it is now working 100% as expected.
Thank you very much!!

From the working setup Xorg.0.log:

[    14.642] (II) config/udev: Adding input device Contour Design Contour
Rollermouse Red Keyboard (/dev/input/event10)
[    14.642] (**) Contour Design Contour Rollermouse Red Keyboard: Applying
InputClass "evdev keyboard catchall"
[    14.642] (**) Contour Design Contour Rollermouse Red Keyboard: Applying
InputClass "Evdev keyboard"
[    14.642] (**) Contour Design Contour Rollermouse Red Keyboard: Applying
InputClass "libinput keyboard catchall"
[    14.642] (**) Contour Design Contour Rollermouse Red Keyboard: Applying
InputClass "keyboard-all"
[    14.642] (II) Using input driver 'evdev' for 'Contour Design Contour
Rollermouse Red Keyboard'
[    14.642] (**) Contour Design Contour Rollermouse Red Keyboard: always
reports core events
[    14.642] (**) evdev: Contour Design Contour Rollermouse Red Keyboard:
Device: "/dev/input/event10"
[    14.642] (--) evdev: Contour Design Contour Rollermouse Red Keyboard:
Vendor 0xb33 Product 0x1004
[    14.642] (--) evdev: Contour Design Contour Rollermouse Red Keyboard: Found
keys
[    14.642] (II) evdev: Contour Design Contour Rollermouse Red Keyboard:
Configuring as keyboard
[    14.642] (**) Option "config_info" "udev:/dev/input/event10"
[    14.642] (II) XINPUT: Adding extended input device "Contour Design Contour
Rollermouse Red Keyboard" (type: KEYBOARD, id 8)
[    14.642] (**) Option "xkb_rules" "evdev"
[    14.642] (**) Option "xkb_layout" "us,fi"
[    14.642] (**) Option "xkb_variant" "hhk"
[    14.642] (**) Option "xkb_options" "grp:rwin_toggle"
[    14.642] (II) config/udev: Adding input device Contour Design Contour
Rollermouse Red Consumer Control (/dev/input/event11)
[    14.642] (**) Contour Design Contour Rollermouse Red Consumer Control:
Applying InputClass "evdev keyboard catchall"
[    14.642] (**) Contour Design Contour Rollermouse Red Consumer Control:
Applying InputClass "Evdev keyboard"
[    14.642] (**) Contour Design Contour Rollermouse Red Consumer Control:
Applying InputClass "libinput keyboard catchall"
[    14.642] (**) Contour Design Contour Rollermouse Red Consumer Control:
Applying InputClass "keyboard-all"
[    14.642] (II) Using input driver 'evdev' for 'Contour Design Contour
Rollermouse Red Consumer Control'
[    14.642] (**) Contour Design Contour Rollermouse Red Consumer Control:
always reports core events
[    14.642] (**) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Device: "/dev/input/event11"
[    14.642] (--) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Vendor 0xb33 Product 0x1004
[    14.642] (--) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Found 1 mouse buttons
[    14.642] (--) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Found keys
[    14.642] (II) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Forcing relative x/y axes to exist.
[    14.642] (II) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Configuring as mouse
[    14.642] (II) evdev: Contour Design Contour Rollermouse Red Consumer
Control: Configuring as keyboard
[    14.642] (**) evdev: Contour Design Contour Rollermouse Red Consumer
Control: YAxisMapping: buttons 4 and 5
[    14.642] (**) evdev: Contour Design Contour Rollermouse Red Consumer
Control: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout:
200
[    14.642] (**) Option "config_info" "udev:/dev/input/event11"
[    14.642] (II) XINPUT: Adding extended input device "Contour Design Contour
Rollermouse Red Consumer Control" (type: KEYBOARD, id 9)
[    14.642] (**) Option "xkb_rules" "evdev"
[    14.642] (**) Option "xkb_layout" "us,fi"
[    14.642] (**) Option "xkb_variant" "hhk"
[    14.642] (**) Option "xkb_options" "grp:rwin_toggle"
[    14.643] (II) evdev: Contour Design Contour Rollermouse Red Consumer
Control: initialized for relative axes.
[    14.643] (**) Contour Design Contour Rollermouse Red Consumer Control:
(accel) keeping acceleration scheme 1
[    14.643] (**) Contour Design Contour Rollermouse Red Consumer Control:
(accel) acceleration profile 0
[    14.643] (**) Contour Design Contour Rollermouse Red Consumer Control:
(accel) acceleration factor: 2.000
[    14.643] (**) Contour Design Contour Rollermouse Red Consumer Control:
(accel) acceleration threshold: 4


[....]

[    14.813] (II) config/udev: Adding input device Contour Design Contour
Rollermouse Red (/dev/input/event9)
[    14.813] (**) Contour Design Contour Rollermouse Red: Applying InputClass
"evdev pointer catchall"
[    14.813] (**) Contour Design Contour Rollermouse Red: Applying InputClass
"libinput pointer catchall"
[    14.813] (II) Using input driver 'libinput' for 'Contour Design Contour
Rollermouse Red'
[    14.813] (**) Contour Design Contour Rollermouse Red: always reports core
events
[    14.813] (**) Option "Device" "/dev/input/event9"
[    14.813] (**) Option "_source" "server/udev"
[    14.815] (II) event9  - Contour Design Contour Rollermouse Red: is tagged
by udev as: Mouse
[    14.815] (II) event9  - Contour Design Contour Rollermouse Red: device is a
pointer
[    14.817] (II) event9  - Contour Design Contour Rollermouse Red: device
removed
[    14.817] (**) Option "config_info" "udev:/dev/input/event9"
[    14.817] (II) XINPUT: Adding extended input device "Contour Design Contour
Rollermouse Red" (type: MOUSE, id 16)
[    14.817] (**) Option "AccelerationScheme" "none"
[    14.817] (**) Contour Design Contour Rollermouse Red: (accel) selected
scheme none/0
[    14.817] (**) Contour Design Contour Rollermouse Red: (accel) acceleration
factor: 2.000
[    14.817] (**) Contour Design Contour Rollermouse Red: (accel) acceleration
threshold: 4
[    14.818] (II) event9  - Contour Design Contour Rollermouse Red: is tagged
by udev as: Mouse
[    14.819] (II) event9  - Contour Design Contour Rollermouse Red: device is a
pointer

input/event9 is registering all mouse functionality- pointer movement and mouse
buttons.

input/event10 registers the copy and paste buttons, which depending on the mode
the device is in, either produce Ctrl-C/Ctrl-V (PC mode) or Meta-C/Meta-V (Mac
mode) key combinations, or nothing (HID mode).

input/event11 registers nothing at all.

If system is booted without the loader.conf options, operation degenerates back
to the first reported erratic behaviour. I did not capture exhaustive debug
data from it, though.

Let me know if there's anything else you need. FYI, I'm traveling again
tomorrow and will likely be gone until end of next week, then I can get back to
this.

-- 
You are receiving this mail because:
You are the assignee for the bug.