<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - libinput doesn't work with keyboard function exposed by anker 8200 laser mouse"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93474">93474</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libinput doesn't work with keyboard function exposed by anker 8200 laser mouse
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>libinput
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>wengxt@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Mouse product link: <a href="http://www.anker.com/product/98ANDS2368-BA">http://www.anker.com/product/98ANDS2368-BA</a>
lsusb output: Bus 001 Device 004: ID 04d9:fa50 Holtek Semiconductor, Inc.
This mouse is programmable and can bind some mouse button as a keyboard key. It
used to work without problem with xf86-input-evdev, but keyboard simulation
fails to work with xf86-input-libinput, only pointer and mouse button works.
Also tried it with wayland, it still fails to work under wayland.
After inspect xorg.0.log, there's some error log with "Failed to create a
device for /dev/input/event...". libinput-debug-events --device also failes to
initialize the device.
When using xf86-input-evdev, xinput list shows it as:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ USB Laser Game Mouse id=9 [slave pointer (2)]
⎜ ↳ USB Laser Game Mouse id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ USB Laser Game Mouse id=10 [slave keyboard (3)]
The problematic device for libinput is the one with id 11. Id 11 device is
captured by 'MatchIsKeyboard "true"' rule, but considered as pointer by
xf86-input-evdev. But it actually sends key event as shown by "xinput test-xi2
11". "xinput test-xi2" 10 shows that id=10 device doesn't do anything. Maybe
that's why it fails to work with libinput.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>