home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!gerth
- From: gerth@watson.ibm.com (John Gerth)
- Subject: Re: xmodmap problems in AIX 3.2.2
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Sep14.130056.39723@watson.ibm.com>
- Date: Mon, 14 Sep 1992 13:00:56 GMT
- Distribution: comp.unix.aix
- Reply-To: gerth@watson.ibm.com
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <HSG.92Sep12235034@macbeth.cs.duke.edu>
- Nntp-Posting-Host: minnie.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 37
-
- In article <HSG.92Sep12235034@macbeth.cs.duke.edu>, hsg@cs.duke.edu (Henry Greenside) writes:
- |>
- |> I am using xmodmap to reassociate keys on my RS/6000
- |> 340 keyboard, e.g., move ESC to the grave (`) key,
- |> interchange the CAPS LOCK and left control key, and so
- |> on. I then have a statement of the form:
- |>
- |> usermodmap=$HOME/.Xmodmap-$HOSTTYPE
- |> if [ -f $usermodmap ]; then
- |> xmodmap $usermodmap
- |> fi
- |>
- |> in my .xinitrc file to execute xmodmap when starting up
- |> X.
- |>
- |> I have found two problems:
- |>
- |> 1. Although I have verified that the xmodmap command is
- |> being executed when I start X, I find that the keymap
- |> changes are actually not being made, i.e., I have to go
- |> into an xterm window and run "xmodmap .Xmodmap-rs6000"
- |> directly. All other .xinitrc commands seem to run ok.
- |>
-
- This sounds like you're getting bit by the behavior of the X-server
- which, when upgraded to X11R4 level in 3.2, picked up the characteristic
- of resetting to defaults whenever the number of active clients drops
- to zero. For example, if you (quite reasonably) put your "xmodmap"
- at the top of .xinitrc before any other long-running clients are
- started (e.g. xterms, window manager), then when xmodmap finishes
- the server finds that it has zero active clients and so resets itself
- to whatever it's invocation defaults were.
-
- There are a bunch of tactics for overcoming this -- once you know it's
- happening to you.
- --
- John Gerth gerth@watson.ibm.com (914) 784-7639
-