From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E022FEAC7 for ; Sun, 9 Mar 2025 10:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741515401; cv=none; b=mcB0ae3obxmBr/osTu/E2qcehI6pMmLLPhqtmPw43PezhElFsMuosoBkmHvA1100bzGFjH/FgdERyauWrgtBmfm+AagIK3CQegyzO/0Hj4KWjCIZAWpgjfN7rJf6F/ZNFaVrd5Gck0oh29FRgE7T8SAXkWzcoKjCBbjEaH76/y0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741515401; c=relaxed/simple; bh=DtwCZrjBOuQ/dY97NeDkACQriYzDsidflWNMZnp7Yx0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XVxpQY+rBYMC/+EX0YbED0upbEFaoxUt+J9i2/4eAo8Bs4iE1PnKxNHtXXbnMgvoHvA+1a2p/7jz+bxvwUGwDd1EGnbQ29anVohwgEGIXSG3P+iXOLo+35oaDelyNg/u1el1ZM0onuBAh3M35+l137pEYypH2g+nBLLWNTM4ksM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XSjEhOpU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XSjEhOpU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9776EC4CEE5; Sun, 9 Mar 2025 10:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741515400; bh=DtwCZrjBOuQ/dY97NeDkACQriYzDsidflWNMZnp7Yx0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XSjEhOpU4IjusOGW3v1SbtoQEpueZSmkIIiAj0M8FSyyBktR82ZGE1zvOxBSBOhNG 2whfuhuIdHR1lpPSP+hVSWVuuNx/pd98+hkUkyP6Xdd2FmbIY98kBm6cfya6XmiAzJ 7grTkc4uDNBXeYat1ASn5oz2zvHxu0MbgXDZZmLsWduBE8yvFhypU33sSZebDkn9Dk pxYHT1kJJ+tLPR1jnglOtDl5x9CDawVWToELGg01aUnQUnBVDEea3DOz0ncq9HOutl oSupumBw9jyGLwSXVqV3X5R7N1TqsGh1INUSBwp+LVXk4SbCKawC7W/Nw/inIfcNZM NM0gnOrsAPQvg== Date: Sun, 9 Mar 2025 11:16:36 +0100 From: Alexey Gladkov To: Mirto Silvio Busico Cc: kbd@lists.linux.dev Subject: Re: Italian keyboard have only one key wrong in console Message-ID: References: Precedence: bulk X-Mailing-List: kbd@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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