<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:patrakov@gmail.com" title="Alexander E. Patrakov <patrakov@gmail.com>"> <span class="fn">Alexander E. Patrakov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Some mouse DPI data"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87037">bug 87037</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>NEW
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Some mouse DPI data"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87037#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Some mouse DPI data"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87037">bug 87037</a>
from <span class="vcard"><a class="email" href="mailto:patrakov@gmail.com" title="Alexander E. Patrakov <patrakov@gmail.com>"> <span class="fn">Alexander E. Patrakov</span></a>
</span></b>
<pre>The rule that you suggested doesn't work. Here is a working rule:
DRIVERS=="psmouse", \
IMPORT{builtin}="hwdb 'mouse:ps2::name:$attr{device/name}:'", \
GOTO="mouse_end"
The hwdb entry works as it is:
mouse:ps2:*:name:ImExPS/2 Logitech Wheel Mouse:
MOUSE_DPI=400@250
Result:
# udevadm info /dev/input/event3
P: /devices/platform/i8042/serio1/input/input4/event3
N: input/event3
S: input/by-path/platform-i8042-serio-1-event-mouse
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-1-event-mouse
E: DEVNAME=/dev/input/event3
E: DEVPATH=/devices/platform/i8042/serio1/input/input4/event3
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_PATH=platform-i8042-serio-1
E: ID_PATH_TAG=platform-i8042-serio-1
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=67
E: MOUSE_DPI=400@250
E: SUBSYSTEM=input
E: USEC_INITIALIZED=384140</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>