NetBSD Problem Report #58405
From www@netbsd.org Sat Jul 6 17:23:36 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 1D1FD1A923C
for <gnats-bugs@gnats.NetBSD.org>; Sat, 6 Jul 2024 17:23:36 +0000 (UTC)
Message-Id: <20240706172334.B73E91A923E@mollari.NetBSD.org>
Date: Sat, 6 Jul 2024 17:23:34 +0000 (UTC)
From: alexander245@wp.pl
Reply-To: alexander245@wp.pl
To: gnats-bugs@NetBSD.org
Subject: Selecting Polish keyboard type in sysinst is useless
X-Send-Pr-Version: www-1.0
>Number: 58405
>Category: install
>Synopsis: Selecting Polish keyboard type in sysinst is useless
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 06 17:25:00 +0000 2024
>Last-Modified: Mon Oct 20 14:05:03 +0000 2025
>Originator: Alexander
>Release: 9.4
>Organization:
-
>Environment:
NetBSD localhost 9.4 NetBSD 9.4 (GENERIC) #0: Sat Apr 20 13:32:22 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When you install the system with the Polish keyboard type selected, the system starts with an error:
Keyboard wsconsctl: WSKBDIO_SETENCODING: Invalid argument
There is in wscons.conf:
encoding pl
>How-To-Repeat:
Install system with Polish keyboard type. Then run installed system and whatch messages.
>Fix:
There is no fix. It is know that encoding pl does not work in NetBSD 9.4.
By the way polish porgrammer keyboard is the most used in Poland.
>Audit-Trail:
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/58405: Selecting Polish keyboard type in sysinst is
useless
Date: Sun, 7 Jul 2024 11:20:21 +0000 (UTC)
On Sat, 6 Jul 2024, alexander245@wp.pl wrote:
>> Description:
> When you install the system with the Polish keyboard type selected, the system starts with an error:
>
> Keyboard wsconsctl: WSKBDIO_SETENCODING: Invalid argument
>
> There is in wscons.conf:
> encoding pl
>
Dup of PR #57234 and PR #57844.
Can you see if the keymap(s) in PR #57234 work for you?
-RVP
From: szymon 01 <s9281723@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/58405: Selecting Polish keyboard type in sysinst is useless
Date: Sun, 7 Jul 2024 14:12:18 +0200
--0000000000005ebd97061ca71ca5
Content-Type: text/plain; charset="UTF-8"
Wouldn't it be easier to remove the option to select the Polish keyboard
type in the system installation program?
--0000000000005ebd97061ca71ca5
Content-Type: text/html; charset="UTF-8"
<div dir="ltr">Wouldn't it be easier to remove the option to select the Polish keyboard type in the system installation program?</div>
--0000000000005ebd97061ca71ca5--
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/58405: Selecting Polish keyboard type in sysinst is useless
Date: Sun, 7 Jul 2024 13:56:19 -0000 (UTC)
s9281723@gmail.com (szymon 01) writes:
> Wouldn't it be easier to remove the option to select the Polish keyboard
> type in the system installation program?
Not all keyboard drivers support all keyboard encodings.
NetBSD/amiga has a keyboard driver with a polish keymap. If people agree,
you could also add polish keymaps to the ukbd, pckbd and adb drivers.
The next problem then would be to provide a ISO8859-2 font for
the console. The NetBSD/amiga "ite" console comes with one, but
the regular wscons comes with ISO8859-1 fonts.
The installation program unfortunately cannot know what a particular
keyboard provides. If you drop the Polish keyboard selection, then
someone will complain where it would work and cannot be chosen.
Still a lot to do ...
From: szymon <s9281723@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/58405: Selecting Polish keyboard type in sysinst is useless
Date: Tue, 9 Jul 2024 14:48:21 +0200
After installation, I changed
encoding pl
to
encoding us
in /etc/wscons.conf file.
In the /etc/X11/xorg.conf I added
Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "pl"
EndSection
and I have polish letters in X11.
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58405 CVS commit: src/sys/dev
Date: Sat, 24 May 2025 16:50:54 +0000
Module Name: src
Committed By: nia
Date: Sat May 24 16:50:54 UTC 2025
Modified Files:
src/sys/dev/hid: hidkbdmap.c
src/sys/dev/pckbport: wskbdmap_mfii.c
Log Message:
wskbd(4): Define USB and PS/2 keymaps for KB_PL
This is the de-facto standard "Polish programmers" QWERTY keyboard,
what X11 simply calls "Polish". It's a simple variation of US QWERTY
with some extra characters when right alt is pressed.
Defining this layout is slightly optimistic, since even with latin-2
fonts loaded and the appropriate locale set, wscons seems to struggle
to input most of these characters.
Regardless, this allows the supposedly supported "pl" encoding
to not fail loading with an error message, and allows X11 to
auto-detect the keyboard layout (defining KB_PL and as an alias of
KB_US also accomplishes this goal), with room for proper UTF-8
support in the future.
PR port-amd64/57234 "# wsconsctl -k -w encoding=pl" *should* work.
PR kern/57844 wscons doesn't support encoding=pl contrary to wskbd(4) man page
PR install/58405 Selecting Polish keyboard type in sysinst is useless
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/hid/hidkbdmap.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/pckbport/wskbdmap_mfii.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58405 CVS commit: [netbsd-10] src/sys/dev
Date: Mon, 20 Oct 2025 14:03:01 +0000
Module Name: src
Committed By: martin
Date: Mon Oct 20 14:03:00 UTC 2025
Modified Files:
src/sys/dev/hid [netbsd-10]: hidkbdmap.c
src/sys/dev/pckbport [netbsd-10]: wskbdmap_mfii.c
Log Message:
Pull up following revision(s) (requested by nia in ticket #1180):
sys/dev/hid/hidkbdmap.c: revision 1.16
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.36
wskbd(4): Define USB and PS/2 keymaps for KB_PL
This is the de-facto standard "Polish programmers" QWERTY keyboard,
what X11 simply calls "Polish". It's a simple variation of US QWERTY
with some extra characters when right alt is pressed.
Defining this layout is slightly optimistic, since even with latin-2
fonts loaded and the appropriate locale set, wscons seems to struggle
to input most of these characters.
Regardless, this allows the supposedly supported "pl" encoding
to not fail loading with an error message, and allows X11 to
auto-detect the keyboard layout (defining KB_PL and as an alias of
KB_US also accomplishes this goal), with room for proper UTF-8
support in the future.
PR port-amd64/57234 "# wsconsctl -k -w encoding=pl" *should* work.
PR kern/57844 wscons doesn't support encoding=pl contrary to wskbd(4) man page
PR install/58405 Selecting Polish keyboard type in sysinst is useless
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.15.4.1 src/sys/dev/hid/hidkbdmap.c
cvs rdiff -u -r1.35 -r1.35.4.1 src/sys/dev/pckbport/wskbdmap_mfii.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.