Skip site navigation (1)Skip section navigation (2)
Date:      15 Jan 2002 14:34:51 -0000
From:      nivit@libero.it (Nicola Vitale)
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/33965: [FYI] Programmable keys of Olidata KB-9805 keyboard
Message-ID:  <20020115143451.15935.qmail@numeria>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020115143451.15935.qmail>