[systemd-bugs] [Bug 78408] USB and DMI keyboard mappings behave differently
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon May 26 09:32:33 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=78408
--- Comment #3 from ed.678901 at gmail.com ---
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 <ed.678901 at gmail.com> wrote:
> 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?
>
>
> http://unix.stackexchange.com/questions/128234/modifier-keys-cannot-be-mapped-to-regular-keys-on-usb-keyboard-with-udev
>
> 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, <bugzilla-daemon at freedesktop.org> wrote:
>
>> Martin Pitt <martin.pitt at ubuntu.com> changed bug 78408<https://bugs.freedesktop.org/show_bug.cgi?id=78408>
>> What Removed Added Status NEW NEEDINFO
>>
>> *Comment # 1 <https://bugs.freedesktop.org/show_bug.cgi?id=78408#c1> on
>> bug 78408 <https://bugs.freedesktop.org/show_bug.cgi?id=78408> from Martin
>> Pitt <martin.pitt at ubuntu.com> *
>>
>> Can you please explain this in some more detail?
>>
>> (In reply to comment #0 <https://bugs.freedesktop.org/show_bug.cgi?id=78408#c0>)> 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.
>>
>>
>
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140526/8bdeedfa/attachment-0001.html>
More information about the systemd-bugs
mailing list