在 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
尝试将设置更改为显示器支持的最高分辨率(未包含在上面的列表中)时出现错误。
> xrandr --output DisplayPort-1 --mode 1920x1200
xrandr: cannot find mode 1920x1200
关闭并打开外接显示器后,分辨率以某种方式添加到 xrandr 列表中:
> 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
1920x1200 59.95 +
# a list of resolutions
1280x768 59.94*
# a list of lower resolutions
现在可以改变分辨率:
> xrandr --output DisplayPort-1 --mode 1920x1200
# no output, the resolution was successfully changed
更改后,分辨率更改成功,并且 xrandr 给出正确的输出:
> 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 1920x1200+0+0 (normal left inverted right x axis y axis) 535mm x 339mm
1920x1200 59.95*+
# a list of lower resolutions
重新启动时不会出现此问题。但是,从睡眠状态唤醒后,此问题始终存在。
什么原因可能导致该问题?我该如何解决它?
运行基于 AMD 的笔记本电脑(带集成显卡的 Ryzen 7 3700U),外接显示器通过 USB-C 连接。笔记本电脑屏幕分辨率没有问题,只有外接显示器受到影响。