pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.48k stars 87 forks source link

PopOS upgrade, no more Nvidia #3218

Open circuitikzuser opened 10 months ago

circuitikzuser commented 10 months ago

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

Related ApplicationNAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.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=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os and/or Package Version (run apt policy $PACKAGE NAME):

Issue/Bug Description:

Upgrading to 22.04, Nvidia does not work anymore

Steps to reproduce (if you know):

Upgrade to 22.04

Expected behavior:

Nvidia should still work.

Other Notes:

My system specifications: Laptop: Dell Inspiron 15-7577 with Nvidia 1060 Video Card. See: https://www.gadgets360.com/dell-inspiron-15-7577-8098

I tried all that was available online. Similar issues were already reported: I tried the suggestions in a post on previous POP buglist but it does not work at all. Here the details of the failed attempt I tried follows https://github.com/pop-os/pop/issues/2369

December 2023: for anyone still stuck on this, here's the full process that worked for me.

Building on suggestions from the posts above:

Nuke everything nvidia related sudo apt purge ~nnvidia sudo apt autoremove sudo apt autoclean Upgrade everything (removing currently installed packages if necessary to upgrade the system as a whole) sudo apt update sudo apt full-upgrade Add GCC dependencies if you don't have them already sudo apt install build-essential software-properties-common Add repository containing all GCC versions sudo add-apt-repository ppa:ubuntu-toolchain-r/test Add as many versions of GCC as you want (version 13 worked for me) sudo apt install gcc-12 g++-12 gcc-13 g++-13 -y Update alternatives for gcc (the third argument after --install is just the priority) sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 --slave /usr/bin/g++ g++ /usr/bin/g++-11 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 --slave /usr/bin/g++ g++ /usr/bin/g++-12 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 --slave /usr/bin/g++ g++ /usr/bin/g++-13 Alias cc to gcc sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 sudo update-alternatives --set cc /usr/bin/gcc Alias c++ to g++ sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 sudo update-alternatives --set c++ /usr/bin/g++ Configure gcc (and therefore cc, as its now aliased) to point to a newer version of GCC sudo update-alternatives --config gcc Re-install System76 NVIDIA driver (check for dpkg errors - hopefully there's none this time) sudo apt install system76-driver-nvidia Reboot - PopOS should boot into hybrid graphics automatically sudo reboot

jacobgkau commented 7 months ago
Add GCC dependencies if you don't have them already
sudo apt install build-essential software-properties-common
Add repository containing all GCC versions
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
Add as many versions of GCC as you want (version 13 worked for me)
sudo apt install gcc-12 g++-12 gcc-13 g++-13 -y
Update alternatives for gcc (the third argument after --install is just the priority)
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 --slave /usr/bin/g++ g++ /usr/bin/g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 --slave /usr/bin/g++ g++ /usr/bin/g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 --slave /usr/bin/g++ g++ /usr/bin/g++-13
Alias cc to gcc
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
Alias c++ to g++
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
Configure gcc (and therefore cc, as its now aliased) to point to a newer version of GCC
sudo update-alternatives --config gcc

Absolutely none of this should be necessary to install the NVIDIA driver on Pop!_OS. We QA the NVIDIA driver we ship against the kernel we ship, this is not a niche setup.

What does NVIDIA "not working" look like? Does nvidia-smi output anything? What's the output of system76-power graphics?

circuitikzuser commented 7 months ago

Then how do you explain PoPOs after the 22.04 upgrade completely losing it's ability to use Nvidia Video cards. This happened on two laptops. I then installed pop new on one laptop. Nvidia still does not work. Previous Pop versions worked spectacularly well on these laptops. Both laptops cannot be "defect". I appreciate PoP for trying to get a solid Nvidia based Linux experience and it is much appreciated, but to tout that it just works is absurd. It clearly does not for my Laptops as mentioned in the original post and I have been without Nvidia support on these laptops for a long time without resolution.

leviport commented 7 months ago

@circuitikzuser I think you need to re-read Jacob's reply, because you seem to have misinterpreted it. He's saying that the behavior you've encountered is atypical and your hardware is not any sort of exotic configuration. I understand that unexpected behavior like this is frustrating, but let's stay focused on the task at hand.

He also asked you for the output of two commands that would give us more information so we could have a better idea of what is going on with your installation, but you did not provide that output. Please run those commands and share their output.

NimbleCapricorn commented 5 days ago

hi @jacobgkau, I also have an issue (same as the one mentioned in this one. I also followed all the steps, but still get

ERROR: NVIDIA driver is not loaded (nvidia-settings:13627): GLib-GObject-CRITICAL **: 12:43:06.082: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

which honestly, sucks

circuitikzuser commented 5 days ago

hi @jacobgkau, I also have an issue (same as the one mentioned in this one. I also followed all the steps, but still get

ERROR: NVIDIA driver is not loaded (nvidia-settings:13627): GLib-GObject-CRITICAL **: 12:43:06.082: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

which honestly, sucks

I just gave up with Pop as Nvidia support was why I used Pop in the first place. On the exact same laptops Nvidia support worked out of the box, but after recent upgrades no more. I since use Mandriva, and with very little configuration it works on the same laptops.
It might not stay that way, but hopefully it lasts. Good luck