From owner-freebsd-bugs Wed Jan 16 15:40:31 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6983937B41D for ; Wed, 16 Jan 2002 15:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0GNe1L60395; Wed, 16 Jan 2002 15:40:01 -0800 (PST) (envelope-from gnats) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.53]) by hub.freebsd.org (Postfix) with ESMTP id DC90A37B41D for ; Wed, 16 Jan 2002 15:36:40 -0800 (PST) Received: from numeria (151.29.217.239) by smtp3.libero.it (6.0.032) id 3BD43E2502049565 for FreeBSD-gnats-submit@freebsd.org; Thu, 17 Jan 2002 00:36:39 +0100 Received: (qmail 15936 invoked by uid 1008); 15 Jan 2002 14:34:51 -0000 Message-Id: <20020115143451.15935.qmail@numeria> Date: 15 Jan 2002 14:34:51 -0000 From: nivit@libero.it (Nicola Vitale) Reply-To: Nicola Vitale To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/33965: [FYI] Programmable keys of Olidata KB-9805 keyboard Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33965 >Category: misc >Synopsis: Programmable keys of the keyboard (Olidata KB-9805) >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 Jan 16 15:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Nicola Vitale >Release: FreeBSD 4.5-PRERELEASE i386 >Organization: >Environment: System: FreeBSD numeria.domo.sva 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Tue Jan 15 14:40:37 CET 2002 stan@numeria.domo.sva:/usr/obj/usr/src/sys/NUMERIA i386 Keyboard model: Olidata KB-9805 >Description: If you have this keyboard model, you can activate the programmable keys with the patch enclosed in this PR. >How-To-Repeat: >Fix: Apply the patch, then recompile your kernel including the line: options ATKBD_OLIDATA_KB_9805 --- src/sys/dev/kbd/atkbd.c Sun Dec 30 22:11:58 2001 +++ src/sys/dev/kbd/atkbd.c.new Tue Jan 15 14:51:48 2002 @@ -268 +268 @@ - * NOTE: because of the way the low-level conole is initialized, this routine + * NOTE: because of the way the low-level console is initialized, this routine @@ -631,0 +632,44 @@ +#ifdef ATKBD_OLIDATA_KB_9805 + case 0x20: /* (WWW) key */ + keycode = 0x6c; + break; + case 0x23: /* (MS DOS) key */ + keycode = 0x6d; + break; + case 0x32: /* (My Doc) key */ + keycode = 0x6e; + break; + case 0x12: /* (Menu/?) key */ + keycode = 0x6f; + break; + case 0x30: /* (Screen Saver) key */ + keycode = 0x70; + break; + case 0x21: /* (Close) key */ + keycode = 0x71; + break; + case 0x2e: /* (<<) key */ + keycode = 0x72; + break; + case 0x24: /* (stop) key */ + keycode = 0x73; + break; + case 0x22: /* (play) key */ + keycode = 0x74; + break; + case 0x19: /* (>>) key */ + keycode = 0x75; + break; + case 0x26: /* (Vol +) key */ + keycode = 0x76; + break; + case 0x1e: /* (Vol -) key */ + keycode = 0x77; + break; + case 0x17: /* (Mute) key */ + keycode = 0x78; + break; + case 0x25: /* (suspend) key */ + keycode = 0x79; + break; +#endif /* ATKBD_OLIDATA_KB_9805 */ --- src/sys/conf/options.i386 Mon Jan 14 23:01:00 2002 +++ src/sys/conf/options.i386.new Tue Jan 8 14:12:41 2002 @@ -108,0 +109 @@ +ATKBD_OLIDATA_KB_9805 opt_atkbd.h >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message