Ubuntu 发行版升级后(从 LTS 20.04 升级到 LTS 22.04,运行 KDE),从睡眠状态唤醒后,我开始遇到外部屏幕分辨率问题。显示器分辨率较小 (1280x768),并且不遵循睡眠之前的设置 (1920x1200)。
从睡眠中醒来后:
> xrandr
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 connected primary 1280x768+0+0 (normal left inverted right x axis y axis) 535mm x 339mm
1280x768 59.94*
# a list of lower resolutions
Run Code Online (Sandbox Code Playgroud)
尝试将设置更改为显示器支持的最高分辨率(未包含在上面的列表中)时出现错误。
> xrandr --output DisplayPort-1 --mode 1920x1200
xrandr: cannot find mode 1920x1200
Run Code Online (Sandbox Code Playgroud)
关闭并打开外部显示器后,分辨率会以某种方式添加到 xrandr 列表中:
> xrandr
HDMI-A-0 disconnected (normal left inverted right x …Run Code Online (Sandbox Code Playgroud)