From owner-freebsd-questions@FreeBSD.ORG Sun Oct 22 03:35:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE40D16A40F for ; Sun, 22 Oct 2006 03:35:48 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21B9A43D53 for ; Sun, 22 Oct 2006 03:35:47 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so1957772nfc for ; Sat, 21 Oct 2006 20:35:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MQKDQgVUHTVNJDhG4pG1pMYFKSphrT+0oGB68P4uEobAOXHLR7CkZ2hC96WL9Gb7rovIx7vO2WVAEbAmECIKe9eJi6dP0DV64HEqVZ6+44DwyP6IBvE7o78LjYwphC+uCwwvc6t8GeV5VSdSkgkfL7iWTkJ857fg2zRMc9niGxg= Received: by 10.48.242.19 with SMTP id p19mr11543869nfh; Sat, 21 Oct 2006 20:35:46 -0700 (PDT) Received: by 10.49.63.18 with HTTP; Sat, 21 Oct 2006 20:35:46 -0700 (PDT) Message-ID: Date: Sat, 21 Oct 2006 20:35:46 -0700 From: "Atom Powers" To: "Olivier Nicole" In-Reply-To: <200610201022.k9KAM2qj007102@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200610201022.k9KAM2qj007102@banyan.cs.ait.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: Disable ScrollLock key X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Oct 2006 03:35:48 -0000 On 10/20/06, Olivier Nicole wrote: > How to disable the ScrollLock key on a FreeBSD 4.11 console? > > I mean disable it for good, 100%, dead, like it was simply physacally > not there. I'm wondering why you would want to do this. But here's how you may be able to: 1. Find the scan code for the ScrollLock key, I don't know what it is off the top of my head, but it shouldn't be too hard to find. 2. Go into /usr/share/syscons/keymaps/ and "nop" every action for that scan code in every file. It is smarter to just "nop" it for the keymap you plan on using, or better still to create a new keymap with the scroll-lock key disabled and set that as your default. Your key will still be there, and it will still send it's scan code to the system, but the system won't do anything with it. But other devices, like KVM switches, will still process the key press. -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--