Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd] add keymap loading for event devices
@ 2020-01-15  9:14 Hannes Winkler
  2020-02-07 10:11 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Winkler @ 2020-01-15  9:14 UTC (permalink / raw)
  To: kbd

Good morning,

there's currently no way to easily apply a keymap (given as a keymap 
file) to an event device.

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.

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.

Best regards,
Hannes Winkler




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [kbd] add keymap loading for event devices
  2020-01-15  9:14 [kbd] add keymap loading for event devices Hannes Winkler
@ 2020-02-07 10:11 ` Alexey Gladkov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2020-02-07 10:11 UTC (permalink / raw)
  To: Hannes Winkler; +Cc: kbd

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-07 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15  9:14 [kbd] add keymap loading for event devices Hannes Winkler
2020-02-07 10:11 ` Alexey Gladkov

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git