Xorg

From Gentoo Wiki
Jump to: navigation, search

Xorg is an open source implementation of the X Window System.

Installation

There are many ways to get the X server in Gentoo, however a common method is to emerge one of the two packages:

As seen from the descriptions above, those who desire a more minimal X server implementation should choose the first package.

USE flags

xorg-server

USE flags for x11-base/xorg-server X.Org X servers

dmx Build the Distributed Multiheaded X server
elogind Use elogind to get control over framebuffer when running as regular user
glamor Enable Glamor OpenGL 2D acceleration
kdrive Build the kdrive X servers
static-libs Build static versions of dynamic libraries as well
unwind Enable libunwind usage for backtraces
xcsecurity Build Security extension
xephyr Build the Xephyr server
xnest Build the Xnest server
xorg Build the Xorg X server (HIGHLY RECOMMENDED)
xvfb Build the Xvfb server

xorg-x11

Note
This metapackage does not have any USE flags of its own.

The X USE flag

Many packages can be built with optional x11 support by activating the global X USE flag (if not already activated by profile selection).

Emerge

xorg-server

Just the necessary components:

root #emerge --ask x11-base/xorg-server

xorg-x11

The full Xorg suite via the meta package:

root #emerge --ask x11-base/xorg-x11
Note
Getting a working graphical environment (including popular desktops like KDE and Gnome) requires additional configuration before emerging one of these packages. See the more extensive Xorg Guide for details.

Troubleshooting

X server starts and dies unexpectedly with no errors

Problem: Running startx will start the X server, however it will immediately die without any errors (searching "EE" in /var/log/Xorg.0.log returns no related results).

Cause: an empty .xinitrc file exists for the user who is running the startx command, so the X server is starting, then stopping because there is nothing left for it to do.

Resolution: Either remove the .xinitrc file or define a window manager inside it.

Reproducible via:

user $touch ~/.xinitrc

See also

  • Xorg/Guide — explains what Xorg is, how to install it, and the various configuration options.
  • Xorg/Hardware 3D acceleration guide — a guide to getting 3D acceleration working using the DRM with Xorg in Gentoo.
  • X server — the main component of the X Window system which abstracts the hardware and provides the foundation for most graphical user interfaces, like desktop environments or window managers, and their applications.
  • XrandrX protocol extension and its CLI tool xrandr are used to manage screen resolutions, rotation and screens with multiply displays in X