public inbox for kbd@lists.linux.dev
 help / color / mirror / Atom feed
From: Alexey Gladkov <legion@kernel.org>
To: Mirto Silvio Busico <mirtosilvio.busico@fastwebnet.it>
Cc: kbd@lists.linux.dev
Subject: Re: Italian keyboard have only one key wrong in console
Date: Sun, 9 Mar 2025 11:16:36 +0100	[thread overview]
Message-ID: <Z81qhKUrcju2eq0C@example.org> (raw)
In-Reply-To: <c1f81847-7161-4c0d-9a99-88c1028a4eaf@fastwebnet.it>

On Sat, Mar 08, 2025 at 07:09:57PM +0100, Mirto Silvio Busico wrote:
> Hi all
> 
> I have an italian qwerty keyboard and everything work correctly in KDE 
> Plasma: konsole application sees the correct characters using bash or zsh.
> 
> Strangely activating the console (CTRL+ALT+F3) the only key I cannot 
> type is the dash (-).
> The key is the one near the right shift (the key with the red square 
> around in the attached image) . This key types dash (-) and with shift 
> types underscore (_)
> 
> But on the console it types slash (/) and with shift types underscore (_)
> 
> All the other keys (normal and with shift) type what is expected.
> 
> I'm using Manjaro with KDE and uname says
> 
> *Linux bianco500 6.13.5-2-MANJARO #1 SMP PREEMPT_DYNAMIC Tue, 04 Mar 
> 2025 13:20:27 +0000 x86_64 GNU/Linux*
> 
> I asked for help on the Manjaro forum (see 
> https://forum.manjaro.org/t/console-italian-keyboard-layout-with-one-key-wrong/175166 
> )
> 
> But from what I understant it seems more a bug than a misconfiguration.
> 
> What can I do?
> 

The kbd configures the console in the kernel. Once the keymap and font
have been configured, the further work of handling keyboard events lies
with the kernel.

The Xorg/Wayalnd clients uses a different way to handle keyboard input.
Clients uses the xkb library, to which raw keyboard input is passed. The
xkb has its own keymaps and does not use keymaps from the kernel in any
way.

So these are completely different systems for handling keyboard events.

Some distributions (such as Debian) generate kernel keymaps from keymaps
from xkb. But there are stricter restrictions in the kernel and xkb
keymaps can't just be used. I have a branch in which I'm trying to convert
xkb keymap to kernel keymap, but it needs more work and testing.

You can use the debian solution and try to generate the keymap for the
kernel from xkb.

https://salsa.debian.org/installer-team/console-setup

-- 
Rgrds, legion


      reply	other threads:[~2025-03-09 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-08 18:09 Italian keyboard have only one key wrong in console Mirto Silvio Busico
2025-03-09 10:16 ` Alexey Gladkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z81qhKUrcju2eq0C@example.org \
    --to=legion@kernel.org \
    --cc=kbd@lists.linux.dev \
    --cc=mirtosilvio.busico@fastwebnet.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox