<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#c3">Comment # 3</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>I wrote my reply too quickly:
The first paragraph should read "...you cannot map a modifier key to a
non-modifier key..."
The second paragraph should read "...the same keycode on a regular key as
well as a modifier key..."
Sorry about the confusion. The link I posted contains a thoroughly proofed
explanation.
On 26 May 2014 12:20, Ed I <<a href="mailto:ed.678901@gmail.com">ed.678901@gmail.com</a>> wrote:
<span class="quote">> Hi Martin,</span >
>
<span class="quote">> 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.</span >
>
<span class="quote">> 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.</span >
>
<span class="quote">> For an even more elaborate illustration, could you please see the question
> I posted on the Unix & Linux StackExchange site?</span >
>
>
<span class="quote">> <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></span >
>
<span class="quote">> 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.</span >
>
<span class="quote">> Ed</span >
>
>
<span class="quote">> On 25 May 2014 06:09, <<a href="mailto:bugzilla-daemon@freedesktop.org">bugzilla-daemon@freedesktop.org</a>> wrote:</span >
>
<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
>>
>> *<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>> *
>>
>> Can you please explain this in some more detail?
>>
>> (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
>>
>> 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.
>>
>> 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?
>>
>> Thanks!
>>
>> ------------------------------
>> You are receiving this mail because:
>>
>> - 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>