From owner-freebsd-questions@FreeBSD.ORG Wed Sep 26 17:17:21 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F3E316A419 for ; Wed, 26 Sep 2007 17:17:21 +0000 (UTC) (envelope-from freebsd@elgert.dk) Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by mx1.freebsd.org (Postfix) with ESMTP id 41EA413C465 for ; Wed, 26 Sep 2007 17:17:21 +0000 (UTC) (envelope-from freebsd@elgert.dk) Received: from elgert.dk (0x573c4cde.nivaanqu1.broadband.tele.dk [87.60.76.222]) by pfepb.post.tele.dk (Postfix) with SMTP id 5335CA5004B for ; Wed, 26 Sep 2007 19:17:18 +0200 (CEST) Received: by elgert.dk (sSMTP sendmail emulation); Wed, 26 Sep 2007 19:17:18 +0200 Date: Wed, 26 Sep 2007 19:17:18 +0200 From: Harry Matthiesen Jensen To: freebsd-questions@freebsd.org Message-ID: <20070926171718.GA1155@mugin.localhost> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Keyboard without Scroll Lock 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: Wed, 26 Sep 2007 17:17:21 -0000 Hi, I don't know where to post this, except from this list, so maybe someone will add it to a FAQ ;-). just for info, if you happens to buy a keyboard without the Scroll Lock key, as I did (Logitech EX110), and are missing this function in consoles, I found a solution with re-configuring the keymap (I'm probably not the first, but did not find a short solution on the web). As root: Dump the keyboard map to a file kbdcontrol -d >mykeys Change the file so "Ctrl+NumLock" will set "Scroll Lock". Find line with scancode "base" 069, or where "nlock" fills the entire line. Edit column 3 from "nlock" to "slock" The line now looks like: "069 nlock nlock slock nlock nlock nlock nlock nlock O" Edit /etc/rc.conf: keymap="/home/xxx/mykeys" #where the file is Reboot, and now "Ctrl+NumLock" will toggle the Scroll Lock bit. Before you reboot it is possible to try if it works. As root, issue the command: kbdcontrol -l mykeys -- Mvh/Brgds Harry FreeBSD mugin.localhost 7.0-CURRENT #8: i386