Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVIDIA Graphics not working after upgrade to 20.10 #1338

Closed
cauldyclark15 opened this issue Oct 27, 2020 · 12 comments
Closed

NVIDIA Graphics not working after upgrade to 20.10 #1338

cauldyclark15 opened this issue Oct 27, 2020 · 12 comments

Comments

@cauldyclark15
Copy link

cauldyclark15 commented Oct 27, 2020

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="20.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.10"
VERSION_ID="20.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy
LOGO=distributor-logo-pop-os
Reading package lists... Done
Building dependency tree       
Reading state information... Done
system76-driver is already the newest version (20.04.15~1603379913~20.10~1d7bb55).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up system76-dkms (1.0.9~1597073326~20.10~5b01933) ...
Removing old system76-1.0.9~1597073326~20.10~5b01933 DKMS files...

------------------------------
Deleting module version: 1.0.9~1597073326~20.10~5b01933
completely from the DKMS tree.
------------------------------
Done.
Loading new system76-1.0.9~1597073326~20.10~5b01933 DKMS files...
Building for 5.8.0-7625-generic
Building initial module for 5.8.0-7625-generic
ERROR (dkms apport): kernel package linux-headers-5.8.0-7625-generic is not supported
Error! Bad return status for module build on kernel: 5.8.0-7625-generic (x86_64)
Consult /var/lib/dkms/system76/1.0.9~1597073326~20.10~5b01933/build/make.log for more information.
dpkg: error processing package system76-dkms (--configure):
 installed system76-dkms package post-installation script subprocess returned error exit status 10
Setting up system76-io-dkms (1.0.1~1559663713~20.10~ea5f61a) ...
Removing old system76-io-1.0.1~1559663713~20.10~ea5f61a DKMS files...

------------------------------
Deleting module version: 1.0.1~1559663713~20.10~ea5f61a
completely from the DKMS tree.
------------------------------
Done.
Loading new system76-io-1.0.1~1559663713~20.10~ea5f61a DKMS files...
Building for 5.8.0-7625-generic
Building initial module for 5.8.0-7625-generic
ERROR (dkms apport): kernel package linux-headers-5.8.0-7625-generic is not supported
Error! Bad return status for module build on kernel: 5.8.0-7625-generic (x86_64)
Consult /var/lib/dkms/system76-io/1.0.1~1559663713~20.10~ea5f61a/build/make.log for more information.
dpkg: error processing package system76-io-dkms (--configure):
 installed system76-io-dkms package post-installation script subprocess returned error exit status 10
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of system76-driver:
 system76-driver depends on system76-dkms; however:
  Package system76-dkms is not configured yet.
 system76-driver depends on system76-io-dkms; however:
  Package system76-io-dkms is not configured yet.

dpkg: error processing package system76-driver (--configure):
 dependency problems - leaving unconfigured
Setting up system76-acpi-dkms (1.0.2~1600812457~20.10~0bc966c) ...
Removing old system76_acpi-1.0.2~1600812457~20.10~0bc966c DKMS files...

Issue/Bug Description:
NVIDIA graphics not working after upgrade to 20.10
aaaaa

@aalvarado
Copy link

Same thing happened to me, I'm unable to install the system76-driver and I'm using the Nouveau driver atm. Keep running into this DKMS errors when attempting to do so

@cauldyclark15
Copy link
Author

@aalvarado

System76 messaged me this but too late for me as I already reverted back to 20.04

Hi Joselie,

Thanks for reaching out! I'm sorry to hear you're experiencing these issues! I'm happy to help!

We have indeed tested the NVIDIA drivers thoroughly prior to releasing this update. The issue you are experiencing seems to be caused by some conflicts with the packages in your package manager. I'm happy to help you get these resolved!

Please open the Terminal application (you can find this by searching in the Activities overview in the top left), then enter each of these commands one line at a time.

sudo apt clean
sudo apt update -m
sudo dpkg --configure -a
sudo apt install -f
sudo apt dist-upgrade
sudo apt autoremove --purge

After running those commands do you see any error messages? Are there any packages that get upgraded?

Once you're able to run those commands, please reboot, then try running:

sudo apt install system76-driver-nvidia

Please try that, and let me know how things go, and any error messages you see. Thanks!

@aalvarado
Copy link

aalvarado commented Oct 29, 2020

@cauldyclark15

My issue is that I had digimend dkms drivers that would not compile with the new kernel. As soon as I removed them I was able to install system76-drivers-nvidia without any issues and I can now work using hybrid graphics and 2 screens :D .

basically this:

sudo apt remove digimend-dkms

@A-Stefanson
Copy link

A-Stefanson commented Oct 30, 2020

Hi I have a similar problem. Running the suggested terminal lines above, the first instance that gives the error report is sudo dpkg --configure -a

The output from that shows the error message that is always repeated in all my efforts to fix. Always problems with bcmwl-kernel-source which failed to install even when I tried a fresh install of the OS.

mandinkalinux@pop-os:~$ sudo dpkg --configure -a
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Removing old bcmwl-6.30.223.271+bdcom DKMS files...


Deleting module version: 6.30.223.271+bdcom
completely from the DKMS tree.

Done.
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.8.0-7625-generic
Building for architecture x86_64
Building initial module for 5.8.0-7625-generic
ERROR (dkms apport): kernel package linux-headers-5.8.0-7625-generic is not supported
Error! Bad return status for module build on kernel: 5.8.0-7625-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
dpkg: error processing package bcmwl-kernel-source (--configure):
installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
bcmwl-kernel-source'

`

@kendocode
Copy link

Seems also to affect 20.04 with 5.8 kernel which wants nvidia-455 driver and dkms. I'm not able to run the Nvidia card (Quadro P3000) at all, and on this machine that means no external monitors.

OS Info:
$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

System info:
$ neofetch
OS: Pop!_OS 20.04 LTS x86_64
Host: 20HKCTO1WW ThinkPad P71
Kernel: 5.8.0-7625-generic
Shell: zsh 5.8
Resolution: 3840x2160
DE: GNOME
WM: Mutter
WM Theme: Pop
Theme: Pop-dark [GTK2/3]
Icons: Pop [GTK2/3]
CPU: Intel Xeon E3-1505M v6 (8) @ 4.000GHz
GPU: Intel HD Graphics P630
Memory: 3641MiB / 31830MiB

Attempting sudo dpkg --configure -a gives essentially the same error as @A-Stefanson experienced:
....
Loading new nvidia-455.28 DKMS files...
Building for 5.8.0-7625-generic
Building for architecture x86_64
nvidia-dkms-440 depends on nvidia-dkms-455; however:
Package nvidia-dkms-455 is not configured yet.

dpkg: error processing package nvidia-dkms-440 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-455:
nvidia-driver-455 depends on nvidia-dkms-455 (>= 455.28); however:
Package nvidia-dkms-455 is not configured yet.

dpkg: error processing package nvidia-driver-455 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-440:
nvidia-driver-440 depends on nvidia-driver-455; however:
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
....
Removing nvidia-440 does not help. Booting from the old kernel does not help. Nothing, so far, has helped. I was excited to get the 5.8 kernel because 5.4 was intermittently freezing the entire system, but my workflow is considerably crimped by not being able to use external monitors. :(

If anyone has a solution or workaround I'd be happy to try it.

@kendocode
Copy link

Addendum (additional failed attempts to resolve issue):
sudo su && apt purge -y nvidia-driver-440 && apt purge -y nvidia-driver-455 && apt purge -y nvidia-dkms-440 && apt purge -y nvidia-dkms-455
removes basically everything nvidia.

Then sudo apt install system76-driver-nvidia errors out (output file attached)
dpkg_configure_output.txt

The errors cite a build log:
Error! Bad return status for module build on kernel: 5.8.0-7625-generic (x86_64)
Consult /var/lib/dkms/system76-io/1.0.1155966371320.04~ea5f61a/build/make.log for more information.

The contents of that file are:
DKMS make.log for system76-io-1.0.1155966371320.04~ea5f61a for kernel 5.8.0-7625-generic (x86_64)
Sun 01 Nov 2020 11:33:07 AM CST
make: Entering directory '/usr/src/linux-headers-5.8.0-7625-generic'

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

make: *** [Makefile:746: include/config/auto.conf] Error 1
make: Leaving directory '/usr/src/linux-headers-5.8.0-7625-generic'

Attempting the suggested command from /usr/src/linux-headers-5.8.0-7625-generic/kernel gives:
$ sudo make oldconfig && make prepare
make: *** No rule to make target 'oldconfig'. Stop.

The directory structure is:
total 32K
drwxr-xr-x 2 root root 4.0K Oct 27 12:07 .
drwxr-xr-x 7 root root 4.0K Nov 1 11:19 ..
-rw-r--r-- 1 root root 6.8K Oct 22 12:57 bounds.s
-rw-r--r-- 1 root root 15K Oct 22 12:57 .bounds.s.cmd
lrwxrwxrwx 1 root root 41 Oct 22 12:57 bpf -> ../../linux-headers-5.8.0-7625/kernel/bpf
lrwxrwxrwx 1 root root 44 Oct 22 12:57 cgroup -> ../../linux-headers-5.8.0-7625/kernel/cgroup
lrwxrwxrwx 1 root root 43 Oct 22 12:57 debug -> ../../linux-headers-5.8.0-7625/kernel/debug
lrwxrwxrwx 1 root root 41 Oct 22 12:57 dma -> ../../linux-headers-5.8.0-7625/kernel/dma
lrwxrwxrwx 1 root root 44 Oct 22 12:57 events -> ../../linux-headers-5.8.0-7625/kernel/events
lrwxrwxrwx 1 root root 42 Oct 22 12:57 gcov -> ../../linux-headers-5.8.0-7625/kernel/gcov
lrwxrwxrwx 1 root root 53 Oct 22 12:57 gen_kheaders.sh -> ../../linux-headers-5.8.0-7625/kernel/gen_kheaders.sh
lrwxrwxrwx 1 root root 41 Oct 22 12:57 irq -> ../../linux-headers-5.8.0-7625/kernel/irq
lrwxrwxrwx 1 root root 53 Oct 22 12:57 Kconfig.freezer -> ../../linux-headers-5.8.0-7625/kernel/Kconfig.freezer
lrwxrwxrwx 1 root root 48 Oct 22 12:57 Kconfig.hz -> ../../linux-headers-5.8.0-7625/kernel/Kconfig.hz
lrwxrwxrwx 1 root root 51 Oct 22 12:57 Kconfig.locks -> ../../linux-headers-5.8.0-7625/kernel/Kconfig.locks
lrwxrwxrwx 1 root root 53 Oct 22 12:57 Kconfig.preempt -> ../../linux-headers-5.8.0-7625/kernel/Kconfig.preempt
lrwxrwxrwx 1 root root 43 Oct 22 12:57 kcsan -> ../../linux-headers-5.8.0-7625/kernel/kcsan
lrwxrwxrwx 1 root root 47 Oct 22 12:57 livepatch -> ../../linux-headers-5.8.0-7625/kernel/livepatch
lrwxrwxrwx 1 root root 45 Oct 22 12:57 locking -> ../../linux-headers-5.8.0-7625/kernel/locking
lrwxrwxrwx 1 root root 46 Oct 22 12:57 Makefile -> ../../linux-headers-5.8.0-7625/kernel/Makefile
lrwxrwxrwx 1 root root 43 Oct 22 12:57 power -> ../../linux-headers-5.8.0-7625/kernel/power
lrwxrwxrwx 1 root root 44 Oct 22 12:57 printk -> ../../linux-headers-5.8.0-7625/kernel/printk
lrwxrwxrwx 1 root root 41 Oct 22 12:57 rcu -> ../../linux-headers-5.8.0-7625/kernel/rcu
lrwxrwxrwx 1 root root 43 Oct 22 12:57 sched -> ../../linux-headers-5.8.0-7625/kernel/sched
lrwxrwxrwx 1 root root 42 Oct 22 12:57 time -> ../../linux-headers-5.8.0-7625/kernel/time
lrwxrwxrwx 1 root root 43 Oct 22 12:57 trace -> ../../linux-headers-5.8.0-7625/kernel/trace

I'm not sure which directory I should be in to run the make commands. I don't see anything labeled /src. If anyone has a good idea what to do from here I'd sure like to hear it. Thanks.

@kendocode
Copy link

Addendum: Attempted to directly install the latest Nvidia driver (455.38) and got the same error about kernel config:
include/generated/autoconf.h or include/config/auto.conf are missing.
Output file attached:
nvidia_455.38_install_failure.txt

@kendocode
Copy link

Working system restored by loading the old kernel (5.4), purging all nvidia, and reinstalling system76-driver-nvidia on the old kernel. Pop now shows an update available of Nvidia driver 455.28 -- but I think I'll pass on that for the moment.

@kendocode
Copy link

Appears to be the same issue referenced in #1355 and #1362. Can confirm this is still an issue on 20.04 with 5.8 kernel.

@br0nwe
Copy link

br0nwe commented Nov 10, 2020

I have a Thinkpad P52 with Quadro P3200

I had to reinstall Pop_os 20.04 (with Nvidia drivers) to be able to work again.
As the driver update breaks all again i set these packages on hold:

sudo apt-mark hold nvidia-compute-utils-440 nvidia-dkms-440 nvidia-driver-440 nvidia-kernel-common-440 nvidia-kernel-source-440 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-440

The problem: i can not update the dist. (apt-get upgrade) with this solution. How can i get around that?
Can i decouple the graphics driver update from os related updates?

Why i had to reinstall?

I also use a Thinpad Thunderbolt Workstation Dock. With the broken drivers and even with the fix from above:

sudo apt clean
sudo apt update -m
sudo dpkg --configure -a
sudo apt install -f
sudo apt dist-upgrade
sudo apt autoremove --purge

all kept broken

I could not start with the docking station connected. OS froze.
Also when connected after os started started and logged in: Closing the laptop lid or suspending did trigger freeze.

@kendocode
Copy link

@adipmeesse Thanks for additional info. I'm able to work on 20.04 still using the 5.4 kernel, and have been in a crunch so no time to try other things at the moment. I do intend to keep investigating when time permits.

I'm not sure about decoupling the graphics driver from os related updates -- possibly by installing the non Nvidia flavor of PopOS, and handling the Nvidia pieces yourself. I'm not familiar enough with the internals of Pop to how how tightly coupled the pieces are, but given the trouble I used to have with the scripts I hacked together to "sort of" make things just work most of the time, I'd suspect the Nvidia parts would tend towards being more tightly coupled than most of their modifications.

If you explore that path further I'd be interested to hear about what you learn. I still like Pop enough that I'm willing to limp along for a while with hope that this is a temporary issue and will be resolved in the near future. If I have to go back to rolling my own Nvidia config and updating it myself that would make running Pop less attractive.

@kendocode
Copy link

Can confirm that everything is building correctly now on Pop!OS 20.04 5.8 kernel and Nvidia 455.38 with nothing done on my end aside from waiting for the next updates. Thanks System76!

Working package versions on Lenovo ThiinkPad P71:
$ apt list --installed | grep system76

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gnome-shell-extension-system76-power/focal,focal,now 2.0.0160167565920.0481924ad all [installed,automatic]
linux-firmware/focal,focal,now 1.190.1+system76
160512376520.043894207 all [installed,automatic]
linux-headers-5.0.0-21-generic/now 5.0.0-21.22+system76 amd64 [installed,local]
linux-headers-5.0.0-21/now 5.0.0-21.22+system76 all [installed,local]
linux-image-5.0.0-21-generic/now 5.0.0-21.22+system76 amd64 [installed,local]
linux-modules-5.0.0-21-generic/now 5.0.0-21.22+system76 amd64 [installed,local]
linux-system76/focal,now 5.8.0.7630.32160510885320.048bcf10e amd64 [installed,automatic]
system76-acpi-dkms/focal,now 1.0.2
160081245720.040bc966c amd64 [installed,automatic]
system76-dkms/focal,now 1.0.9159707332620.045b01933 amd64 [installed]
system76-driver-nvidia/focal,focal,now 20.04.15
160468658520.040415c0c all [installed]
system76-driver/focal,focal,now 20.04.15160468658520.040415c0c all [installed,automatic]
system76-firmware-daemon/focal,now 1.0.19
160167077520.04afb6944 amd64 [installed,automatic]
system76-io-dkms/focal,now 1.0.1155966371320.04ea5f61a amd64 [installed,automatic]
system76-oled/focal,now 0.1.4
158809295620.04805ebb1 amd64 [installed,automatic]
system76-power/focal,now 1.1.11160330746220.0481e6cbf amd64 [installed,automatic]
system76-wallpapers/focal,focal,now 18.04.2
152587480720.04d6171e2 all [installed,automatic]

libnvidia-cfg1-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
libnvidia-common-455/focal,focal,now 455.38-1pop0
160514408820.043cf77da all [installed,automatic]
libnvidia-compute-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
libnvidia-compute-455/focal,now 455.38-1pop0
160514408820.043cf77da i386 [installed,automatic]
libnvidia-decode-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
libnvidia-decode-455/focal,now 455.38-1pop0
160514408820.043cf77da i386 [installed,automatic]
libnvidia-encode-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
libnvidia-encode-455/focal,now 455.38-1pop0
160514408820.043cf77da i386 [installed,automatic]
libnvidia-extra-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
libnvidia-fbc1-455/focal,now 455.38-1pop0
160514408820.043cf77da amd64 [installed,automatic]
libnvidia-fbc1-455/focal,now 455.38-1pop0160514408820.043cf77da i386 [installed,automatic]
libnvidia-gl-455/focal,now 455.38-1pop0
160514408820.043cf77da amd64 [installed,automatic]
libnvidia-gl-455/focal,now 455.38-1pop0160514408820.043cf77da i386 [installed,automatic]
libnvidia-ifr1-455/focal,now 455.38-1pop0
160514408820.043cf77da amd64 [installed,automatic]
libnvidia-ifr1-455/focal,now 455.38-1pop0160514408820.043cf77da i386 [installed,automatic]
nvidia-compute-utils-455/focal,now 455.38-1pop0
160514408820.043cf77da amd64 [installed,automatic]
nvidia-dkms-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
nvidia-driver-455/focal,now 455.38-1pop0
160514408820.043cf77da amd64 [installed,automatic]
nvidia-kernel-common-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
nvidia-kernel-source-455/focal,now 455.38-1pop0
160514408820.043cf77da amd64 [installed,automatic]
nvidia-settings/focal-updates,now 440.82-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-utils-455/focal,now 455.38-1pop0160514408820.043cf77da amd64 [installed,automatic]
system76-driver-nvidia/focal,focal,now 20.04.15
160468658520.040415c0c all [installed]
xserver-xorg-video-nvidia-455/focal,now 455.38-1pop0160514408820.04~3cf77da amd64 [installed,automatic]

@cauldyclark15 has your problem been resolved as well by latest updates? If so, you might consider closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants