From owner-freebsd-current Mon Nov 29 1:28:44 1999 Delivered-To: freebsd-current@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id BA80114C58; Mon, 29 Nov 1999 01:28:39 -0800 (PST) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:TvHh5Qd+XAXkDdBvKPQzmFotJ+c13aiO@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id SAA00438; Mon, 29 Nov 1999 18:28:38 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id SAA07584; Mon, 29 Nov 1999 18:33:28 +0900 (JST) Message-Id: <199911290933.SAA07584@zodiac.mech.utsunomiya-u.ac.jp> To: current@freebsd.org, cvs-committers@freebsd.org Cc: yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: [PATCH] Four patches for review and test Date: Mon, 29 Nov 1999 18:33:12 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Four patches for review and test. They are for 4.0-CURRENT. (moused patch should also work with -STABLE too.) http://www.freebsd.org/~yokota/moused-991129.diff http://www.freebsd.org/~yokota/kbdcontrol-991129.diff http://www.freebsd.org/~yokota/panickey-991129.diff http://www.freebsd.org/~yokota/altlock-991129.diff Kazu yokota@FreeBSD.org ------------------------------------------------------------------------ Patch #1. moused: the -3 option (moused-991129.diff) The three-button emulation of the mouse daemon has been somewhat difficult to use for many people. This patch will try to improve the situation by introdusing a small state machine. There is a new option, -E, to set timeout value to detect two buttons are pressed down simulteneously. The default value for this timeout is 200 msec. The patch should work with both 4.0-CURRENT and 3.3-STABLE. cd /usr/src/usr.sbin/moused patch < moused-991129.diff ------------------------------------------------------------------------ Patch #2. kbdcontrol (kbdcontrol-991129.diff) The patch will add a few new key definitions. This patch is required for the patches 3 and 4 below. cd /usr/src patch < kbdcontrol-991129.diff ------------------------------------------------------------------------ Patch #3. Panic key (panickey-991129.diff) The patch adds "panic key" function to syscons. When this key is defined in a keymap and pressed, the system panic will be forced. As this can be a security problem, this feature must be specifically enabled by a new sysctl variable: machdep.enable_panic_key. The default value is 0. The panic key won't do anything unless this variable is set to non-zero. To use the panic key, add a keyword 'panic' to a key in your keymap file. The following example assigns the panic function to SysReq (Alt-PrintScreen) key (keycode 84). 083 del '.' '.' '.' '.' '.' boot boot N 084 panic nop nop nop panic nop nop nop O 085 nop nop nop nop nop nop nop nop O The patch requires the patch #2 above. Related PR: kern/13721 cd /sys/dev/syscons patch < panickey-991129.diff ------------------------------------------------------------------------ Patch #4. Adding AltLock function to shift keys (altlock-991129.diff) Our keymap may contain AltLock (alock) or AltShift (ashift) keys. This patch will add new keys: lshifta, rshifta, lctrla, rctrla, lalta, and ralta. These keys combine shift/ctrl/alt function and the AltLock function. When these keys pressed together with another key, they act just like the ordinary shift/ctrl/alt keys. When these keys are pressed and released alone, Alt state is locked/unlocked. Related PR: kern/12475 cd /sys/dev/kbd patch < altlock-991129.diff ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message