ArchLinux - Xorg

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on November 27th, 2009

Welcome to the tutorial guide. The guide will provide a user with guidance and instructions on how to install th Xorg package.

A user can install the Xorg by running following command:

# pacman -Sy xorg
If you want to install the Intel graphics drivers, then please run following command:
# pacman -Sy xf86-video-intel
It is a good idea to install the Synaptics drivers for the touchpad. This can be done by running following command:
# pacman -Sy xf86-input-synaptics

Please note that if you are not able to use the keyboard or the mouse then it is a good idea to install the following package by running following command:
# pacman -Sy xf86-input-keyboard xf86-input-mouse

After running this command, you can drop the example Xorg configuration below into your /etc/X11/xorg.conf file OR use an automated Xorg configuration system. An Xorg file can be automatically generated by running the following command:
# Xorg -configure

This is a good example of Xorg configuration:
Section “ServerLayout”
Identifier “Arch Linux”
Screen 0 “Screen0″
InputDevice “keyboard”
InputDevice “mouse”
InputDevice “synaptics”
EndSection

Section “Files”
ModulePath “/usr/lib/xorg/modules”
FontPath “/usr/share/fonts/misc”
FontPath “/usr/share/fonts/100dpi:unscaled”
FontPath “/usr/share/fonts/75dpi:unscaled”
FontPath “/usr/share/fonts/TTF”
FontPath “/usr/share/fonts/Type1″
EndSection

Section “Module”
Load “glx”
Load “dri”
Load “extmod”
Load “synaptics”
EndSection

Section “ServerFlags”
Option “AllowMouseOpenFail”
Option “BlankTime” “5″
Option “AIGLX” “false”
Option “AutoAddDevices” “false”
EndSection

Section “InputDevice”
Identifier “keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbLayout” “us”
Option “XkbVariant” “”
EndSection

Section “InputDevice”
Identifier “mouse”
Driver “mouse”
Option “Device” “/dev/input/mice”
Option “Protocol” “IMPS/2″
Option “Emulate3Buttons” “yes”
Option “ZAxisMapping” “4 5″
Option “CorePointer”
EndSection

Section “InputDevice”
Identifier “synaptics”
Driver “synaptics”
Option “Device” “/dev/psaux”
Option “Protocol” “auto-dev”
Option “LeftEdge” “60″
Option “RightEdge” “1070″
Option “TopEdge” “90″
Option “BottomEdge” “680″
Option “PalmDetect” “0″
Option “SHMConfig” “true”
Option “SendCoreEvents” “yes”
Option “HorizEdgeScroll” “1″
Option “VertEdgeScroll” “1″
Option “RBCornerButton” “0″
Option “RTCornerButton” “0″
Option “MaxSpeed” “0.9″

# You will also need the following 3 lines if you’re using Xorg 1.5RC6 or newer
Option “TapButton1″ “1″
Option “TapButton2″ “2″
Option “TapButton3″ “3″
EndSection

Section “Monitor”
Identifier “Monitor0″
VendorName “ASUS”
ModelName “eeePC P701″
Modeline “800×480″ 29.58 800 816 896 992 480 481 484 497 -HSync +Vsync # 60 Hz
EndSection

Section “Device”
Identifier “Card0″
Driver “intel”
VendorName “Intel Corporation”
BoardName “Mobile 915GM/GMS/910GML Express Graphics Controller”
BusID “PCI:0:2:0″
Option “AccelMethod” “EXA”
Option “MigrationHeuristic” “greedy”
EndSection

Section “Screen”
Identifier “Screen0″
Device “Card0″
Monitor “Monitor0″
DefaultDepth 24
SubSection “Display”
Viewport 0 0
Depth 8
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section “DRI”
Mode 0666
EndSection

If you followed the guidance and instructions as provided in this tutorial guide then you would have successfully installed the Xorg package.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Leave a Comment