Display is wrong resolution, aspect ratio, and size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-hwe-5.8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
So last night (April 13th), I installed an update from Canonical that popped up in a GUI, it said something about a security update (I didn't look at it too hard). Since then I've rebooted my machine and now the display is the wrong resolution (it ought to be 3840 x 2160, 597mm x 336mm, 60fps [monitor](https:/
```
$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm
1024x768 76.00*
```
```
$ inxi -G
Graphics:
Device-1: NVIDIA GM107GL [Quadro K2200] driver: N/A
Display: x11 server: X.Org 1.20.9 driver: fbdev,nouveau
unloaded: modesetting,vesa resolution: 1024x768~76Hz
OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 20.2.6
```
I've tried unplugging and replugging the monitor, rebooting several times, adding an xrandr modeline, and changing `/etc/default/grub` to have `GRUB_CMDLINE_
My feeling is that there's some graphics driver issue (that the renderer is llvmpipe doesn't seem right).
I guess there's also a confounding factor in that I'm running the display through a [KVM switch](https:/
I tried booting into recovery mode, which was no dice (also tried cleaning up `dpkg` through the recovery interface). While I was in the GRUB menu, I noticed that it defaults to the kernel version 5.8.0-49, but that I also had 5.8.0-48 installed. Boothing into the older kernel, everything worked. Curious, I checked the logs.
```
$ cat /var/log/dpkg.log | grep linux-image
2021-04-13 23:15:01 install linux-image-
```
And that lines up with when I did that update. So it seems that the new kernel version somehow made it so xrandr couldn't detect any of the modes on my monitor and just defaulted to some default.
So the workaround presently is just boot with 5.8.0-48.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSign
Uname: Linux 5.8.0-49-generic x86_64
.tmp.unity_
ApportVersion: 2.20.11-
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 14 17:21:08 2021
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
NVIDIA Corporation GM107GL [Quadro K2200] [10de:13ba] (rev a2) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation GM107GL [Quadro K2200] [10de:1097]
InstallationDate: Installed on 2021-02-15 (58 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
MachineType: Gigabyte Technology Co., Ltd. X570 AORUS ELITE WIFI
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/15/2020
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F30
dmi.board.
dmi.board.name: X570 AORUS ELITE WIFI
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: X570 MB
dmi.product.name: X570 AORUS ELITE WIFI
dmi.product.sku: Default string
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.14.
version.libdrm2: libdrm2 2.4.102-
version.
version.
version.
version.
version.
version.
version.
It appears you have a manually installed Nvidia driver, which is not supported, and it stopped working around the time of the kernel update from 5.8.0-48 to 5.8.0-49.
Please uninstall the NVIDIA driver you have and in future only install NVIDIA drivers using the 'Additional Drivers' app so as to ensure they will keep working with future kernel updates.