<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 - Support for extra Macro buttons on Razer keyboard"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91983">91983</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Support for extra Macro buttons on Razer keyboard
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.5.0
          </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>bcdonadio@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=118220" name="attach_118220" title="Patched python razer keyboard macro keys activator script">attachment 118220</a> <a href="attachment.cgi?id=118220&action=edit" title="Patched python razer keyboard macro keys activator script">[details]</a></span>
Patched python razer keyboard macro keys activator script

In order to enable the extra Macro buttons, for some unknown proprietary
reason, the Razer keyboards require some USB magic messages to be sent in order
for them to work (otherwise pressing the macro keys send no keycode to the
system).

Sergey from superuser.com already developed the solution in python, but it
would be nice if this solution were already baked in libinput, so the keys can
work out-of-the-box.

The original Sergey's code can be found at the following link:
<a href="http://superuser.com/a/474595/8647">http://superuser.com/a/474595/8647</a>

I'm attaching also a modified version (that I found on the internet some time
ago, god knows where...) which also works with the newer Razer keyboards, like
my Razer BlackWidow 2014 RZ03-0039 (USB VID:PID 1532:011b).

Furthermore, it would also be needed some key remapping, since this keyboard
have the M[1-5] macro keys, but the M1 key is recognized as the "Tools" key
(the M[2-5] are recognized as Launch[5-8]). This breaks some assumptions with
the Gnome shortcuts, rendering the M1 key unusable.</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>