Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 1999 18:33:12 +0900
From:      Kazutaka YOKOTA <yokota@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
Message-ID:  <199911290933.SAA07584@zodiac.mech.utsunomiya-u.ac.jp>

next in thread | raw e-mail | index | archive | help
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




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