pop-os / linux

Pop!_OS fork of https://launchpad.net/ubuntu/+source/linux
Other
110 stars 14 forks source link

6.8.0-76060800daily20240311-generic broken amdgpu and high-refresh rate monitors are `unknown` #323

Closed Bonn93 closed 3 months ago

Bonn93 commented 3 months ago

Recently running updates I got kernel 6.8.0-76060800daily20240311-generic but the displays are locked at 60hz and unable to set 100, 120, 144hz on monitors that previously worked.

The monitors in the settings interface show as Unknown and appears the AMDGPU driver is not working. GPU is an AMD 7900XTX.

             /////////////                max@valhalla 
         /////////////////////            ------------ 
      ///////*767////////////////         OS: Pop!_OS 22.04 LTS x86_64 
    //////7676767676*//////////////       Host: B550 AORUS ELITE V2 
   /////76767//7676767//////////////      Kernel: 6.8.0-76060800daily20240311-generic 
  /////767676///*76767///////////////     Uptime: 38 mins 
 ///////767676///76767.///7676*///////    Packages: 2479 (dpkg), 66 (flatpak) 
/////////767676//76767///767676////////   Shell: bash 5.1.16 
//////////76767676767////76767/////////   Resolution: 3840x2160 
///////////76767676//////7676//////////   DE: GNOME 42.9 
////////////,7676,///////767///////////   WM: Mutter 
/////////////*7676///////76////////////   WM Theme: Pop 
///////////////7676////////////////////   Theme: Pop-dark [GTK2/3] 
 ///////////////7676///767////////////    Icons: Pop [GTK2/3] 
  //////////////////////'////////////     Terminal: gnome-terminal 
   //////.7676767676767676767,//////      CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz 
    /////767676767676767676767/////       GPU: AMD ATI 0c:00.0 Device 744c 
      ///////////////////////////         Memory: 4781MiB / 32037MiB 
         /////////////////////
             /////////////                                        

Trying to reinstall with apt-get install amdgpu fails, but also sudo apt install --reinstall system76-dkms system76-acpi-dkms fails with

Building initial module for 6.8.0-76060800daily20240311-generic
ERROR (dkms apport): kernel package linux-headers-6.8.0-76060800daily20240311-generic is not supported
Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (amd64)
Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms; however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up system76-acpi-dkms (1.0.2~1716558197~22.04~a2020c4) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Loading new system76_acpi-1.0.2~1716558197~22.04~a2020c4 DKMS files...
Building for 6.8.0-76060800daily20240311-generic
Building initial module for 6.8.0-76060800daily20240311-generic
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

system76_acpi.ko.zst:
Running module version sanity check.
 - Original module
   - Found /lib/modules/6.8.0-76060800daily20240311-generic/updates/dkms/system76_acpi.ko.zst
   - Storing in /var/lib/dkms/system76_acpi/original_module/6.8.0-76060800daily20240311-generic/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /lib/modules/6.8.0-76060800daily20240311-generic/updates/dkms/

depmod...
Processing triggers for udev (249.11-0ubuntu3.11pop0~1704473387~22.04~3ce38bf) ...
Processing triggers for initramfs-tools (0.140ubuntu13.4pop2~1711143149~22.04~e0b5994) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-76060800daily20240311-generic
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu

&

max@valhalla:~$ sudo apt-get install amdgpu 
[sudo] password for max: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
amdgpu is already the newest version (1:6.0.60002-1718217.22.04).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
Building for 6.8.0-76060800daily20240311-generic
Building for architecture amd64
Building initial module for 6.8.0-76060800daily20240311-generic
ERROR (dkms apport): kernel package linux-headers-6.8.0-76060800daily20240311-generic is not supported
Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (amd64)
Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms; however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)
leviport commented 3 months ago

Are you using the amdgpu-pro drivers? Those have rather breaky DKMS modules, so we don't generally recommend using them. They don't perform any better than the open drivers in the kernel, and ROCm can still be installed without that driver: https://support.system76.com/articles/rocm

High refresh rate displays seem fine with the open drivers, for the record. My home setup consists of a 240Hz ultrawide and a 6900XT.

Bonn93 commented 3 months ago

I'm not sure, ive had a look through the system and there's no -pro to any of the names. I've purged apt/caches/repos/dpkg and even install rocm from the link above hoping it might repair and install the amdgpu stuff again, but i can't get it back to a happy state.

How can i fix this, im not familiar with area of linux and the kernel. :(

leviport commented 3 months ago

I'm not even seeing an amdgpu package in the normal repos. Did you add a PPA?

Bonn93 commented 3 months ago

I ended up just performing a fresh install, no PPAs or anything :(