<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78408#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78408">bug 78408</a>
              from <span class="vcard"><a class="email" href="mailto:ed.678901@gmail.com" title="ed.678901@gmail.com">ed.678901@gmail.com</a>
</span></b>
        <pre>Hi Martin,

What I mean is that with USB rules, you cannot map a non-modifier key to a
modifier key, unless the modifier key in question is also remapped.  For
example, if you cannot have both Caps Lock and Left Control mapped to the
leftctrl keycode at the same time.

My expectaction is that you should be able to have the same keycode on a
regular key as well as a non-modifier key.  The only reason I mentioned DMI
rules is because they already satisfy this expectation.

For an even more elaborate illustration, could you please see the question
I posted on the Unix & Linux StackExchange site?

<a href="http://unix.stackexchange.com/questions/128234/modifier-keys-cannot-be-mapped-to-regular-keys-on-usb-keyboard-with-udev">http://unix.stackexchange.com/questions/128234/modifier-keys-cannot-be-mapped-to-regular-keys-on-usb-keyboard-with-udev</a>

Let me know if you still don't get what I mean.  I can send you the
hardware models I used, but I'm confident you will discover the same on any
USB keyboard.

Ed


On 25 May 2014 06:09, <<a href="mailto:bugzilla-daemon@freedesktop.org">bugzilla-daemon@freedesktop.org</a>> wrote:

<span class="quote">>  Martin Pitt <<a href="mailto:martin.pitt@ubuntu.com">martin.pitt@ubuntu.com</a>> changed <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="show_bug.cgi?id=78408">bug 78408</a><<a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="show_bug.cgi?id=78408">https://bugs.freedesktop.org/show_bug.cgi?id=78408</a>>
>  What Removed Added  Status NEW NEEDINFO</span >
>
<span class="quote">>  *<a href="show_bug.cgi?id=78408#c1">Comment # 1</a> <<a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="show_bug.cgi?id=78408#c1">https://bugs.freedesktop.org/show_bug.cgi?id=78408#c1</a>> on
> <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="show_bug.cgi?id=78408">bug 78408</a> <<a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="show_bug.cgi?id=78408">https://bugs.freedesktop.org/show_bug.cgi?id=78408</a>> from Martin
> Pitt <<a href="mailto:martin.pitt@ubuntu.com">martin.pitt@ubuntu.com</a>> *</span >
>
<span class="quote">> Can you please explain this in some more detail?</span >
>
<span class="quote">> (In reply to <a href="show_bug.cgi?id=78408#c0">comment #0</a> <<a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - USB and DMI keyboard mappings behave differently"
   href="show_bug.cgi?id=78408#c0">https://bugs.freedesktop.org/show_bug.cgi?id=78408#c0</a>>)> I was expecting the following two mappings to behave the same way:
> >
> > keyboard:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr*
> >  KEYBOARD_KEY_3a=leftctrl
> >
> > keyboard:usb:v*p*
> >  KEYBOARD_KEY_70039=leftctrl</span >
>
<span class="quote">> Those would apply to different devices and different keys, so in which sense
> should they behave the same?
> > However, the USB mapping will only work if the existing key is remapped, e.g.
> >
> > keyboard:usb:v*p*
> >  KEYBOARD_KEY_70039=leftctrl
> >  KEYBOARD_KEY_700e0=capslock
> >
> > It looks like the behaviour for USB keyboards is a bug.</span >
>
<span class="quote">> So what are you trying to do there, and what is the original assignment from
> the kernel? Do you mean you can't assign multiple scan codes to the same key
> code for USB devices?</span >
>
<span class="quote">> Thanks!</span >
>
<span class="quote">>  ------------------------------
> You are receiving this mail because:</span >
>
<span class="quote">>    - You reported the bug.</span >
>
></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>