home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9638 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.1 KB  |  53 lines

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