Xorg configuration

From Elvanör's Technical Wiki
Revision as of 08:32, 19 March 2009 by Elvanor (talk | contribs)
Jump to navigation Jump to search

Xorg on Gentoo

  • With xorg-server-1.5.4, if you have the hal USE flag enabled, you must configure your input devices via evdev (at the kernel level) and they are autodiscovered / added by HAL. If you disable the hal USE flag, you will use the old way of setting those via the xorg.conf configuration file.

Initial Xorg configuration

  • You can use X -configure, xorgconfig, or xorgcfg. I recommand to use X -configure which creates an useful skeleton file that you can then edit to suit you needs.

Keyboard Layout

  • You should add the following lines to the Xorg configuration file to allow the login window (before KDE is started) to use the correc layout:
       Option "XkbLayout"      "fr"
       Option "XkbModel"       "pc105"

Note that a list of layouts can be found in /etc/usr/share/X11/xkb/symbols.

Xrandr

  • With recent version of Xorg, manual configuration of the xorg.conf file is almost no longer needed. Xrandr kicks in, retrieves information from the monitor and configures Xorg accordingly.
  • The HorizSync, VertRefresh, Modes and Modeline options have been deprecated (although Modeline can still be used with the Option "Preferred Mode"); the only thing that is currently needed now is the Virtual option.
  • The xrandr command line is quite useful.

Nvidia Drivers

  • The current (February 2009) binary drivers don't support XRandR 1.2. To use multiple monitors the best is to use the proprietary TwinView Nvidia feature. It is best to use this via the nvidia-settings GUI application. This won't modify the Xorg configuration files.
  • RandR will appear to be enabled in the Xorg logs, but running xrandr will never show more than the main screen.