Re: [kbd] add keymap loading for event devices
Alexey Gladkov <[email protected]> Fri, 7 Feb 2020 11:11:45 +0100
| Newsgroups | dev.linux.lists.kbd |
|---|---|
| Message-ID | <20200207101145.2ntnc6oopq7vrxom@comp-core-i7-2640m-0182e6> |
On Wed, Jan 15, 2020 at 10:14:29AM +0100, Hannes Winkler wrote: > Good morning, > > there's currently no way to easily apply a keymap (given as a keymap file) > to an event device. I'm not sure that I understand what kind of devices you are talking about. Can you explain more ? > What do you think about adding such a feature to loadkeys? That'd also > enable udev to easily apply the system keymap to hotplugged event devices. Yes. If it will be useful. > Keymaps are practically the only thing evdevs keep as global state > (everything else on a per-fd basis), so you don't need to apply the keymap > every time you open an evdev. It's sufficient to apply the keymap to the > evdev once, when it's plugged in - loadkeys would be perfect for this. > > I'd be willing to contribute if you agree to add this feature to loadkeys. Patches are welcome :) -- Rgrds, legion