<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 - DWT not working on 13 inch Macbook Pro 2015 due to wrong dwt keyboard assignment"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93367">93367</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>DWT not working on 13 inch Macbook Pro 2015 due to wrong dwt keyboard assignment
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (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>tigersoldi@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=120491" name="attach_120491" title="[PATCH] touchpad: for apple unibody touchpad, disable keyboards that are not the same product id for dwt">attachment 120491</a> <a href="attachment.cgi?id=120491&action=edit" title="[PATCH] touchpad: for apple unibody touchpad, disable keyboards that are not the same product id for dwt">[details]</a></span>
[PATCH] touchpad: for apple unibody touchpad, disable keyboards that are not
the same product id for dwt
Hi, I have a 13 inch Macbook Pro 2015. DWT is completely broken on it.
The version I'm using is compiled from Master branch. The problem is that there
are two (or more?) keyboard devices: "Broadcom Corp. Bluetooth USB Host
Controller" and "Apple Inc. Apple Internal Keyboard / Trackpad". libinput
picked the wrong one for DWT detection.
Here is the hardware information:
[tiger@mbp ~]$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Broadcom Corp. Bluetooth USB Host Controller id=11 [slave pointer
(2)]
⎜ ↳ bcm5974 id=13 [slave pointer
(2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Broadcom Corp. Bluetooth USB Host Controller id=10 [slave keyboard
(3)]
↳ Apple Inc. Apple Internal Keyboard / Trackpad id=12 [slave
keyboard (3)]
[tiger@mbp ~]$ xinput list-props 10
Device 'Broadcom Corp. Bluetooth USB Host Controller':
<......>
Device Product ID (261): 1452, 33424
<......>
[tiger@mbp ~]$ xinput list-props 12
Device 'Apple Inc. Apple Internal Keyboard / Trackpad':
<......>
Device Product ID (261): 1452, 627
<......>
[tiger@mbp ~]$ xinput list-props 13
Device 'bcm5974':
Device Enabled (139): 1
<......>
libinput Disable While Typing Enabled (297): 1
libinput Disable While Typing Enabled Default (298): 1
<......>
Device Product ID (261): 1452, 627
<......>
I have a workaround by forcing the touchpad to use the keyboard with the same
vendor and product ID as the dwt keyboard. See the attached patch. Although it
works, I highly doubt it's the right solution. A better solution may be
supporting multiple dwt keyboards, or checking some other properties that can
filter out the fake keyboard device.</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>