xmodmap patch to vnc 3.3.3

Marius Kotsbak marikots "at" stud.aitel.hist.no
Wed, 20 Mar 2002 15:27:52 +0000


On Wed, 2002-03-20 at 16:02, Grant McDorman wrote:
> According to Marius:
> > Grant McDorman wrote:
> > > 
> > > How does your dvorak layout modification work? If it's based on keycodes, it
> > > will probably not work (keycodes are server dependant). You should be doing
> > > something like 'keysym a = z' or the like, not 'keycode 1234 = z'. (Of
> > > course, running it twice will completely mangle things.)
> > 
> > Thanks! It actually works, almost... I can map the us keys, but it
> > doesn't map the norwegian keys like "keysym oslash = s" (or aring).
> > 
> > It is defined in my keycode-xmodmap like this: "keycode  97 = aring
> > Aring" ( I am not running this, it is there when I log in. I find it
> > using "xmodmap -pke" )
> > Is this a bug in VNC?
> 
> Depends on what keycode 97 is. For VNC, you're *much* better off using
> keysyms; that is, find the U.S. keysym for the key in question and use
> that instead of keycode.
Yes, i understand, but the system is configured with norwegian layout.
If i change to US layout using xmodmap, I think I will get the same
problem.

I am NOT using xmodmap with keycodes myself, just keysyms. The keycodes
are preconfigured for vnc (havent't changed anything in vnc), just as in
normal X session.

The opposite work though, i can use keysym "s = aring" and i get the
norwegian character "aring" when i press s. But mapping from the
aring-button to s is impossible. xmodmap does not complain, but it has
no effect.

Could it be that vnc is not handling keycodes outside the US keyboard
right? 



> 
> If this is an "extra" key, use an arbitrary keycode greater than 127.
> 
> > I haven't tried your patch yet. Do you think it will solve the problem?
> 
> No. Aside from the fact that it won't fit in the current version, it appears
> your problem was that you were using keycodes - and the wrong ones, at that.
> 
> -- 
> 
> Grant McDorman <grant.mcdorman "at" cedara.com>, Sr. Software Design Consultant
> Cedara Software Corp.  <URL:http://www.cedara.com>
>   (formerly I.S.G. Technologies Inc.)
> Mississauga, Ontario, Canada
---------------------------------------------------------------------
To unsubscribe, mail majordomo "at" uk.research.att.com with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------