.Xmodmap problems after upgrading to Xorg 7.5 (mostly solved)

Joey Mingrone joey at mingrone.org
Wed May 12 16:21:04 UTC 2010


On Mon, May 10, 2010 at 11:00, Joey Mingrone <joey at mingrone.org> wrote:
>
> My .Xmodmap, which hasn't changed for years, is included below.  It
> worked under Xorg 7.4. Now, when I run
>
> %xmodmap ~/.Xmodmap
>
> the output is:
>
> xmodmap:  .Xmodmap:13:  bad keysym in remove modifier list
> 'Caps_Lock', no corresponding keycodes
> xmodmap:  .Xmodmap:14:  bad keysym target keysym 'Caps_Lock', no
> corresponding keycodes
> xmodmap:  .Xmodmap:18:  bad keysym target keysym 'apostrophe', no
> corresponding keycodes
> xmodmap:  .Xmodmap:26:  bad keysym target keysym 'semicolon', no
> corresponding keycodes
> xmodmap:  4 errors encountered, aborting.
>
> /usr/local/include/X11/keysymdef.h still shows these keysyms.
>
> Does anyone know why the keysyms aren't mapping to the keycodes?
>

The original description I gave was inaccurate.

 My .Xmodmap was still running when X was starting up and
 *subsequently* running xmodmap was causing the errors I posted.

 It was the following lines, which were OK under Xorg-7.4, that were
 causing the problems:

 keycode 117 = Mode_switch
 clear Mod3
 add Mod3 = Mode_switch

 % xmodmap .Xmodmap
 X Error of failed request:  BadValue (integer parameter out of range
 for operation)
  Major opcode of failed request:  118 (X_SetModifierMapping)
  Value in failed request:  0x17
  Serial number of failed request:  14
  Current serial number in output stream:  14

 After removing the above three lines, everything else was working.

 Sorry for the confusion.


> -------------------------------
>
>
>
> % less ~/.Xmodmap
>
> ..... my notes here, the first line below is line 12
>
> ! make caps lock left control
> remove Lock = Caps_Lock
> keysym Caps_Lock = Control_L
> add Control = Control_L
>
> ! make apostrophe right control
> keysym apostrophe = Control_R
> add Control = Control_R
>
> !remove Control = Control_R
> !keysym Control_R = apostrophe quotedbl
> !keysym apostrophe = Control_R
> !add Control = Control_R
>
> keysym semicolon = dead_horn colon
>
> ! accents and symbols
> ! format of keycode lines: keycode <x> = <1> <2> <3> <4>
> ! where <1> <key>, <2> <shift-key>, <3> <"Mode_switch"-key>, <4>
> <shift-"Mode_switch"-key>
>
> keycode 117 = Mode_switch
> clear Mod3
> add Mod3 = Mode_switch
> !add Mod3 = Mode_switch ISO_Level3_Shift Mode_switch Mode_switch
>
> ! keycode  13 = 4 dollar EuroSign sterling
> ! keycode  30 = u U udiaeresis Udiaeresis
> ! keycode  32 = o O odiaeresis Odiaeresis
> ! keycode  38 = a A adiaeresis Adiaeresis
> ! keycode  39 = s S ssharp
>
> ! Greek characters
> keysym a = a A Greek_alpha
> keysym b = b B Greek_beta
> keysym g = g G Greek_gamma Greek_GAMMA
> keysym d = d D Greek_delta Greek_DELTA
> keysym e = e E Greek_epsilon
> keysym z = z Z Greek_zeta Greek_ZETA
> keysym h = h H Greek_eta Greek_ETA
> keysym o = o O Greek_theta Greek_theta
> keysym k = k K Greek_kappa
> keysym l = l L Greek_lamda Greek_LAMDA
> keysym m = m M mu
> keysym n = n N Greek_nu Greek_NU
> keysym f = f F Greek_xi Greek_XI
> keysym p = p P Greek_pi Greek_PI
> keysym r = r R Greek_rho
> keysym s = s S Greek_sigma Greek_SIGMA
> keysym t = t T Greek_tau
> keysym u = u U Greek_upsilon Greek_UPSILON
> keysym v = v V Greek_phi Greek_PHI
> keysym x = x X Greek_chi Greek_CHI
> keysym y = y Y Greek_psi Greek_PSI
> keysym w = w W Greek_omega Greek_OMEGA
>
> keycode  13 = 4 dollar EuroSign sterling
> keycode  13 = 4 dollar EuroSign sterling
>
> ! math characters
> .
> .
> .
>


More information about the freebsd-x11 mailing list