Re: Where is the Xorg.conf - to setup XKB layouts on Squeeze?



On 6/6/10, Paul Chany <csanyipal@xxxxxxxxx> wrote:
Javier Vasquez <j.e.vasquez.v@xxxxxxxxx> writes:

xorg.conf accepts the following server flags:

Section "ServerFlags"
Option "AutoAddDevices" "False"
Option "AllowEmptyInput" "False"
EndSection

If you have them, then you must specify the keyboard and mouse
configurations on xorg.conf, and xorg won't autodetect them through
whether hal or udev, but only will use what is specified under
xorg.conf.

I've been using this to keep inmune to all the changes happening
around xorg and autodetection (and to prevent using hal)...

So I haven't had the need to go configure anything else than
xorg.conf... Perhaps it's time to take a look at
/etc/defaults/keyboard (I never had), :-)

Now when I have beside /etc/default/keyboard
***
XKBMODEL="pc105"
XKBLAYOUT="hu,hr,cs"
XKBVARIANT="nodeadkeys"
XKBOPTIONS=""
***

the /etc/X11/xorg.conf file too
***
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "hu,hr,cs"
Option "XkbVariant" "nodeadkeys"
EndSection
***

I try out that that I rename xorg.conf so Xorg not to find it at start
and keep the /etc/default/keyboard file only. After I rebooted I get the
multi layout XWindow system wit Hungaruan, Croatian and Serbian Cyrillic
languages.

However I have installed hal but that isn't necessary to get this setup
to work, right?

--
Regards,
Paul Chany

Well I don't know. it depends on the Xorg version you have. Some
time back autodetection was using hal for that purpose. Newer Xorg
uses udev. If the Xorg you're using relies on hal, you need it (I
presume you can try uninstalling, then if it's not a dependency things
will still work, and if it it, you'll have to reinstall it, perhaps
even xorg-server will uninstall if hal is a dependency)...

If you use the flags, then Xorg won't use hal neither any other kind
of autodetection mechanism, just whatever is in xorg.conf... So
whether hal is installed and daemon started or not, is of no concern
for Xorg while using the flags.

Section "ServerFlags"
Option "AutoAddDevices" "False"
Option "AllowEmptyInput" "False"
EndSection

That's just a way to prevent autodetection to get in your way if you
don't want it, :-)

--
Javier.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/AANLkTim5nF90yYnhQEy9KE7LPfEIr0dh1zJELv_EzSgq@xxxxxxxxxxxxxx



Relevant Pages

  • Re: xorg default configuration location
    ... I just checked on a clean bsd 6.3 and locate shows no xorg.conf. ... and see where it dumps the file. ... I think the whole idea behind Xorg 7.3 is ... yet 'startx' might work in many cases due to this new autodetection and autoconfiguration. ...
    (freebsd-questions)
  • Re: no X after installing xorg + xfce
    ... yet seen your Xorg log or your config file. ... HAL's autodetection, ... proper xorg configuration file (it even has its own man page - man ...
    (freebsd-current)
  • Re: Why is HAL being made the default when its not ready?
    ... detection; USB sticks etc. ... it's not about HAL but about input device ... autodetection in Xorg 1.5. ...
    (Ubuntu)
  • Re: Problem with Nedit
    ... That is something I can live with, though I'd like to fix it. ... I can't saw which configuration file it is. ... to the keyboard configuration under hardware. ... I searched under xorg and a few other things. ...
    (alt.os.linux.suse)
  • Re: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
    ... I use a USB keyboard and a USB three button mouse attached to a Dell ... This upgrade moved me from Xorg 7.3 to Xorg 7.5, ... when I tried to close/minimize an open/raised xterm, ...
    (freebsd-questions)