You are here: Home &rarr Uncategorized &rarr Creating Your Own xorg.conf – Part 2

Creating Your Own xorg.conf – Part 2

xorg.conf

xorg.conf


Well, after part one, we know what xorg file is and what we can do with it. Here is how youcan create your own xorg.conf file.

Firstly list up thedevices you can seeattached to your system. They would surely include :

  1. A mouse
  2. A keyboard
  3. A workstation ( the default server)
  4. A display screen
  5. A display monitor
  6. A video hardware

Now,to list these devices lets’ take them one at a time.

Firstly, we have to define a section named “InputDevice”. This will contain details of the keyboard and the pointer device. So we define a section as :

Section "InputDevice"
..............................
...........................
EndSection

Now, we fill up the dots.

Starting with the Keyboard. You can give ny name for your keyboard. Mine is “Generic Keyboard”, with a Driver defined as “kbd”. In addition to this there are a numebr of options, including the keyboard model, and the defaeult layout. Each of these is defined as an Option.

So, your configuration file for the keyboard section looks like this :

Section "InputDevice"
Identifier    "Generic Keyboard"
Driver        "kbd"
Option        "XkbRules"    "xorg"
Option        "XkbModel"    "pc105"
Option        "XkbLayout"    "us"
EndSection

Likewise, define your mouse as :

Section "InputDevice"
Identifier    "Configured Mouse"
Driver        "mouse"
EndSection

Now, here remember that the indentation is not important. It only increases readibility.

Define your video adapter as :

Section "Device"
Identifier    "Configured Video Device"
Boardname    "vesa"
Busid        "PCI:0:18:0"
Driver        "nvidia"
Screen    0
Option        "NoLogo"    "True"
EndSection

Now, the most important parthere is the busID. The default xorg.conf will give your correct BUSID. Do not try to change it to something new. Screen 0 is the default login screen you get.

Also, the screen and the display resolution is defined as :

Section "Monitor"
Identifier    "Configured Monitor"
Vendorname    "Plug 'n' Play"
Modelname    "Plug 'n' Play"
HorizSync    28.0-78.0
VertRefresh    50.0-62.0
modeline  "1280x800@60" 68.939 1280 1301 1333 1401 800 803 808 816 -vsync -hsync
Gamma    1.0
EndSection
Section "Screen"
Identifier    "Default Screen"
Device        "Configured Video Device"
Monitor        "Configured Monitor"
Defaultdepth    24
SubSection "Display"
Depth    24
Modes        "1280x800@60"
EndSubSection
EndSection

This is just a sample of my xorg configuration. There is a better chance that it will not be the same for you. Actually, the places you need to make amendments are the HorizSync, VertRefresh and the modeline. These are defined by the hardware manufacturer. You can see my xorg.conf for a better understanding. [ Read part 3 - My xorg.conf ]


About Chinmoy


Chinmoy Kanjilal is the admin of this blog is a programmer and a technology, Linux and web2.0 enthusiast and evangelist from India with an eye for detail. He has a fondness for intriguing software products and hardware hacks.

blog comments powered by Disqus
Content on this Blog is Copyright © 2010 Techarraz. Some rights reserved.
Designed by Theme Junkie. Powered by WordPress.