Your system still boots right?
I don't know exactly where your files are so try this..
Code:
cat /var/log/* | grep /etc/X11/XF86
you'll see something like this..
Code:
(==) Using config file: "/etc/X11/XF86Config"
That's the file to edit.
now look at this..
Code:
cat /etc/X11/XF86Config |grep Modes
Modes "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Modes "640x480"
The Modes line needs to be edited. Here is a way to do it with sed..
Include the exact text in the file to be removed like this.. sed s/'Modes *text to be removed'/Modes/ as shown..
[code]
cat /etc/X11/XF86Config |sed s/'Modes *"1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768"'/Modes/ > newconfig
Check the results with diff the difference in the two files will be displayed
Code:
diff newconfig /etc/X11/XF86Config
116c116
< Modes "800x600" "640x480"
---
> Modes "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Now you can backup and replace the contents of the file /etc/X11/XF86Config
Code:
cp /etc/X11/XF86Config /etc/X11/XF86Config.bak
cat newconfig > /etc/X11/XF86Config
You could also edit the file with an interactive editor if you want.