X11 configuration

From Wikislax

Revision as of 21:45, 7 July 2012 by WikiSysop (Talk | contribs)
Jump to: navigation, search


X11R7 and later eliminate the need for manual configuration of X11. The correct graphic card, screen, keyboard and mouse are recognized automatically and stored in /etc/X11/xorg.conf that you can still edit manually.

Local language

Taking local keyboard layouts into account requires replacing "us" by your locale in a few files for X11 and for the base system. More details here for the French language. Be sure to check :


X11 legacy configuration

X11R6 makes you run Xorg -configure to generate the /etc/X11/xorg.conf file based on the results of autoconfiguration, or let /usr/X11R6/bin/xorgconfig produce a base /etc/X11/xorg.conf file for your configuration and fine-tune it.

If using the latter, a key point is the graphical board. If it is not in the list of compatible hardware then it is not managed. A solution is to use the Vesa driver (number 0) but the maximal resolution is 1280 x 1024, which will probably be under the possibilities of your screen. A workaround is to use an X terminal on another machine. See «using Xdm» below.

For the mouse, try to use auto [Auto detect] and the /dev/input/mice default device.

Also important are the horizontal and vertical frequencies. This information is probably located in the documentation of your screen. If not, word goes that a program named SuperProbe would be able to determine the values, but I have no additional information about this. Beware, a configuration mistake can definitely damage your screen! For an Acer AL2032W h=31-81, v=56-75 and the resolution 1680x1050 can be edited manually in /etc/X11/xorg.conf.

X11 usage

To start X, use the startx command. To stop X, use ctrl+alt+backspace. It’s good to know as if your screen freezes this avoids rebooting. On i386, you can switch among consoles using ctrl+alt+Fn, but if you have a screen under X, you need to go back using ctrl+alt+F7 (or another Fn function key depending on the number of virtual consoles configured in your kernel).

By defaut, Slackware configures a single console on ctrl+alt+F6 to use in addition to the X console on ctrl+alt+F7. It's possible to configure more by choosing the run level 4 for consoles c1 to c5 in /etc/inittab :

# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

X11 driver

Default drivers are available for the most common boards but can be too slow. To speed up, go to the website of your chipset provider and get a recent (decent?) driver. Of course it is a good idea to check beforehand that your chipset provider supports Linux and provides Linux drivers (but this is true for all of your hardware ...). nVIDIA are Linux-oriented and publish on their website a reduced number of drivers that can be used on an extensive number of boards.

Just download and run the install script, which requires the presence of the development tools and Linux headers, but «taints the kernel», meaning that in case of crash the kernel debug information could be unreliable, meaning that if you have an issue with something, you could be denied support until you provide debug information obtained with an untainted kernel.

IPTables Main Page X11 over the network
Personal tools