Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2003 10:01:56 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        "Jesse D. Guardiani" <jesse@wingnet.net>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: XKEYBOARD remapping of ctrl+alt+keypad-plus 
Message-ID:  <20030523170156.AE07F5D04@ptavv.es.net>
In-Reply-To: Message from "Jesse D. Guardiani" <jesse@wingnet.net>  of "Fri, 23 May 2003 12:10:43 EDT." <balh2d$qed$1@main.gmane.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> From: "Jesse D. Guardiani" <jesse@wingnet.net>
> 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



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