How can I reset my display settings through terminal?

I am using Ubuntu 15.10. I accidentally changed the size of the interface to maximum. Now my folders and windows are too large and don't fully fit the screen so I cannot revert the effect. Is there any way to reset the display settings to default so this can revert to normal?


Solution 1:

Removing ~/.config/monitors.xml should do it:

  • Open a terminal window by pressing Ctrl+Alt+T
  • type rm ~/.config/monitors.xml and press Enter
  • immediately log out and back in. It should be reverted now

Alternatively

If you know what resolution your screen supports (e.g. 1440x900), you can run the command:

xrandr -s 1440x900

to at least temporarily set a workable solution, then subsequently change settings from GUI.

Solution 2:

I had a similar problem to you but I found the solution here How to scale title bars and menu in Ubuntu 14.04 with the terminal only

dconf reset /com/ubuntu/user-interface/scale-factor

This changes the "scale for menu and title bars" to default.

Solution 3:

Just to add to this, since this is the first thread that appeared for me: My solution to reset the display was to use:

xrandr --listactivemonitors