NetBSD Problem Report #37674

From anthony.mallet@useless-ficus.net  Thu Jan  3 01:06:36 2008
Return-Path: <anthony.mallet@useless-ficus.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id C7FCC63B852
	for <gnats-bugs@gnats.netbsd.org>; Thu,  3 Jan 2008 01:06:36 +0000 (UTC)
Message-Id: <1199320107.78@ficus>
Date: Thu, 3 Jan 2008 01:28:27 +0100
From: "Anthony Mallet" <anthony.mallet@useless-ficus.net>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: x11/xf86-input-keyboard doesn't map some useful USB keycodes
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         37674
>Category:       pkg
>Synopsis:       x11/xf86-input-keyboard doesn't map some useful USB keycodes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 03 01:10:00 +0000 2008
>Closed-Date:    Sun Oct 27 12:57:22 +0000 2019
>Last-Modified:  Sun Oct 27 12:57:22 +0000 2019
>Originator:     Anthony Mallet
>Release:        NetBSD 4.99.40 i386
>Organization:
>Environment:


System: NetBSD 4.99.40 (FICUS) #88: Wed Jan  2 22:13:55 CET 2008
	troot@ficus:/usr/obj/sys/arch/i386/compile/FICUS



>Description:


I added the following USB keycodes, which are present on e.g. my sun type 5 usb
keyboard:

KEY_Power
KEY_Help
KEY_L1 -> L10
KEY_Mute
KEY_AudioRaise
KEY_AudioLower

Without this patch, they are mapped to MIN_KEYCODE (==8) no matter what I do.
The USB keycodes seems universal (as per
http://www.win.tue.nl/~aeb/linux/kbd/scancodes-14.htm) and I think this deserve a 
patch.


>How-To-Repeat:





>Fix:


--- usbkbd-patch begins here ---
--- src/bsd_KbdMap.c~	2008-01-03 00:36:39.000000000 +0100
+++ src/bsd_KbdMap.c	2008-01-03 01:04:24.000000000 +0100
@@ -405,7 +405,7 @@
 	/* 99 */ KEY_KP_Decimal,	/* Keypad . Del */
 	/* 100 */ KEY_Less,	/* < > on some keyboards */
 	/* 101 */ KEY_Menu,	/* Menu */
-	/* 102 */ KEY_NOTUSED,
+	/* 102 */ KEY_Power,
 	/* 103 */ KEY_KP_Equal, /* Keypad = on Mac keyboards */
 	/* 104 */ KEY_NOTUSED,
 	/* 105 */ KEY_NOTUSED,
@@ -419,20 +419,20 @@
 	/* 113 */ KEY_NOTUSED,
 	/* 114 */ KEY_NOTUSED,
 	/* 115 */ KEY_NOTUSED,
-	/* 116 */ KEY_NOTUSED,
-	/* 117 */ KEY_NOTUSED,
-	/* 118 */ KEY_NOTUSED,
-	/* 119 */ KEY_NOTUSED,
-	/* 120 */ KEY_NOTUSED,
-	/* 121 */ KEY_NOTUSED,
-	/* 122 */ KEY_NOTUSED,
-	/* 123 */ KEY_NOTUSED,
-	/* 124 */ KEY_NOTUSED,
-	/* 125 */ KEY_NOTUSED,
-	/* 126 */ KEY_NOTUSED,
-	/* 127 */ KEY_NOTUSED,
-	/* 128 */ KEY_NOTUSED,
-	/* 129 */ KEY_NOTUSED,
+	/* 116 */ KEY_L7,
+	/* 117 */ KEY_Help,
+	/* 118 */ KEY_L3,
+	/* 119 */ KEY_L5,
+	/* 120 */ KEY_L1,
+	/* 121 */ KEY_L2,
+	/* 122 */ KEY_L4,
+	/* 123 */ KEY_L10,
+	/* 124 */ KEY_L6,
+	/* 125 */ KEY_L8,
+	/* 126 */ KEY_L9,
+	/* 127 */ KEY_Mute,
+	/* 128 */ KEY_AudioRaise,
+	/* 129 */ KEY_AudioLower,
 	/* 130 */ KEY_NOTUSED,
 	/* 131 */ KEY_NOTUSED,
 	/* 132 */ KEY_NOTUSED,
--- usbkbd-patch ends here ---



>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 27 Oct 2019 12:57:22 +0000
State-Changed-Why:
Patched upstream, possibly by someone else. Thanks for the report and patch.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.