From owner-freebsd-mobile@FreeBSD.ORG Fri May 23 10:01:59 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A54437B401 for ; Fri, 23 May 2003 10:01:59 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 509B143F85 for ; Fri, 23 May 2003 10:01:58 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id MUA74016; Fri, 23 May 2003 10:01:57 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id AE07F5D04; Fri, 23 May 2003 10:01:56 -0700 (PDT) To: "Jesse D. Guardiani" In-Reply-To: Message from "Jesse D. Guardiani" of "Fri, 23 May 2003 12:10:43 EDT." Date: Fri, 23 May 2003 10:01:56 -0700 From: "Kevin Oberman" Message-Id: <20030523170156.AE07F5D04@ptavv.es.net> cc: freebsd-mobile@freebsd.org Subject: Re: XKEYBOARD remapping of ctrl+alt+keypad-plus X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2003 17:01:59 -0000 > From: "Jesse D. Guardiani" > Date: Fri, 23 May 2003 12:10:43 -0400 > Sender: owner-freebsd-mobile@freebsd.org > > Does anyone know how to remap these keystrokes to something > else under XFree? The Xfree86 man page says that XKEYBOARD > stuff is completely customizable, but I can't find any docs > explaining exactly how to customize it. > > I basically want to be able to change screen resolutions > inside X. Yes, The keymapping present by default totally breaks this and there is no NumLock key in the keymap. It is mapped to keycode 77, which seems reasonable, but keycode 77 is only available on the IBM when SHIFT is pressed. But SHIFT with keycode 77 is Pointer_EnableKeys! Can you say "Catch-22"? keycode 77 = Num_Lock Pointer_EnableKeys (The first mapping is the plain key and the second is the SHIFTed key) You can decide how you want to fix it. I map the shift code to also be NumLock. xmodmap -e "keycode 77 = Num_Lock Num_Lock" R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634