How to generate a failsafe xorg.conf


If you have a device that’s not supported in the bios and you don’t have the driver, you may not be able to get X working at all. Failure looks like anything from random streaking lines and jibberish to just a plain black screen.

I have a laptop with 1440×900 native resolution. The vesa driver detects this preference and tries to use it as the virtual resolution, but it’s not working.

1. Xorg -configure to get a plain-jane xorg.conf
2. Move /root/xorg.conf.new to /etc/X11/xorg.conf
3. Use cvt to generate a failsafe modeline.
4. Add the modeline to the xorg.conf monitor section.
5. Add the display subsection with the failsafe virtual size.
6. Reboot.

The first thing you should do is backup whatever xorg.conf you’re currently using. I usually put a copy in /opt just for safe keeping.

As root (be root for all the commands), run Xorg -configure. This will give you a fresh copy with just the basics. Move it to /etc/X11/ as xorg.conf.

Xorg -configure

Now run “cvt 1024 768″ to spit out a modeline setting. Redirect this to xorg.conf.

cvt 1024 768 >> /etc/X11/xorg.conf

Move the modeline into the Monitor section.

Now create a Subsection in the Screen section with the virtual size of 1024×768 and reboot.


Posted on October 16th, by admica in howto, Linux.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">