From owner-freebsd-questions Mon May 28 17:24: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 8A69337B424 for ; Mon, 28 May 2001 17:24:00 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 1DE156ACBC; Tue, 29 May 2001 09:53:58 +0930 (CST) Date: Tue, 29 May 2001 09:53:57 +0930 From: Greg Lehey To: "Christopher W. Aiken" Cc: FreeBSD Questions Subject: Re: Ctrl-Alt-Del once again Message-ID: <20010529095357.C54034@wantadilla.lemis.com> References: <20010528111406.U29739@wantadilla.lemis.com> <20010528162149.K256-100000@bigdaddy.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010528162149.K256-100000@bigdaddy.localdomain>; from cwaiken@icubed.com on Mon, May 28, 2001 at 04:29:16PM -0400 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday, 28 May 2001 at 16:29:16 -0400, Christopher W. Aiken wrote: > > On Mon, 28 May 2001, Greg Lehey wrote: > >>> On Sunday, 27 May 2001 at 21:30:23 -0400, Christopher W. Aiken wrote: >>>> >>>> I'd like to setup Ctrl-Alt-Del to do a "halt" instead >>>> of re-boot. Searching the archives I found a snipit >>>> that indicated that the following command should do it: >>>> > > > >>> >>> Yes. Assuming you're using the standard keyboard map >>> (/usr/share/syscons/keymaps/us.iso.kbd), make a copy with an >>> appropriate name and change the following line: >>> >>> Before: >>> >>> 083 del '.' '.' '.' '.' '.' boot boot N >>> >>> After: >>> >>> 083 del '.' '.' '.' '.' '.' halt halt N >>> >>> This is described in the man page kbdmap(5), which was only written a >>> few months ago. > > Nope, Doesn't work. I copied us.iso.kbd to us.iso.kbd_cwa. I made > the above changes to keycode 083. I then added "keymap=us.iso.kbd_cwa" > to my /etc/rc.conf file. Finally I re-booted. You shouldn't reboot for something so trivial. Just run kbdcontrol. > When my system came back up I hit Ctrl-Alt-Del expecting a "halt" to > be performed. Instead a "reboot" occurred, just as though I had > done nothing to the keymap file. > > Is there a way to determine if us.iso.kbd_cwa is even used? man kbdmap > shows nothing, How about this: -d Dump the current keyboard map onto stdout. The output may be redirected to a file and can be loaded back to the kernel later by the -l option above. > and I could find nothing in dmesg. No, you wouldn't. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message