#241 Fails to launch w/o keyboard attached

Causes Crash
closed-fixed
X server (105)
6
2004-05-17
2003-02-06
No

I experience the following problem both with XDarwin
and Apple's X11 Server. If I launch X with no keyboard
attached (either ADB or USB), the server quits with the
following message (sent to the console, or to stdout if
launced from the command line):

Using keymapping provided in
/System/Library/Keyboards/USA.keymapping.
PseudoramiX screen 0 added: 1280x1024 @ (0,0).
PseudoramiX screen 0 placed at X11 coordinate (0,0).
[DRI] screen 0 installation complete
Screen 0 added: 1280x1024 @ (0,0)
Keymapping file
'/System/Library/Keyboards/USA.keymapping' did not
contain appropriate keyboard interface.
Reverting to kernel keymapping.

Fatal server error:
Could not get kernel keymapping! Load keymapping
from file instead.

OsVendorFatalError
AbortDDX
Quitting XDarwin...

This is an issue for me, because I don't normally have
a keyboard attached to my Mac. It sits next to my Sun
workstation, where I use "x2vnc"
(http://fredrik.hubbe.net/x2vnc.html) to share keyboard
and mouse w/the Mac. (Obviously, I have a VNC server
(OSXVnc) installed on the Mac).

Discussion

  • Anonymous

    Anonymous - 2003-02-06
    • labels: --> X server
    • milestone: --> Causes Crash
    • priority: 5 --> 6
     
  • Torrey T. Lyons

    Torrey T. Lyons - 2003-04-03

    Logged In: YES
    user_id=133579

    Yeah, I suppose this could be a problem for some users. A problem is deciding what we should do when trying to start with no keyboard. We can't properly set the keymap since we don't know what type of keyboard you might plug in. X doesn't currently have a way to automatically change the keyboard map once you plugin your keyboard, unlike Mac OS X which does. Probably the best thing to do is to put in some random keymap which will probably be wrong. It will then be up to you to setup the appropriate keymap with xmodmap commands in your .xinitrc file since only you know what you are going to plugin. At least this way it won't crash on launch.

     
  • Torrey T. Lyons

    Torrey T. Lyons - 2003-04-03
    • assigned_to: nobody --> torrey
     
  • Dapo Ladimeji

    Dapo Ladimeji - 2004-05-17

    Logged In: YES
    user_id=397073

    I have a similar problem with a UK laptop - powerbook G4. This is the
    error message I get:
    "
    Fatal server error:
    Could not find keymapping file USA.keymapping.

    OsVendorFatalError
    AbortDDX
    Quitting XDarwin...
    -bash: no job control in this shell
    koolG4:~ dapoladimeji$ "

    Of course there is a keyboard to the laptop. Is this specific to
    USA.keymapping ? and so a problem becaue it is a UK keyboard?
    What suggestions are there?

     
  • Anonymous

    Anonymous - 2004-05-17

    Logged In: YES
    user_id=82631

    This is no longer a problem; it was fixed in Apple/X11 as of
    10.2 or so. (And presumably, in XDarwin as well, though I
    have not checked that).

    Feel free to close.

     
  • Torrey T. Lyons

    Torrey T. Lyons - 2004-05-17
    • status: open --> closed-fixed
     
  • Torrey T. Lyons

    Torrey T. Lyons - 2004-05-17

    Logged In: YES
    user_id=133579

    >I have a similar problem with a UK laptop - powerbook G4. This
    is the
    error message I get:
    "
    Fatal server error:
    Could not find keymapping file USA.keymapping.

    Your error is actually a slightly different problem. The error you are
    seeing was fixed in XFree86 4.4.0. You need to download and install the
    latest version to use XFree86 on Panther.

    >This is no longer a problem; it was fixed in Apple/X11 as of
    10.2 or so. (And presumably, in XDarwin as well, though I
    have not checked that).

    Yes, XFree86 4.4.0 also (mostly) fixes the original bug. I say "mostly"
    because although XFree86 4.4.0 starts without a keyboard, it does not
    automatically load the correct keymapping when you plug one in.

    >Feel free to close.

    Yes, I'll close this bug. The remaining thing to make XFree86 and Apple's
    X11 identical in this respect is to add an option to allow the keymap to
    dynamically follow the Mac OS X system keymap. Some people want this
    and some people don't so it will be a preference option. (In Apple's X11 if
    you dynamically track the system keymap, xmodmap no longer works.)

     

Log in to post a comment.