[i915] Maximum resolution not available after suspend / screen detach
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have a fresh install of Ubuntu 22.04.3, using the default Wayland, on my laptop which is used at two locations:
- at work I have my primary built-in 4K display and 2 additional 1920x1080 monitor connected to a HP DisplayLink docking station using DP, connected to my laptop using USB-C
- at home, I have my primary built-in 4K display and an additional 4x monitor directly connected using the mini-DP
After boot, everything works perfect. However, after working at work, putting the laptop into suspend (by closing the lid), attaching to my monitor at home and opening the lid again, I get my external display at a poor resolution which I cannot change to 4K in the settings menu: the 4K resolution is not available. Also in xrandr, the 4K resolution is not available. The resolution is however correctly provided by the monitor at all times:
$ sudo get-edid -b 8 | parse-edid
8
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
Only trying 8 as per your request.
256-byte EDID successfully retrieved from i2c bus 8
Looks like i2c was successful. Have a good day.
Checksum Correct
Section "Monitor"
Identifier "PHL 328P6V"
ModelName "PHL 328P6V"
VendorName "PHL"
# Monitor Manufactured week 30 of 2020
# EDID version 1.4
# Digital Display
DisplaySize 700 400
Gamma 2.20
Option "DPMS" "true"
Horizsync 30-160
VertRefresh 23-80
# Maximum pixel clock is 600MHz
#Not giving standard mode: 1920x1080, 60Hz
#Not giving standard mode: 1280x1024, 60Hz
#Not giving standard mode: 1280x960, 60Hz
#Not giving standard mode: 1440x900, 75Hz
#Not giving standard mode: 1440x900, 60Hz
#Not giving standard mode: 1680x1050, 60Hz
#Not giving standard mode: 1280x720, 60Hz
#Extension block found. Parsing...
Modeline "Mode 12" 262.75 3840 3888 3920 4000 2160 2163 2168 2191 +hsync -vsync
Modeline "Mode 0" 533.25 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
Modeline "Mode 1" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Modeline "Mode 2" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
Modeline "Mode 3" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
Modeline "Mode 4" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
Modeline "Mode 5" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
Modeline "Mode 6" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
Modeline "Mode 7" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
Modeline "Mode 8" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
Modeline "Mode 9" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
Modeline "Mode 10" 74.250 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync interlace
Modeline "Mode 11" 74.250 1920 2448 2492 2640 1080 1082 1089 1125 +hsync +vsync interlace
Modeline "Mode 13" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
Modeline "Mode 14" 277.25 1920 1968 2000 2080 2160 2163 2173 2222 +hsync -vsync
Modeline "Mode 15" 147.17 2048 2096 2128 2208 1080 1083 1093 1111 +hsync -vsync
Option "PreferredMode" "Mode 12"
EndSection
Previously, using Ubuntu 20.04, I've had the same issue using Xorg, which could easily be solved by unplugging the external monitor and plugging in back again, which worked most of the times, sometimes only after a few retries. Now, with Ubuntu 22.04.3 and Wayland, this doesn't work anymore. Logging out in this situation and logging in again in an Xorg session doesn't help either. Only a reboot seems to help.
Additional debug information at a situation with wrong resolution can be provided on Monday, as I just rebooted again :-)
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSign
Uname: Linux 5.15.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 4 23:29:27 2022
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
DkmsStatus:
evdi/1.12.0, 5.15.0-52-generic, x86_64: installed
virtualbox/6.1.38, 5.15.0-52-generic, x86_64: installed
GraphicsCard:
Intel Corporation CometLake-U GT2 [UHD Graphics] [8086:9b41] (rev 02) (prog-if 00 [VGA controller])
Subsystem: Dell CometLake-U GT2 [UHD Graphics] [1028:0962]
InstallationDate: Installed on 2022-10-21 (14 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: Dell Inc. XPS 13 7390
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/09/2022
dmi.bios.release: 1.16
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.16.0
dmi.board.name: 0G2D0W
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.family: XPS
dmi.product.name: XPS 13 7390
dmi.product.sku: 0962
dmi.sys.vendor: Dell Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
Now I have a related problem at work, where the external monitors were not detected after plugging in the laptop in the docking station and opening the lid. Turning off and on one monitor resulted in detection (in poor resolution) but not the second external one. When both are turned off and on, the system hangs until I disconnect the USB-C cable to the docking station.
A terminal window was open where lsusb was my previous command. During the unresponsive period whilst the docking station was connected, I could press <arrow up>,<enter> without seeing anything on the screen, but after disconnecting the docking station again the command and output where shown:
$ lsusb -tv snd-usb- audio, 5000M snd-usb- audio, 5000M snd-usb- audio, 5000M xhci_hcd/ 12p, 480M
ID 03f0:0867 HP, Inc
ID 03f0:0867 HP, Inc
ID 0ea0:2272 Ours Technology, Inc.
ID 413c:301a Dell Compu...
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
|__ Port 2: Dev 26, If 0, Class=Hub, Driver=hub/4p, 5000M
ID 04b4:6504 Cypress Semiconductor Corp.
|__ Port 1: Dev 27, If 0, Class=Hub, Driver=hub/4p, 5000M
ID 04b4:6504 Cypress Semiconductor Corp.
|__ Port 2: Dev 28, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
|__ Port 3: Dev 29, If 3, Class=Audio, Driver=
ID 17e9:600a DisplayLink
|__ Port 3: Dev 29, If 1, Class=Application Specific Interface, Driver=usbfs, 5000M
ID 17e9:600a DisplayLink
|__ Port 3: Dev 29, If 4, Class=Audio, Driver=
ID 17e9:600a DisplayLink
|__ Port 3: Dev 29, If 2, Class=Audio, Driver=
ID 17e9:600a DisplayLink
|__ Port 3: Dev 29, If 0, Class=Vendor Specific Class, Driver=usbfs, 5000M
ID 17e9:600a DisplayLink
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 5: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
ID 0c45:6723 Microdia
|__ Port 5: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
ID 0c45:6723 Microdia
|__ Port 6: Dev 58, If 0, Class=Hub, Driver=hub/4p, 480M
ID 04b4:6506 Cypress Semiconductor Corp. CY4603
|__ Port 1: Dev 59, If 0, Class=Hub, Driver=hub/4p, 480M
ID 04b4:6506 Cypress Semiconductor Corp. CY4603
|__ Port 1: Dev 60, If 0, Class=Hub, Driver=hub/4p, 480M
ID 05e3:0608 Genesys Logic, Inc. Hub
|__ Port 2: Dev 64, If 1, Class=Vendor Specific Class, Driver=, 12M
|__ Port 2: Dev 64, If 0, Class=, Driver=, 12M
|__ Port 3: Dev 65, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 1: Dev 62, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M