XRANDR Comes to the Rescue

What could be more frustrating than trying to install Ubuntu or Mint on a new CPU, motherboard, with a built-in graphics card and your display goes south. Here’s the scenario, after the initial flash screens, the screen goes blank. It seems that Xorg is using a screen resolution your monitor does not support.

Why is that? So frustrating. So, my older 19 inch Samsung monitor comes to the rescue. It seems to cope better than my 22 inch HPw220h monitor. The initial screen seems to be twice as big as the monitor supports, hence it doesn’t display properly on certain monitors.

There is one trick, well, a fix to make things all right again. XRANDR comes to the rescue. You will need to perform the following to get your Xorg displaying properly.

  • Hit Ctrl-Alt-F1. This will take you to the terminal screen.
  • Type in XRANDR -s 1024×768. This resets the screen a certain size.
  • Hit Ctrl-Alt-F7. This will take you back to XORG.

You can then make the Xorg changes and make it stick. Once I regained my screen, I was able to reconfigure Xorg to the resolution I wanted, 1680×1050 on my HP monitor.

To make my changes stick, I selected Preferences>Display. Say NO when prompted. Logout and Login.

The new Xorg configuration is now set.