Prev | Current Page 301 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


Tuning Up Your X Configuration File
The xorg.conf file might look a bit complicated when you first start working with it. However,
chances are that you will need to change only a few key elements in it. As root user, open the
/etc/X11/xorg.conf file in any text editor. Here are some things you can look for:
 Mouse??”Look for an InputDevice section with a Mouse0 or Mouse1 identifier. That
section for a simple two-button, PS2 mouse might look as follows:
Section ???InputDevice???
Identifier ???Mouse0???
Driver ???mouse???
Option ???Protocol??? ???PS/2???
Option ???Device??? ???/dev/psaux???
EndSection
If you are unable to use some feature of the mouse, such as a middle wheel, you might be
able to get it working with an entry that looks more like the following:
Section ???InputDevice???
Identifier ???Mouse0???
Driver ???mouse???
Option ???Protocol??? ???IMPS/2???
Option ???Device??? ???/dev/psaux???
Option ???ZAxisMapping??? ???4 5???
EndSection
122
Linux First Steps Part I
Don??™t change the mouse identifier, but you can change the protocol and add the
ZAxisMapping line to enable your wheel mouse. Try restarting X and trying your
mouse wheel on something like a Web page to see if you can scroll up and down
with it.
Your mouse might be connected in a different way (such as a bus or serial mouse) or may
have different buttons to enable.


Pages:
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313