X Window System

Table of Contents

The toolkits


by ross at 02:54:04 on October 25, 2016

Create config file:

# Xorg -configure
# mv /root/xorg.conf.new /etc/X11/xorg.conf

Edit /etc/X11/xorg.conf, add the following to appropriate sections:

Add Section "ServerFlags":

        Option      "AutoAddDevices"    "False"
        Option      "AllowEmptyInput"   "False"
        Option      "BlankTime"         "0"
        Option      "StandbyTime"       "0"
        Option      "SuspendTime"       "0"
        Option      "OffTime"           "0"

Setup the *time settings as you like.

Section "InputDevice"

        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel"          "pc105"
        Option      "AutoRepeat"        "500 30"
        Option      "XkbLayout"         "us,ua"
        Option      "XkbVariant"        ",unicode"
        Option      "XkbOptions"        "grp:caps_toggle,grp_led:caps,lv3:ralt_switch_multikey,compose:menu"

Setup the layout to match your country. This example shows two languages which could be switched with Caps-Lock.

Edit Section "Monitor":

        Option       "DPMS"

Edit Section "Device":

        Driver      "nvidia"

Edit Section "Screen":

        DefaultDepth 24
        Option       "AddARGBGLXVisuals" "True"
        Option       "RenderAccel" "True"
        Option       "AllowGLXWithComposite" "True"
        SubSection "Display"
                Viewport  0 0
                Depth     24

Delete all other SubSections "Display", leave only the 24-depth one.

As you can see resolution is not specified in any way, Xorg will determine the native resolution of the display automatically.

Add Section "Extensions":

Section "Extensions"
    Option "Composite" "Enable"

If you want examples of xorg.conf's I use you can find them here: http://daemon-notes.com/downloads/configs (/etc → X11)

Test xorg:

# Xorg -retro

You should see gray screen with a mouse cursor shaped like X. Press Ctrl-Alt-F1 to switch back to console and Ctrl-C to terminate xorg.

If something goes wrong inspect /var/log/Xorg.log.

nVidia multi-monitor configuration

If your monitors aren't setup the way you want (order, etc) you can change it with nvidia-settings. Run the utility, setup the monitors, press "Save to X configuration file" and save it to a file in your home dir. Then you can do something like this:

> sudo cp /home/ross/xorg.conf /etc/X11/xorg.conf

Restart Xorg.

on a freshly installed system, `Xorg -configure` fails with

X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.0-RELEASE-p3 amd64
Current Operating System: FreeBSD vm-freebsd-amd64-01 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul 8 06:37:44 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 13 August 2014 02:11:33AM

Current version of pixman: 0.32.4
Before reporting problems, check wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 17 11:58:05 2014
List of video drivers:
(EE) module ABI major version (6) doesn't match the server's version (12)
No devices to configure. Configuration failed.
Server terminated with error (2). Closing log file.

Any ideas ?
-- z00m1n
Sunday, August 17, 2014, 10:00:27
(EE) module ABI major version (6) doesn't match the server's version (12)

this is usually solved by reinstalling the driver causing this. I don't know, video driver in this case?
-- ross
Thursday, August 21, 2014, 13:02:08