I did a wrong setting with xrandr (wrong use of --scale parameter) and now my Ubuntu 14.04 freeze after unity login screen

I tried to remove (from recovery shell) ~/.config/monitors.xml and set xrandr --output VGA1 --mode 800x600 on ~/xprofile

but I can't reset this config.

How can I restore/put default my display settings?

1 Answer 1


Try resetting your display typing:

xrandr -s 0

If -as you say- you can't login via your GUI, try to go to a virtual terminal with Ctrl-Alt-F1, login there, and try with these commands:

export DISPLAY=:0
xrandr -s 0

You can even do this over the network through SSH.

  • 1
    Some more detail on this would have been nice. It didn't reset my primary monitor as I'd hoped, but it did turn off both my other displays making it that much more obnoxious to try to fix on the one monitor I was already having display problems on.
    – Vala
    Oct 11, 2016 at 11:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .