Xkb failures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I sent this message a few weeks ago, but got no reply.  After checking
the archives now, I see the message didn't appear at all.  I'm sorry
if you got this already...  I'm hoping to get an answer:

Hi there.

Generally, I use the following configuration (or sometimes its
XF86Config equivalent, but that only on some machines I installed and
had no problems with) for most (PC104) keyboards I work with:

setxkbmap -keycodes 'xfree86' -types 'complete' -compat 'complete+leds(scroll)' -symbols 'us(pc104)+altwin(meta_win)+altwin(meta_alt)+il+group(shift_toggle)' -geometry 'pc(pc104)'

Once in a while it fails on a few computers with the unhelpful message
of "Error loading new keyboard description".  Usually I manage to
narrow it down and change the command a bit to work.

But recently, on a few machines setxkbmap just fails - no matter how I
run it, even with no arguments at all.  Having decided to try to
understand some more and trace it, I saw that XkbGetKeyboardByName
returns 0 on those occasions.  I built libX11 with debugging info and
discovered that the problem show somewhere inside the call to _XReply
in the line:

142         if ((!_XReply(dpy, (xReply *)&rep, 0, xFalse))||(!rep.reported))

(there it fails)
but that's already beyond my current comprehension (what to do with
_XReply?  What is it supposed to do?  I don't remember that as a
common xlib function)

supplying the -v 10 argument to setxkbmap doesn't give much more
information.  For example:

<output>

<251:957>alsbergt@serin:~ $ setxkbmap -v 10
Setting verbose level to 10
locale is C
Applied rules from xfree86:
model:      pc105
layout:     us
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc/pc(pc105)+pc/us
geometry:   pc(pc105)
Error loading new keyboard description

</output>

Why can't setxkbmap give some more insightful diagnostics (why did it
fail, where?)

Any idea what the problem is?  Why is the behaviour so "random"
between different hosts?

This is XFree86 4.3.0, both the clients and libs, and the server, on
the same host.

  Thanks, any help appreciated,
  -- Tom

--
  Tom Alsberg - hacker (being the best description fitting this space)
  Web page:	http://www.cs.huji.ac.il/~alsbergt/
DISCLAIMER:  The above message does not even necessarily represent what
my fingers have typed on the keyboard, save anything further.
_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux