home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / hardware / 5346 next >
Encoding:
Internet Message Format  |  1992-11-04  |  2.2 KB

  1. Path: sparky!uunet!olivea!decwrl!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!stanford.edu!Csli!csli!lakin
  2. From: lakin@Csli.stanford.edu (Fred Lakin)
  3. Newsgroups: comp.sys.sun.hardware
  4. Subject: need help on interaction between xmodmap and different Type 4 kbds
  5. Message-ID: <LAKIN.92Nov4214553@Csli.stanford.edu>
  6. Date: 5 Nov 92 05:45:53 GMT
  7. Sender: news@Csli.Stanford.EDU (CSLI News Service)
  8. Distribution: comp.sys.sun.hardware
  9. Organization: Stanford University CSLI
  10. Lines: 58
  11.  
  12. Below find an .xmodmaprc file that I have used for 2 1/2 yrs to switch
  13. Caps_Lock with Meta and Alt_L with Control. That kbd recently bit the
  14. dust and with the one I am borrowing, also a type 4, xmodmap now gives
  15. me this error:
  16.  
  17.    bad keysym target keysym 'Alt_L', out of range
  18.  
  19. What's going on?
  20.  
  21. Is there a way to fix my re-maping code so it will work again?
  22.  
  23. Thanks very much for any help,
  24. -f
  25. Please CC any replies to lakin@csli.stanford.edu
  26.  
  27.  
  28.  
  29. DETAILS
  30.  
  31. 0. Sparc1+ running 4.1 and openwin 2.0
  32.  
  33. 1. File below works with previous kbd: 
  34.    Type 4, FT201, part no 320-1005-02 Rev A
  35.         M/N E03470014, M/O 056156-05
  36.  
  37. 2. File below does *not* work with borrowed kbd:
  38.    Type 4, FT101, part no 320-1005-01 Rev B
  39.         M/N E03470051, M/O 033008-03
  40.         36-09-88-C
  41.  
  42. 3. If I comment out the two lines marked 
  43.    "**** bad keysum target problem", then xmodmaprc
  44.    no longer complains; also it has no effect (ie meta
  45.    and caps_lock are *not* switched)
  46.  
  47. 4. ---------  file .xmodmaprc-switchkeys ------------------
  48. ! File: switchkeys    courtesy Ridge McGhee Sept 26th 1990
  49. ! Goal: Exchange semantics of Caps_Lock with Meta_L
  50. !       Exchange semantics of Control with Alt_L
  51. ! Usage: xmodmap switchkeys
  52. ! Notes: Alternate invocations of switchkeys will switch and unswitch keys
  53. !        An implicit assumption is that mod1 is used for Meta_L and Meta_R
  54.  
  55. ! clear any modifier map entries involving Caps_Lock, Meta_L, Control, Alt_L
  56. clear lock
  57. clear control
  58. clear mod1
  59.  
  60. ! exchange semantics
  61. keysym Caps_Lock = Meta_L
  62. keysym Meta_L = Caps_Lock
  63. keysym Control_L = Alt_L         ! **** bad keysum target problem 
  64. keysym Alt_L = Control_L         ! **** bad keysum target problem 
  65.  
  66. ! restore modifier map
  67. add lock = Caps_Lock
  68. add control = Control_L
  69. add mod1 = Meta_L Meta_R
  70.