X.Org

From Gentoo Linux Wiki

(Redirected from Xorg)
Jump to: navigation, search

X.Org TOC


Contents

[edit] Prerequisites

Before installing X.Org you have to configure a few important variables, namely VIDEO_CARDS and INPUT_DEVICES. These are alias for the x11-drivers/xf86-video-* and x11-drivers/xf86-input-* packages and, in the case of the package x11-base/xorg-drivers, acts as "pull in" USE flags. So setting these variables is a good idea as it will make the emerge include your drivers.

See the Input drivers and Graphics drivers articles before continuing.

[edit] USE Flags

Make sure the xorg USE flag is enabled. It's also a good idea to enable the dri USE flag and leave the minimal USE flag disabled as you most likely want to have DRI enabled as it provides accelerated graphics. Note that your X11 graphics driver (x11-drivers/xf86-video-*) might also carry this USE flag so enable it there as well and/or globally in /etc/make.conf. Make sure you also enable the hal USE flag, if available, on your input devices driver(x11-drivers/xf86-input-*) if you enabled hal for x11-base/xorg-server.

[edit] Installation

It's often a good idea to run a pretend emerge and check so you have set the VIDEO_CARDS, INPUT_DEVICES and USE flags to your liking,

emerge -pv xorg-server

If all is good, emerge,

emerge -av xorg-server

If you changed your VIDEO_CARDS or INPUT_DEVICES variable, update your world for the changes to take effect,

emerge --deep --newuse world

[edit] Configuration

Once X.Org has emerged, you might need to configure it in order to make it work. The configuration is mostly done through the /etc/X11/xorg.conf file. There are automated tools available to perform the configuration for you or guide you.

The recommended method is to run X.Org without a configuration file by utilizing HAL/udev, evdev and dbus. HAL/udev will determine what it thinks to be the best setup for the machine it is operating on. In such case that HAL/udev doesn't get things quite right, you can specify specific options in the configuration file while leaving the rest of the options undefined. (See example.)

If you decide against utilizing evdev, HAL/udev and/or dbus, follow the steps in the next subsection.

[edit] Xorg -configure

X.Org comes with it's automated tool. To use it, run,

Xorg -configure

The tool will create the configuration under the file /root/xorg.conf.new. You may want to test it using,

X -config /root/xorg.conf.new

prior moving it to /etc/X11/xorg.conf. Your video driver package may provide an automated tool helping you configure the video part of X.Org. (ie. nvidia-xconfig for nvidia GPUs.) Refer to the proper article, so start with finding your driver in Graphics drivers.

[edit] xorgconfig

Note: xorgconfig and xorgcfg are not well maintained, and have been removed from the X.Org 1.6 release.

If the above tool doesn't work, you can try xorgconfig. This tool will ask you about your hardware configuration and will configure xorg.conf accordingly. It's often a good idea to run it in textmode just to be safe,

xorgcfg -textmode

This tool can also be used to further tune the xorg.conf generated by Xorg -configure. Once configured, move your new xorg.conf to /etc/X11/.

[edit] Troubleshooting

[edit] Zap (Terminate Server)

For a long time, the X server had a default key binding,Ctrl+Alt+Backspace, to terminate, or "zap", the server. This option was gradually removed between version 1.5 and 1.6. Refer to Gentoo's Xorg 1.6 Upgrade Guide for the current way to get this often useful and much-demanded functionality enabled again.

[edit] x11 Overlay

For the very latest version of the X.Org suite, you can use the x11 overlay,

layman -a x11

And update your system,

emerge -avuDN world

See Layman for further instructions.

[edit] Links

Personal tools
In other languages