Bug 92246 - Existing mouse hddb entry issue
Summary: Existing mouse hddb entry issue
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: 1.0.1
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-02 14:14 UTC by Robert de Rooy
Modified: 2015-11-09 00:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Robert de Rooy 2015-10-02 14:14:46 UTC
Hi,

I have a mouse here which seems to exist in the HWDB file, except that the Name does not match. The entry in hwdb has mixed case, while mine is all upper-case. As such it is being ignored.

FYI, it does not say HP on it, like the entry in hwdb suggests. Instead it has NETGEAR printed on it and was handed out at a tradeshow.

I defined the following in /etc/udev/hwdb.d/71-mouse.hwdb
mouse:usb:v093ap2510:name:PIXART USB OPTICAL MOUSE:
 MOUSE_DPI=1000@125
 MOUSE_WHEEL_CLICK_ANGLE=15

[robert@t430 hwdb.d]$ sudo udevadm hwdb --update
[robert@t430 hwdb.d]$ sudo udevadm trigger /dev/input/event7
[robert@t430 hwdb.d]$ sudo udevadm info /dev/input/event7|grep DPI
E: MOUSE_DPI=1000@125
[robert@t430 hwdb.d]$ sudo udevadm info /dev/input/event7
P: /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:093A:2510.0002/input/input18/event7
N: input/event7
S: input/by-id/usb-PIXART_USB_OPTICAL_MOUSE-event-mouse
S: input/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-event-mouse
E: DEVLINKS=/dev/input/by-id/usb-PIXART_USB_OPTICAL_MOUSE-event-mouse /dev/input/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-event-mouse
E: DEVNAME=/dev/input/event7
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:093A:2510.0002/input/input18/event7
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=USB_OPTICAL_MOUSE
E: ID_MODEL_ENC=USB\x20OPTICAL\x20MOUSE
E: ID_MODEL_ID=2510
E: ID_PATH=pci-0000:00:1a.0-usb-0:1.2:1.0
E: ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_2_1_0
E: ID_REVISION=0100
E: ID_SERIAL=PIXART_USB_OPTICAL_MOUSE
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030102:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=PIXART
E: ID_VENDOR_ENC=PIXART
E: ID_VENDOR_ID=093a
E: LIBINPUT_DEVICE_GROUP=3/93a/2510/111:usb-0000:00:1a.0-1
E: MAJOR=13
E: MINOR=71
E: MOUSE_DPI=1000@125
E: MOUSE_WHEEL_CLICK_ANGLE=15
E: SUBSYSTEM=input
E: USEC_INITIALIZED=25968850236
Comment 1 Peter Hutterer 2015-11-09 00:47:44 UTC
https://github.com/systemd/systemd/commit/fb8ab3c895d32d077c554af567ae3927489f8297

you may need a newer systemd to see this update.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.