*BSD News Article 53427


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!spool.mu.edu!howland.reston.ans.net!swrinde!sgigate.sgi.com!wetware!wsrcc.com!news.orst.edu!news.uidaho.edu!usenet
From: Faried Nawaz <fn@uidaho.edu>
Newsgroups: comp.windows.x.i386unix,comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD+XFree86+syscons
Followup-To: comp.unix.bsd.freebsd.misc
Date: 24 Oct 1995 02:12:37 -0700
Organization: shot from guns!
Lines: 40
Sender: nawaz921@crater.cs.uidaho.edu
Distribution: world
Message-ID: <im3fcjkzy2.fsf@crater.cs.uidaho.edu>
References: <qyohvg8kdn.fsf@super.eua.ericsson.se>
Reply-To: fn@uidaho.edu
NNTP-Posting-Host: crater.cs.uidaho.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
In-reply-to: seb@erix.ericsson.se's message of 17 Oct 1995 11:39:16 +0100
X-Newsreader: (ding) Gnus v0.99.13
Xref: euryale.cc.adfa.oz.au comp.windows.x.i386unix:18165 comp.unix.bsd.freebsd.misc:7733

In article <qyohvg8kdn.fsf@super.eua.ericsson.se> seb@erix.ericsson.se (Sebastian Strollo) writes:

$ I am running FreeBSD 2.0.5 with the syscons driver and XFree86
$ 3.1.1. Now seeing that keyboard makers these days don't put the
$ control key where God intended I had to fix this. So I mapped my
$ CapsLock to left control and while I was at it I mapped the left
$ control to the meta key. This works fine when runing it with the
$ virtual terminals, however under X the capslock key is still control,
$ but the left control key just says (with xev):
$ 
$ KeyPress event, serial 17, synthetic NO, window 0x3000001,
$     root 0x2b, subw 0x0, time 2177141810, (174,57), root:(388,220),
$     state 0x0, keycode 37 (keysym 0x0, NoSymbol), same_screen YES,
$     XLookupString gives 0 characters:  ""
$ 
$ I suspect the problem is with the interaction syscons<>XFree86? (Oh
$ yes, I have deleted all entries in XF86Config which remaps LeftAlt key
$ to Meta et.c. also I don't do any xmodmap stuff myself)

Hmm.
What I did was 

kbdcontrol -d > /etc/keyboardmap
edit /etc/keyboardmap and change clock to lctrl
put keypmap="/etc/keyboardmap" in /etc/sysconfig

The capslock change carries over to X for me (I've tried it with XF86_SVGA,
XF86_W32, and one more (can't remember).  All 3.1.1 servers.

(
How did you map left-control to meta?  In my .xsession on the machine I'm
currently on (hp-ux 9.x, hp715), I have ``remove mod1 = Mode_switch'' (my
freebsd box is at home).  Is that how you did it?
)

$ Anybody have any clues, hints? Also anybody know where to find out the
$ scancode of the different keys? (I have this little key which doesn't
$ say anything, I don't know if it generates a scancode or not?)

Well, it's not very hard to connect to an Xserver and grab keypresses.