X server and xinit works excellent....almost.
Michael Cardell Widerkrantz
mc at hack.org
Wed Nov 9 20:03:10 UTC 2011
Samuel Magnusson <samuel.magnusson5 at bredband.net>, 2011-11-09 12:06 (+0100):
> Which made me remember that I had the exact same
> problem with my swedish keyboardmappings the very first time I started
> X. I just couldn't get it to work and nearly gave up before I tried
> the setxkbmap method and put them into .xinitrc, which saved me.
> Although I had put the exact same "rules" and "layout" options in
> xorg.conf and double checked the format and spelling hundreds of
> times. The problem was still there now: when I commented it out in
> .xinitrc I got the US keyboard in xterm in spite of the xorg.conf
XKB is a bit of a mystery compared to good old xmodmap. A while ago I
tried to understand it. The result is a small guide on how you can use
XKB to define your own keyboard mapping and load it without having to be
root. I used my own version of a Swedish keyboard on a Happy Hacking
Keyboard as an example:
> The thing that really made it was the Option "AutoAddDevice" "off",
> which I had failed to notice.
Yes, this is really important, especially if you don't want that
dreadful HAL on your system. Considering that the default is on and HAL
isn't a dependency for the X server, many users were surprised when they
didn't have any working mouse nor keyboard!
I don't use HAL and it seems even the X.org project has moved away from
HAL even if such modern X.org X servers are not yet in ports.
> It doesn't warn that if it is NOT disabled the InputDevice sections
> won't work at all. And "no devices will be added" sounds like a bad
> thing, so you rather leave this option enabled...
Perhaps you can file a Problem Report (PR) with a suggested text? I
suggest you add the text to the handbook since I assume the X.org
project won't touch manual pages for the ancient X servers we use in
> Now I'm curious:
> Is it then so that in the "new style" Xorg the XML-method will
> override HAL, and this is the new default way of providing opitons
> that formerly were in the InputDevice sections in xorg.conf?
What new style XML method?
AFAIK the more modern X.org X servers uses the Linux udev instead of
HAL. Those servers are not yet available on FreeBSD but presumably it
would be possible to use devd for the same purpose.
> And should HAL have discovered my swedish keyboard automatically in
> the first place, so there was something going wrong there?
How would HAL know that the keyboard had a Swedish layout? No such
information is sent through USB or PS/2 when you attach a keyboard. This
is up to your own language settings, either with what you have entered
in the form of setxkbmap or xkbcomp in your .xinitrc/.xsession or your
settings in the desktop environment of your choice.
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.
More information about the freebsd-questions