From nobody Sun Jul 17 07:23:32 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LlxQs2Gwwz4WSps for ; Sun, 17 Jul 2022 07:23:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LlxQr5x9Zz4453 for ; Sun, 17 Jul 2022 07:23:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LlxQr51jNzsFF for ; Sun, 17 Jul 2022 07:23:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26H7NWdV063431 for ; Sun, 17 Jul 2022 07:23:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26H7NWLV063430 for bugs@FreeBSD.org; Sun, 17 Jul 2022 07:23:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265260] HANGEUL and HANJA on Korean keyboards do not work. Date: Sun, 17 Jul 2022 07:23:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: warioburn@yahoo.co.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658042612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VSZIYfSleaCH1jLxNmd8IB7z2E6PfdM+qE9uuesg/iA=; b=kNDJfoVlZj7pQqeqL4AVLLd0ZEi0okyAAF6flr3kYWibPnpluPgpRStXZhnRzrnxUjHTn7 1mCDq11dMuEr+2pO4Hy7k/TXq5MFdVgcSDNRLF2aK3dYPnfN2HQJrmjREDfqKTsaPdlJxj 52/RcrZtYt15mycDAlMF2BlfsYg2qwGjyKgUl4U08HlvAOj+Oe2OvN8Td6J7j0S3anrmXN uODs1WKSmpubMtSzlR8lZg8vNu8RYSe1uYBgKevTXWfUiOnHIbDZN3bTmdOj8tH03RUbzy prOR8501QEujfTeYmiZ91sJpi2Mbk/fCZqxlYRQXgIUTKLLvPCeViHz7MKtyLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658042612; a=rsa-sha256; cv=none; b=wMG3sqnY3vgF83j4tjFWaaoC1xoSF34MIGvBSisW2S+uYAwhKB3P0EPBWApFFZ82f+JxA0 /e5qoh6wrohS4XL/qj9R+kAcHBa2eWmI2UfpHLuZTCOvnL41AvIiPf66rHeH8J7UBDDGNi XARA7HMrxp9JCwjHiCFgwoYob4C/3RbEDftGLUQZNS3p2UUE4IZQmxN2fGXreBB49cunNv mBaYMeLTA/y4OAT7NrVMjW0D+Rr+AAbyENobZxhcLQIB69mgRZdK9ZGC4TT1eaA/Nf1x/6 gWrv+ASjQX//k84XcbNQ8gcIg/k4JS66eSHV6RDxuIHvAW5FPHNziE5d2ua7Hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265260 Bug ID: 265260 Summary: HANGEUL and HANJA on Korean keyboards do not work. Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: warioburn@yahoo.co.jp Korean keyboard have Hanyoung key (sometimes called Hanguel key) witch togg= le Korean/English input mode and a Hanja key witch covert korean letter to chi= nese letter. Unlike before, x11's keycode conversion is done by evdev. That's why I'm reporting here. When tested with evtest, they are not recognized. in /sys/dev/atkbdc/atkbd.c There are several mode. Especially, K_CODE, K_RAW,K_ASCII, EVDEV. Hanyoung and Hanja key is not recognized in all modes, but I will report ma= inly EVDEV part because it's most relevant. First, the Hanyoung key is 0xF1 and the Hanja key is 0xF2. Hanyoung/Hanja keys are generally greater than 0x80, which is genarlly considered a release key. And it does not repeat or generate a release key. Reference:https://www.win.tue.nl/~aeb/linux/kbd/scancodes-9.html #ifdef EVDEV_SUPPORT /* push evdev event */ if (evdev_rcpt_mask & EVDEV_RCPT_HW_KBD && state->ks_evdev !=3D NULL) { keycode =3D evdev_scancode2key(&state->ks_evdev_state, scancode); if (keycode !=3D KEY_RESERVED) { evdev_push_event(state->ks_evdev, EV_KEY, (uint16_t)keycode, scancode & 0x80 ? 0 : 1); evdev_sync(state->ks_evdev); } } #endif After digging with atkbd driver source, it looks like this part is related. There seems to be no problem that returning the keycode from evdev_scancode= 2key and the definition is already in place with KEY_HANGEUL, KEY_HANJA. evdev_push_event(state->ks_evdev, EV_KEY, (uint16_t)keycode, scancode & 0x80 ? 0 : 1); But here, if the scan code is greater than 0x80, evdev_push_event -> evdev_send_event ->evdev_sparse_event through these codes, EV_SKIP_EVENT is returned, it will be ignored. So, wouldn't special processing for Hangul keys be necessary somewhere? Notes on other parts. K_CODE also has a similar problem, but even if it's not fixed, There is no = big problem. because, without ime, Hanyoung/Hanja key is meaningless.=20 But it's pretty much the same problem, so it shouldn't be difficult to fix. For previously used xorg-xf86-input-keyboard package(This is how it worked before,), receives the scan code through K_RAW and converts it to an X11 key code. I guess adding Hanyoung keys in the wsXtMap of bsd_KbdMap.c table, make it= =20 work, but I can't make it sucess. --=20 You are receiving this mail because: You are the assignee for the bug.=