vicker313 tech blog

March 8, 2010

Linux Machine No More Display after Monitor Is Replaced

Filed under: Linux — Tags: , , — vicker313 @ 8:00 am

We might experience display problem in a Linux Machine after monitor is replaced, especially when changing a LCD with a CRT. To be more precise, the monitor cannot display the GUI anymore because of monitor refresh rate too high. So we need to adjust the refresh rate through the console.

  1. As the monitor goes blank when displaying the GUI, hit Ctrl+Alt+F2 to switch the display to console. Login as root.
  2. Change directory to /etc/X11, look for a file called xorg.conf.
    cd /etc/X11
  3. Make a copy of the file before making any changes.
    cp xorg.conf xorg.conf.backup
  4. Edit the file with your favorite editor:
    vi xorg.conf
  5. Look for the Monitor Section (similar as below):
    Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "AL1717"
    DisplaySize  340        270
    HorizSync    30.0 - 83.0
    VertRefresh  56.0 - 75.0
    Option      "dpms"
    EndSection
  6. Remove the line DisplaySize, HorizSync and VertRefresh, then save the file.
  7. Reboot the machine, and now it should able to display GUI.
    reboot

Blog at WordPress.com.