Ubuntu 14.04:重置 xrandr 配置

xan*_*rix 2 xrandr 14.04

我对 xrandr 进行了错误的设置(错误使用了 --scale 参数),现在我的 Ubuntu 14.04 在 Unity 登录屏幕后冻结

我尝试删除(从恢复 shell 中)~/.config/monitors.xml 并在~/xprofilexrandr --output VGA1 --mode 800x600上设置

但我无法重置此配置。

如何恢复/设置默认显示设置?

ger*_*los 5

尝试重置您的显示输入:

xrandr -s 0
Run Code Online (Sandbox Code Playgroud)

如果 - 正如您所说 - 您无法通过 GUI 登录,请尝试使用 Ctrl-Alt-F1 进入虚拟终端,在那里登录,然后尝试使用以下命令:

export DISPLAY=:0
xrandr -s 0
Run Code Online (Sandbox Code Playgroud)

您甚至可以通过 SSH 在网络上执行此操作。