Configuration file info is in blue.
Terminal code is in red and you should be root to make changes.
Not root? Type su and enter your root password in terminal.
Here is a tip to open another session.
Press Control Alt 7 (I use mepis your miles may vary try different numbers if 7 doesn't work for you)
This is how I start from scratch to get a config file setup.
root@mepis# XFree86 -configure
root@mepis# XFree86 -xf86config XF86Config.new
You should see a grey test screen with X pointer.
Move the cursor around to test the mouse
If all went well press:
Control Alt and Backspace
To get back to prompt.
Then do:
root@mepis# cp XF86Config.new /etc/X11/XF86Config
An other option is this command.
root@mepis# dpkg-reconfigure xserver-xfree86
Please Google your monitors specs to make sure you know what it can handle!!
How I change my monitor resolution.
Edit /etc/X11/XF86Config-4 using vi if you're a unix geek or whatever editor you're comfortable with.
I like vi.
root@mepis# vi /etc/X11/XF86Config-4
I Added Load "ati" to my file because im using stock ati card
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
Load "ati"
EndSection
My monitor can handle HorizSync up to 90.
This is my monitor setup.
Section "Monitor"
Identifier "Monitor0"
VendorName "unknown"
ModelName "unknown"
#Option "DPMS" "true"
HorizSync 30.0 - 90.0 # Warning: This may fry old Monitors
VertRefresh 50.0 - 70.0 # Very conservative. May flicker.
Changing the default Depth and Modes
DefaultColorDepth is usually 24 so check to see if yours is set for 24 by default and then scroll down and edit that line.
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 24
SubSection "Display"
Depth 1
Modes "1024x768""800x600"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768""800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768""800x600"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768""800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768""800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1800x1440" "1792x1344" "1400x1050" "1280x1024""1024x768""800x600"
EndSubSection
SubSection "Display"
Depth 32
Modes "1024x768""800x600"
EndSubSection
Thats it!If you're using vi :wq to save your file and write the changes
Restart X to see your changes. Wanna see your current resolution? In a terminal type
xdpyinfo | less
You don't have to be root for this one.Scroll down until you see your resolution. Hit q to quit less and get back to prompt.