bin/187470: [patch] Apple Wireless Keyboard (JIS)
Yuichiro NAITO
naito.yuichiro at gmail.com
Wed Mar 12 02:30:01 UTC 2014
>Number: 187470
>Category: bin
>Synopsis: [patch] Apple Wireless Keyboard (JIS)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 12 02:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Yuichiro NAITO
>Release: FreeBSD 10.0-Release
>Organization:
>Environment:
FreeBSD pluto.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r262241: Tue Feb 25 13:52:12 JST 2014 root at pluto.local:/usr/obj/usr/src/sys/SLIM amd64
>Description:
I'm using Apple Wireless Keyboard (JIS) for FreeBSD 10.0-R on amd64 machine.
This keyboard has "Kana" and "Eisu" keys that turns on/off input method.
I made a patch to handle these keys by bthidd (bluetooth hid daemon).
Usually "Zenkaku-Hankaku" key is used to toggle input method.
But Apple designed "Kana" key enables input method, and
"Eisu" key disables input method, and
lost "Zenkaku-Hankaku" key.
This patch enables to send these key events to Xorg kbd driver.
>How-To-Repeat:
Using Apple Wireless Keyboard (JIS) on FreeBSD 10.0-R box.
>Fix:
Apply this patch.
Patch attached with submission follows:
diff --git usr.sbin/bluetooth/bthidd/kbd.c usr.sbin/bluetooth/bthidd/kbd.c
index 3e944f0..0b66b64 100644
--- usr.sbin/bluetooth/bthidd/kbd.c
+++ usr.sbin/bluetooth/bthidd/kbd.c
@@ -225,8 +225,8 @@ static int32_t const x[] =
/* Keyboard Int'l 7 8D */ -1, /* Unassigned */
/* Keyboard Int'l 8 8E */ -1, /* Unassigned */
/* Keyboard Int'l 9 8F */ -1, /* Unassigned */
-/* Keyboard Lang 1 90 */ NOBREAK|0xF2, /* None */
-/* Keyboard Lang 2 91 */ NOBREAK|0xF1, /* None */
+/* Keyboard Lang 1 90 */ 0x71, /* eisu */
+/* Keyboard Lang 2 91 */ 0x72, /* kana */
/* Keyboard Lang 3 92 */ 0x78, /* F8 */
/* Keyboard Lang 4 93 */ 0x77, /* F7 */
/* Keyboard Lang 5 94 */ 0x76, /* F6 */
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list