[amdgpu] Wrong external screen resolution after wake up from sleep
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
xorg-server (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After the Ubuntu distro upgrade (upgrade from LTS 20.04 to LTS 22.04, running KDE) I started experiencing a problem with external screen resolution after the wake up from sleep. The monitor resolution is small (1280x768) and doesn't respect the setting prior the sleep (1920x1200).
After the wake up from sleep:
```
> 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
```
There is an error when trying to change the setting to the highest resolution supported by the monitor (which is not included in the above list).
```
> xrandr --output DisplayPort-1 --mode 1920x1200
xrandr: cannot find mode 1920x1200
```
After the turn off and turn on of the external monitor, the resolution is somehow added to the xrandr list:
```
> 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
```
Now it is possible to change the resolution:
```
> xrandr --output DisplayPort-1 --mode 1920x1200
# no output, the resolution was successfully changed
```
After the change, the resolution is successfully changed and xrandr gives proper output:
```
> 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
```
The problem is not present on fresh start. However, it is consistently present after the wake up from sleep.
What can cause the problem and how may I fix it?
Running AMD based laptop (Ryzen 7 3700U with integrated graphics), the external monitor is connected via USB-C. There are no problems with laptop screen resolution, only external monitor is affected.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSign
Uname: Linux 5.15.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
CompizPlugins: No value set for `/apps/
CompositorRunning: None
CurrentDesktop: KDE
Date: Thu Jun 16 18:12:05 2022
DistUpgraded: 2022-05-08 07:52:25,560 DEBUG icon theme changed, re-reading
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15d8] (rev c1) (prog-if 00 [VGA controller])
Subsystem: Lenovo ThinkPad E595 [17aa:5124]
InstallationDate: Installed on 2019-08-21 (1030 days ago)
InstallationMedia: Kubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
MachineType: LENOVO 20NE000BMC
ProcKernelCmdLine: BOOT_IMAGE=
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to jammy on 2022-05-08 (39 days ago)
dmi.bios.date: 01/26/2022
dmi.bios.release: 1.24
dmi.bios.vendor: LENOVO
dmi.bios.version: R11ET44W (1.24 )
dmi.board.
dmi.board.name: 20NE000BMC
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.ec.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad E495
dmi.product.name: 20NE000BMC
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
affects: | ubuntu → xorg (Ubuntu) |
summary: |
- Wrong external screen resolution after wake up from sleep + [amdgpu] Wrong external screen resolution after wake up from sleep |
affects: | xorg (Ubuntu) → xorg-server (Ubuntu) |
tags: | added: amdgpu multimonitor |
Same problem with GNOME on 22.04, see comments here: https:/ /askubuntu. com/questions/ 1408789/ wrong-external- screen- resolution- after-wake- up-from- sleep