From owner-freebsd-questions@FreeBSD.ORG Wed Nov 9 20:03:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D1711065675 for ; Wed, 9 Nov 2011 20:03:10 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 28D918FC12 for ; Wed, 9 Nov 2011 20:03:09 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROEMW-0005x4-Ig for freebsd-questions@freebsd.org; Wed, 09 Nov 2011 21:03:08 +0100 Received: from c-82-209-158-57.cust.bredband2.com ([82.209.158.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Nov 2011 21:03:08 +0100 Received: from mc by c-82-209-158-57.cust.bredband2.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Nov 2011 21:03:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Cardell Widerkrantz Date: Wed, 09 Nov 2011 21:02:55 +0100 Organization: Temple of the Moby Hack Lines: 65 Message-ID: <86pqh1njww.fsf@kropotkin.hack.org> References: <4EB88225.9020702@bredband.net> <20111108205600.7a8e0205.freebsd@edvax.de> <20111108215114.24d336e6.freebsd@edvax.de> <4EBA5EBD.7020501@bredband.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-82-209-158-57.cust.bredband2.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) Cancel-Lock: sha1:38tKJ2Kq0Zt1LnyZx0c8ck1LGVY= Subject: Re: X server and xinit works excellent....almost. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 20:03:10 -0000 Samuel Magnusson , 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 > settings. 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: http://hack.org/mc/writings/xkb.html > 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 FreeBSD. > 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. -- http://hack.org/mc/ Plain text e-mails, please. HTML messages sent to me are silently deleted. OpenPGP welcome, 0xE4C92FA5.