[SunRay-Users] XKB HowTo?

Hana Skoumalova Hana.Skoumalova at ff.cuni.cz
Fri Mar 12 14:25:01 EET 2010


Hello,

I have problems with setting XKB up. I am using SRSS 4.2 on Fedora
12. My keyboard is a generic PC keyboard. When I switch XKB on with
utxconfig, the modifiers are totally messed up:

$ xmodmap
xmodmap:  up to 74 keys per modifier, (keycodes in parentheses):

shift       7 (0x10),  minus (0x14),  equal (0x15),  e (0x1a),  r 
(0x1b),  u (0x1e),  i (0x1f),  o (0x20),  p (0x21),  bracketleft (0x22), 
  Control_L (0x25),  a (0x26),  d (0x28),  f (0x29),  k (0x2d),  l 
(0x2e),  Shift_L (0x32),  backslash (0x33),  v (0x37),  b (0x38),  n 
(0x39),  slash (0x3d),  Caps_Lock (0x42),  F1 (0x43),  F5 (0x47),  F7 
(0x49),  F9 (0x4b),  KP_Home (0x4f),  KP_Up (0x50),  KP_Prior (0x51), 
KP_Begin (0x54),  BadKey (0x5d),  less (0x5e),  Insert (0x6a),  BadKey 
(0x7c),  BadKey (0x8d),  BadKey (0x97),  BadKey (0x98),  BadKey (0x9a), 
  BadKey (0xa2),  BadKey (0xa6),  BadKey (0xa8),  BadKey (0xb1),  BadKey 
(0xb5),  BadKey (0xbd),  BadKey (0xc1),  BadKey (0xcb),  BadKey (0xcd), 
  BadKey (0xd3),  BadKey (0xdb),  BadKey (0xdd),  BadKey (0xe0),  BadKey 
(0xeb)
lock        minus (0x14),  equal (0x15),  e (0x1a),  r (0x1b),  y 
(0x1d),  u (0x1e),  i (0x1f),  p (0x21),  Return (0x24),  Control_L 
(0x25),  a (0x26),  f (0x29),  g (0x2a),  j (0x2c),  Shift_L (0x32), 
backslash (0x33),  z (0x34),  c (0x36),  v (0x37),  period (0x3c), 
slash (0x3d),  space (0x41),  Caps_Lock (0x42),  F1 (0x43),  F3 (0x45), 
  F4 (0x46),  F5 (0x47),  F8 (0x4a),  F9 (0x4b),  Num_Lock (0x4d), 
Scroll_Lock (0x4e),  KP_Home (0x4f),  KP_Up (0x50),  KP_Prior (0x51), 
BadKey (0x5d),  BadKey (0x7c),  BadKey (0x8c),  BadKey (0x8d),  BadKey 
(0x90),  BadKey (0x94),  BadKey (0x99),  BadKey (0xa5),  BadKey (0xa8), 
  BadKey (0xb1),  BadKey (0xb5),  BadKey (0xbd),  BadKey (0xc1),  BadKey 
(0xc9),  BadKey (0xca),  BadKey (0xcb),  BadKey (0xcc),  BadKey (0xcd), 
  BadKey (0xd1),  BadKey (0xd2),  BadKey (0xd3),  BadKey (0xd4),  BadKey 
(0xd5),  BadKey (0xd9),  BadKey (0xda),  BadKey (0xdb),  BadKey (0xde), 
  BadKey (0xe9),  BadKey (0xea),  BadKey (0xeb)
control     minus (0x14),  e (0x1a),  r (0x1b),  u (0x1e),  i (0x1f),  o 
(0x20),  p (0x21),  bracketleft (0x22),  Return (0x24),  a (0x26),  f 
(0x29),  l (0x2e),  Shift_L (0x32),  backslash (0x33),  v (0x37),  b 
(0x38),  period (0x3c),  Alt_L (0x40),  Caps_Lock (0x42),  F1 (0x43), 
F5 (0x47),  F6 (0x48),  F9 (0x4b),  KP_Home (0x4f),  KP_Up (0x50), 
KP_Subtract (0x52),  KP_Enter (0x6c),  BadKey (0x7c),  BadKey (0x88), 
BadKey (0x8c),  BadKey (0x90),  BadKey (0x94),  BadKey (0x97),  BadKey 
(0x9a),  BadKey (0x9c),  BadKey (0xa1),  BadKey (0xa5),  BadKey (0xa8), 
  BadKey (0xbc),  BadKey (0xbd),  BadKey (0xcb),  BadKey (0xcc),  BadKey 
(0xcd),  BadKey (0xd3),  BadKey (0xd5),  BadKey (0xdb),  BadKey (0xdc), 
  BadKey (0xeb)
mod1        q (0x18),  w (0x19),  bracketright (0x23),  d (0x28),  g 
(0x2a),  j (0x2c),  k (0x2d),  semicolon (0x2f),  apostrophe (0x30), 
grave (0x31),  v (0x37),  b (0x38),  m (0x3a),  period (0x3c),  F2 
(0x44),  F5 (0x47),  F9 (0x4b),  KP_Home (0x4f),  KP_Prior (0x51), 
KP_Subtract (0x52),  Sys_Req (0x5c),  less (0x5e),  Next (0x69),  Insert 
(0x6a),  BadKey (0x7c),  BadKey (0x8c),  BadKey (0x95),  BadKey (0x96), 
  BadKey (0x99),  BadKey (0x9b),  BadKey (0x9c),  BadKey (0xa0),  BadKey 
(0xa2),  BadKey (0xa5),  BadKey (0xa6),  BadKey (0xa8),  BadKey (0xb0), 
  BadKey (0xbd),  BadKey (0xc8),  BadKey (0xcb),  BadKey (0xcc),  BadKey 
(0xd0),  BadKey (0xd3),  BadKey (0xd5),  BadKey (0xdb),  BadKey (0xdf), 
  BadKey (0xe8),  BadKey (0xeb)
mod2        minus (0x14),  e (0x1a),  r (0x1b),  t (0x1c),  y (0x1d),  u 
(0x1e),  i (0x1f),  o (0x20),  p (0x21),  Return (0x24),  Control_L 
(0x25),  a (0x26),  g (0x2a),  j (0x2c),  Shift_L (0x32),  backslash 
(0x33),  v (0x37),  b (0x38),  n (0x39),  m (0x3a),  period (0x3c), 
slash (0x3d),  space (0x41),  Caps_Lock (0x42),  F1 (0x43),  F2 (0x44), 
  F3 (0x45),  F5 (0x47),  F6 (0x48),  F7 (0x49),  F9 (0x4b),  Num_Lock 
(0x4d),  KP_Home (0x4f),  KP_Up (0x50),  KP_Subtract (0x52),  Sys_Req 
(0x5c),  BadKey (0x5d),  less (0x5e),  Next (0x69),  Insert (0x6a), 
BadKey (0x7c),  BadKey (0x8c),  BadKey (0x8d),  BadKey (0x95),  BadKey 
(0x96),  BadKey (0x98),  BadKey (0x99),  BadKey (0xa0),  BadKey (0xa2), 
  BadKey (0xa4),  BadKey (0xa5),  BadKey (0xa6),  BadKey (0xa8),  BadKey 
(0xac),  BadKey (0xb2),  BadKey (0xb6),  BadKey (0xbc),  BadKey (0xbe), 
  BadKey (0xc2),  BadKey (0xc9),  BadKey (0xcb),  BadKey (0xcc),  BadKey 
(0xd0),  BadKey (0xd1),  BadKey (0xd3),  BadKey (0xd4),  BadKey (0xd5), 
  BadKey (0xd9),  BadKey (0xdb),  BadKey (0xdd),  BadKey (0xde),  BadKey 
(0xe8),  BadKey (0xe9),  BadKey (0xeb)
mod3        e (0x1a),  r (0x1b),  u (0x1e),  i (0x1f),  Control_L 
(0x25),  f (0x29),  Shift_L (0x32),  backslash (0x33),  c (0x36),  v 
(0x37),  b (0x38),  Shift_R (0x3e),  Alt_L (0x40),  Caps_Lock (0x42), 
F1 (0x43),  F2 (0x44),  F3 (0x45),  F4 (0x46),  F5 (0x47),  F7 (0x49), 
F8 (0x4a),  F9 (0x4b),  F10 (0x4c),  Num_Lock (0x4d),  Scroll_Lock 
(0x4e),  KP_Home (0x4f),  KP_Up (0x50),  KP_Prior (0x51),  Sys_Req 
(0x5c),  BadKey (0x5d),  Down (0x68),  BadKey (0x7c),  BadKey (0x8e), 
BadKey (0x96),  BadKey (0x98),  BadKey (0xa5),  BadKey (0xa8),  BadKey 
(0xb1),  BadKey (0xb2),  BadKey (0xb5),  BadKey (0xb6),  BadKey (0xbc), 
  BadKey (0xbe),  BadKey (0xc1),  BadKey (0xc2),  BadKey (0xc8),  BadKey 
(0xc9),  BadKey (0xca),  BadKey (0xcb),  BadKey (0xcd),  BadKey (0xce), 
  BadKey (0xd0),  BadKey (0xd1),  BadKey (0xd2),  BadKey (0xd3),  BadKey 
(0xd4),  BadKey (0xd6),  BadKey (0xd9),  BadKey (0xda),  BadKey (0xdb), 
  BadKey (0xdc),  BadKey (0xe9),  BadKey (0xea),  BadKey (0xeb)
mod4        w (0x19),  e (0x1a),  r (0x1b),  y (0x1d),  u (0x1e),  i 
(0x1f),  Return (0x24),  Control_L (0x25),  d (0x28),  grave (0x31), 
Shift_L (0x32),  backslash (0x33),  c (0x36),  v (0x37),  b (0x38),  n 
(0x39),  Alt_L (0x40),  space (0x41),  Caps_Lock (0x42),  F1 (0x43),  F2 
(0x44),  F4 (0x46),  F5 (0x47),  F6 (0x48),  F8 (0x4a),  F9 (0x4b),  F10 
(0x4c),  Scroll_Lock (0x4e),  KP_Home (0x4f),  Down (0x68),  Next 
(0x69),  BadKey (0x7c),  BadKey (0x96),  BadKey (0xa0),  BadKey (0xa5), 
  BadKey (0xa8),  BadKey (0xbc),  BadKey (0xc8),  BadKey (0xca),  BadKey 
(0xcb),  BadKey (0xcc),  BadKey (0xd0),  BadKey (0xd2),  BadKey (0xd3), 
  BadKey (0xd5),  BadKey (0xda),  BadKey (0xdb),  BadKey (0xdc),  BadKey 
(0xde),  BadKey (0xea),  BadKey (0xeb)
mod5        q (0x18),  w (0x19),  r (0x1b),  t (0x1c),  y (0x1d),  i 
(0x1f),  o (0x20),  Return (0x24),  Control_L (0x25),  d (0x28),  f 
(0x29),  k (0x2d),  apostrophe (0x30),  grave (0x31),  backslash (0x33), 
  c (0x36),  v (0x37),  slash (0x3d),  space (0x41),  F1 (0x43),  F2 
(0x44),  F3 (0x45),  F4 (0x46),  F5 (0x47),  F6 (0x48),  F7 (0x49),  F8 
(0x4a),  F9 (0x4b),  Num_Lock (0x4d),  Scroll_Lock (0x4e),  KP_Home 
(0x4f),  KP_Up (0x50),  BadKey (0x5d),  Down (0x68),  BadKey (0x7c), 
BadKey (0x8d),  BadKey (0x95),  BadKey (0x98),  BadKey (0xa0),  BadKey 
(0xa5),  BadKey (0xa8),  BadKey (0xb0),  BadKey (0xb1),  BadKey (0xb4), 
  BadKey (0xb5),  BadKey (0xbc),  BadKey (0xbd),  BadKey (0xc0),  BadKey 
(0xc1),  BadKey (0xc9),  BadKey (0xca),  BadKey (0xcb),  BadKey (0xcd), 
  BadKey (0xd1),  BadKey (0xd2),  BadKey (0xd3),  BadKey (0xd4),  BadKey 
(0xd8),  BadKey (0xd9),  BadKey (0xda),  BadKey (0xdb),  BadKey (0xdd), 
  BadKey (0xe8),  BadKey (0xe9),  BadKey (0xea),  BadKey (0xeb)

The file /var/log/gdm/:NN.log contains these error messages:

The XKEYBOARD keymap compiler (xkbcomp) reports:
 > Warning:          Multiple names for keycode 232
 >                   Using <STOP>, ignoring <I68>
 > Warning:          Multiple names for keycode 133
 >                   Using <AGAI>, ignoring <AE13>
etc.
 > Error:            Can't find file "sun/us" for symbols include
 >                   Exiting
 >                   Abandoning symbols file "default"
Errors from xkbcomp are not fatal to the X server
Can't open /var/dt/bw.13
Can't open /var/dt/st.13
The XKEYBOARD keymap compiler (xkbcomp) reports:
 > Error:            Key <AE11> added to map for multiple modifiers
 >                   Using Lock, ignoring Shift.
 > Error:            Key <AE11> added to map for multiple modifiers
 >                   Using Control, ignoring Lock.
 > Error:            Key <AE11> added to map for multiple modifiers
 >                   Using Mod2, ignoring Control.
etc.

Beside it, some icons on my gnome desktop are replaced by some sort of
unknown-type icon.

I tried several howtos, but none of them helped. Someone suggests that
removing the command xmodmap from the system helps, but this had no
effect on my keyboard -- the modifiers are messed until I issue
"setxkbmap us".

I also tried the script xkbinstall, but it didn't help either.

Is there a HOWTO for SRSS 4.2 on linux, how to set up XKB?

Hana


More information about the SunRay-Users mailing list