You are on page 1of 10

Configuring X in Slackware The configuration utility that I like best, is xf86config.

It is an interactive question and answer routine that you launch from the command prompt. This utility should be present in any Linux distribution, as it comes with X ree!". #nce you are familiar with it, you can run through it very quickly and if the results are less than what you desire, you can simply run it again and again until you get it right. $fterwards, you will probably want to make a few minor edits to the %etc%X&&%X !"'onfig file, depending on your needs. $s root (this can even be done in a terminal with X ree!" running, as changes don)t take effect until X is restarted*, type+ xf86config

or ,lackware &- or newer, run xorgconfig which works the very same way.

.it enter to continue, and the first question you are presented with is to select your mouse protocol.

I have a Logitech ps%/ wheel mouse, so I)m going to enter 7 for the IMPS/2 protocol.

This isn)t really useful unless you intend to have more than one keyboard layout and switch between them. we are prompted to specify a mouse device. That will simply create a link to %dev%psaux. 0ext you are prompted to give a name to your keyboard layout.lackware setup create a %dev%mouse symbolic link.0ext. 4henever you see something like this in xf!"config you can likely 5ust hit enter to accept the default name. . That)s all I generally do. I choose option 1 for a generic &-& key 3' keyboard. 1ecall that I chose I23. you can simply hit enter to accept the default choice of /dev/mouse. the ps%/ mouse device. If you already let . 0ow you will be prompted to select your keyboard type./ in the examples.

9. or &-/. we are prompted for the vertical sync (refresh rate* of the monitor. This is the tricky part of this configuration. If you really don)t know. and can)t find out. you can press 11 and specify your own range.x="!. If you have a really fussy monitor. .6 for hori6ontal frequency.!. and establish acceptable values.9 : . 2ost modern monitors will shut right down if you try to exceed their frequency capabilities. or example. or ranges of values for the hori6ontal and vertical frequencies (refresh rate* 7ou will want to be careful here. for it)s possible to damage your monitor. we are prompted to enter some information about our monitor. using !9 . then try something safe. that likes exact frequencies for the resolution used. you must look at the specsheet or product manual for your monitor. 7ou are probably more familiar with this value. on one box I have a really fussy 2ag X<9--T monitor. like 8&.0ext. but don)t count on that for all monitors. 0ext.6 for vertical refresh rate. the magic number is "!. or even an exact number.= k.

x="! anyway.$gain. 0ote. 0ow. 3ersonally. or even an exact number. however. you can specify your own range.ay . . we are prompted to specify our video card. or example. that if you specify exact numbers for hori6ontal and vertical frequencies. >mach". you will probably only be able to use one resolution for your monitor. and choose the best match from the list. It may be listed exactly. .> for $TI 1age 3ro based cards. I never want to change from &-/. or perhaps by some generic name.

or you will have to cycle through all of them to get back to a preceeding page. make sure you take note of the number that corresponds to yours when you see it. . and the value you specify is commented out in the resulting X !"'onfig file. If you want to look beyond at the subsequent pages of cards supported. It)s determined automatically. 0ext you will be prompted to set your display resolution. This number may not actually be used. 0ow it prompts you for the amount of video memory on your card. depending on your card. ?o specify it though.I am choosing card number 6 for my 1adeon =9--.

.x="! but still have the other two available. you can cycle through them. but you can try it for yourself and see.$s it says. 4hile running X. it)s quite annoying. I am choosing . select the resolutions you most want to use first. 3ress 1 to set the resolution for ! bit modes (/9" colour*. to get &-/. 7ou will then be presented with this question+ I would say n here.8/. by pressing c!rl"al! and the " or # keys on the number pad on your keyboard.

If you made correct choices during the configuration. $lso. If not. you will be prompted to choose the default colour depth. and you know you)ve chosen the correct driver. 7ou want to say here. If you say no. you will be prompted to write it to other locations. that symbolic link will be pointing to xinitrc.0ow press 2 to change the modes for &" bit and go through the same steps. . if you)re not already running X.kde which will start the @ ?esktop Anvironment. The configuration is now complete.o what about these manual edits to the X !"'onfig file (or xorg. press % to proceed.ome additional information+ $t this point. 7our default window manager is what will load. . run through xf!"config again.lackware setup. bit colour (&" million colours*. you can type s!ar!x and see if your new configuration works. if you want a mouse scroll wheel to work.lackware &-*B 7ou may want to enable additional modules. 3ress $ for /. like ?1I (?irect 1endering Infrastructure* and CLX for #penCL support. I am choosing & for /. consider your hori6ontal and vertical frequencies. If your display doesn)t look right.conf in . bit and when finished. or manually correct your file. the mouse configuration section under Input?evice will need editing. you should have a usable system. 0ext. If you went with the default during . according to the xini!rc symbolic link in %etc%X&&%xinit. . as that is indeed where your file will be located. and you are prompted to write the X !"'onfig file.

The second line I add+ 'ode+ . and you want this kind of stuff to work then you must install their proprietary drivers. If you have an 0Didia based card.. there)s a little subsection for ?1I permissions that you can uncomment if you wish non:root users to be able to use direct rendering (of course you do. and 9 for the scroll wheel. 'ode+ # This loads the GLX module Load "glx" # This loads the DRI module Load "dri" ?own near the bottom of the file. scroll to about mid way through the file. and look for the following section+ I added two lines to this section. 0ear the top of the file. and follow their instructions for installation and configuration steps.7ou will find the main configuration file in %etc%X&& if you went with the defaults. you can uncomment glx and dri if your card is supported for them. you won)t be playing games as root* 'ode+ Section "DRI" Mode 0666 EndSection If you have a wheel mouse. The first line I add+ 'ode+ !tion ""#xisMa!!ing" "$ %" This tells it to map buttons .. and uncommented the >1esolution> setting.

!tion "&uttons" "%" This line tells it that your mouse has 9 buttons. It)s a simple matter of changing the exec command when you want to start another. by default. Fncommenting the >1esolution> setting changes the pointer speed. The scroll wheel is considered to be three buttons. (for example. 7ou can experiment with that setting.owever. $s root. I prefer starting the X server using the s!ar!x command. if you are familiar with other distributions. there)s no shutdown button* 'lick to see a screenshot of C?2 (png file in new window* If you click the . you must change the system)s runlevel. I don)t really like it. that is runlevel % to get that behaviour. edit the /e!c/rc'd/rc'% file. I had a 2icrosoft wheel mouse once. If you want that to start automatically on boot.. edit the /e!c/ini!!a* file (very carefully* This is the first setting in the file (following some comments* Guote+ H ?efault runlevel. and . by copying one of the files from %etc%X&&%xinit and editing the >exec> line at the bottom to start the desired window manager. the system first tries to start gdm which is the Cnome session manager. but start off conservatively or your pointer may be very erratic.lackware. To change this default. Eutton 8 is the middle click. To change the default runlevel. a hidden file with a dot in the filename* in my home directory. you can start this by simply typing kdm and then you)ll be able to choose your session type (window manager* from a drop list. you may want to use the graphical logon screen (session manager*. and 9 are the scrolling functionality. it pops up a menu where you can choose your session type. (?o not set to . and a setting of >!--> was what I liked for it on this system. and it has less functionality than @?2. The preferred one is usually the @?A session manager. . . This overrides the defaults. ()M.optical wheel mouse.+initdefault+ 0ow. In . It 5ust so happens that a setting of >9--> is about right for my Logitech 2X9-.ession button. I can create an 'xini!rc file (yes. so the system starts @?2 on entering runlevel .or "* id+8+initdefault+ 'hange the 8 to a % so it looks like+ Guote+ id+.

An5oyI H2 +o!es for Slackware 1. script is still similar. will start the @?2 graphical login manager. X ree!" is now configured to your liking.tarting the system in runlevel . .imply comment out the Cnome C?2 section as shown.org fork of the X 4indowing . This procedure is pretty much exactly the same for . It will then default to @?2.lackware &-.lackware &-.conf H$ Slackware 1. and you won)t have C?2 installed.'2 0o changes to this procedure for ... except that the distribution has switched to the X. ollow the same steps $lso./. however you shouldn)t need to edit it. 7ou need to run xorgconfig instead of xf!"config.opefully. and it will not even look for it. 5ust run xorgconfig and follow the same steps.d%rc.ystem instead of X ree!". The only difference is that Cnome is no longer included. The %etc%rc. the configuration file is %etc%X&&%xorg. instead of %etc%X&&%X !"'onfig. 'lick to see a screenshot of @?2 (png file in new window* . .