From: Peter Hutterer Date: Tue, 23 Dec 2014 00:14:19 +0000 (+1000) Subject: hwdb: add rule and first entry for PS/2 mice X-Git-Tag: v219~856 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=60329a9d9fc58b1a4c8a6244592f731839c2e8d7;p=elogind.git hwdb: add rule and first entry for PS/2 mice https://bugs.freedesktop.org/show_bug.cgi?id=87037 --- diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb index a3685f33a..d631551e8 100644 --- a/hwdb/70-mouse.hwdb +++ b/hwdb/70-mouse.hwdb @@ -188,6 +188,10 @@ mouse:usb:v046dpc52b:name:Logitech Unifying Device. Wireless PID:4026: mouse:bluetooth:v046dpb00d:name:Ultrathin Touch Mouse: MOUSE_DPI=1000@1000 +# ImExPS/2 Logitech Wheel Mouse +mouse:ps2:*:name:ImExPS/2 Logitech Wheel Mouse: + MOUSE_DPI=400@250 + ########################################## # Microsoft ########################################## diff --git a/rules/70-mouse.rules b/rules/70-mouse.rules index 0e359e83f..3ea743aff 100644 --- a/rules/70-mouse.rules +++ b/rules/70-mouse.rules @@ -11,5 +11,8 @@ KERNELS=="input*", ENV{ID_BUS}=="usb", \ KERNELS=="input*", ENV{ID_BUS}=="bluetooth", \ IMPORT{builtin}="hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'", \ GOTO="mouse_end" +DRIVERS=="psmouse", SUBSYSTEMS=="serio", \ + IMPORT{builtin}="hwdb 'mouse:ps2::name:$attr{device/name}:'", \ + GOTO="mouse_end" LABEL="mouse_end"