NetBSD Problem Report #54784
From www@netbsd.org Wed Dec 18 14:53:14 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 714117A18F
for <gnats-bugs@gnats.NetBSD.org>; Wed, 18 Dec 2019 14:53:14 +0000 (UTC)
Message-Id: <20191218145313.65D0C7A1D7@mollari.NetBSD.org>
Date: Wed, 18 Dec 2019 14:53:13 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: gnats-bugs@NetBSD.org
Subject: Cannot input some keys in JP keyboard on Xorg server when specify wskbd Protocol
X-Send-Pr-Version: www-1.0
>Number: 54784
>Category: xsrc
>Synopsis: Cannot input some keys in JP keyboard on Xorg server when specify wskbd Protocol
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: xsrc-manager
>State: needs-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 18 14:55:00 +0000 2019
>Closed-Date:
>Last-Modified: Sat Jul 10 16:17:50 +0000 2021
>Originator: Yasushi Oshima
>Release: NetBSD 9.0_RC1
>Organization:
>Environment:
NetBSD tachibana 9.0_RC1 NetBSD 9.0_RC1 (GENERIC) #0: Wed Dec 18 12:23:18 JST 2019 oshima@sudachi:/export/netbsd-9/20191218/obj/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
When set X kbd to Protocol wskbd and JP map,
cannot input some keys in japanese keyboard.
These keys:
'\|' (Left of Back Space on JP106)
'\_' (Left of Right-Shift on JP106)
Muhenkan (Left of SPACE BAR on JP106)
Henkan (Right of SPACE BAR on JP106)
KATAKANA-HIRAGANA (Right of Henkan on JP106, or Left of MENU/WIN)
This is the same PR/48347, this problem was pointed out in it,
but PR was closed already.
I sent a patch for pckbd(WsXtMap) again.
>How-To-Repeat:
Put PS/2 Japanese keyboard to PC or prepare note-pc which has japanese keyboard.
Set xorg.conf as the following,
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "Protocol" "wskbd"
Option "Device" "/dev/wskbd0"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
EndSection
Run Xserver and Input the following keys.
'\|' (Left of Back Space on JP106)
'\_' (Left of Right-Shift on JP106)
Muhenkan (Left of SPACE BAR on JP106)
Henkan (Right of SPACE BAR on JP106)
KATAKANA-HIRAGANA (Right of Henkan on JP106, or Left of MENU/WIN)
>Fix:
Patch for xf86-input-keyboard:
--- a/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
+++ b/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
@@ -581,20 +581,20 @@ static CARD8 wsXtMap[] = {
/* 109 */ KEY_NOTUSED,
/* 110 */ KEY_NOTUSED,
/* 111 */ KEY_NOTUSED,
- /* 112 */ KEY_NOTUSED,
+ /* 112 */ KEY_HKTG,
/* 113 */ KEY_NOTUSED,
/* 114 */ KEY_NOTUSED,
- /* 115 */ KEY_NOTUSED,
+ /* 115 */ KEY_BSlash2,
/* 116 */ KEY_NOTUSED,
/* 117 */ KEY_NOTUSED,
/* 118 */ KEY_NOTUSED,
/* 119 */ KEY_NOTUSED,
/* 120 */ KEY_NOTUSED,
- /* 121 */ KEY_NOTUSED,
+ /* 121 */ KEY_XFER,
/* 122 */ KEY_NOTUSED,
- /* 123 */ KEY_NOTUSED,
+ /* 123 */ KEY_NFER,
/* 124 */ KEY_NOTUSED,
- /* 125 */ KEY_NOTUSED,
+ /* 125 */ KEY_Yen,
/* 126 */ KEY_NOTUSED,
/* 127 */ KEY_Pause,
/* 128 */ KEY_NOTUSED,
(https://gist.github.com/oshimaya/465f1a9420bb1928cde9973234963e2a)
>Release-Note:
>Audit-Trail:
From: "Michael Lorenz" <macallan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/54784 CVS commit: xsrc/external/mit/xf86-input-keyboard/dist/src
Date: Wed, 18 Dec 2019 19:37:40 +0000
Module Name: xsrc
Committed By: macallan
Date: Wed Dec 18 19:37:40 UTC 2019
Modified Files:
xsrc/external/mit/xf86-input-keyboard/dist/src: bsd_KbdMap.c
Log Message:
add some missing translations for japanese keyboards
from Yasushi Oshima via PR54784
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 09 Jun 2021 01:58:39 +0000
State-Changed-Why:
Patch was committed in December 2019:
- does it work?
- does it need to get merged into the -9 branch?
From: Yasushi Oshima <oshima-ya@yagoto-urayama.jp>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: xsrc/54784 (Cannot input some keys in JP keyboard on Xorg
server when specify wskbd Protocol)
Date: Sat, 10 Jul 2021 15:24:04 +0900 (JST)
> Synopsis: Cannot input some keys in JP keyboard on Xorg server when specify wskbd Protocol
>
> State-Changed-From-To: open->feedback
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Wed, 09 Jun 2021 01:58:39 +0000
> State-Changed-Why:
> Patch was committed in December 2019:
> - does it work?
I use X environment with netbsd-9 only, so I don't know when current,
and I have already applied my local patch in my netbsd-9 tree.
> - does it need to get merged into the -9 branch?
I hope.
because netbsd-9 is a STABLE branch.
Thanks.
--
Yasushi Oshima
State-Changed-From-To: feedback->needs-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 10 Jul 2021 16:17:50 +0000
State-Changed-Why:
Submitter would like it in -9.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.