<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Tablet buttons on Thinkpad X201 Tablet not working after updating to systemd 208"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71929">71929</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Tablet buttons on Thinkpad X201 Tablet not working after updating to systemd 208
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rat.o.drat@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After updating to systemd 208, tablet buttons (the 5 buttons under the screen)
stopped working. This issue didn't exist in previous version I was using, which
was 204.

Pressing any of those buttons produces an output like this in dmesg:

[13726.144651] atkbd serio0: Unknown key pressed (translated set 2, code 0x67
on isa0060/serio0).
[13726.144699] atkbd serio0: Use 'setkeycodes 67 <keycode>' to make it known.
[13726.444565] atkbd serio0: Unknown key released (translated set 2, code 0x67
on isa0060/serio0).
[13726.444615] atkbd serio0: Use 'setkeycodes 67 <keycode>' to make it known.


Events for them are sent to /dev/input/event* and the program evtest reports:

Event: time 1385166815.250521, type 4 (EV_MSC), code 4 (MSC_SCAN), value 67
Event: time 1385166815.250521, -------------- SYN_REPORT ------------
Event: time 1385166815.550425, type 4 (EV_MSC), code 4 (MSC_SCAN), value 67
Event: time 1385166815.550425, -------------- SYN_REPORT ------------

However, X.org doesn't get them delivered (I've tested with xev).

Doing as the message in dmesg suggests solves the issue, though this is a
workaround.

This might be associated with the changes in udev (I've noticed that files for
keyboard mapping were changed). 
In /usr/lib/udev/hwdb.d/60-keyboard.hwdb I saw rules that should apply for
those keys (keyboard:dmi:bvn*:bvr*:bd*:svnLENOVO*:pnThinkPad*X2*Tablet*:pvr*)
but they apparently don't work. I've tried copying them to a new hwdb file in
/etc/udev/hwdb.d and using a more general match
(keyboard:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr*) and running udevadm hwdb --update
but that didn't help.

I've attached output from dmesg and dmidecode. Please tell me if any other
information is needed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>