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

[HP ENVY 15] Cannot switch to Nvidia/Hybrid Graphics #359

Open
sammdu opened this issue Aug 30, 2022 · 4 comments
Open

[HP ENVY 15] Cannot switch to Nvidia/Hybrid Graphics #359

sammdu opened this issue Aug 30, 2022 · 4 comments

Comments

@sammdu
Copy link

sammdu commented Aug 30, 2022

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

NAME="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

Kernel:

Linux 5.19.0-76051900-generic #202207312230~1660780566~22.04~9d60db1 SMP PREEMPT_DYNAMIC Thu A x86_64 x86_64 x86_64 GNU/Linux

Graphics card:

0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)

Related Application and/or Package Version:

system76-power:
  Installed: 1.1.22~1659403314~22.04~357f4b0
  Candidate: 1.1.22~1659403314~22.04~357f4b0
  Version table:
 *** 1.1.22~1659403314~22.04~357f4b0 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status

nvidia-driver-515:
  Installed: 515.48.07-1pop0~1657640780~22.04~e863eed
  Candidate: 515.48.07-1pop0~1657640780~22.04~e863eed
  Version table:
     515.65.01-0ubuntu0.22.04.1 500
        500 http://apt.pop-os.org/ubuntu jammy-security/restricted amd64 Packages
        500 http://apt.pop-os.org/ubuntu jammy-updates/restricted amd64 Packages
 *** 515.48.07-1pop0~1657640780~22.04~e863eed 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:

After a recent update, it is no longer possible to switch to NVIDIA or Hybrid graphics mode using system76-power both via CLI and the GNOME Shell widget. There is no error message, and it goes through normally, asking you to restart to apply the change, but the change is never applied even after restart.

This is not merely a UI bug, because I am also no longer able to plug in an external monitor via HDMI or USB-C and get video, as both rely on the discrete graphics card.

Booting from the older kernel doesn't help. Installing v510 or v470 of the driver doesn't help either.

Tried steps from #296 and #350 , but didn't help either.

Steps to reproduce:

$ sudo system76-power graphics hybrid

setting graphics to hybrid
reboot for changes to take effect

Then reboot the computer, change is not applied.

$ sudo system76-power graphics

integrated

$ sudo journalctl -b all -u system76-power

-- No entries --

$ sudo grep -r 'blacklist nvidia' /{etc,lib}/modprobe.d/

/etc/modprobe.d/blacklist-framebuffer.conf:#blacklist nvidiafb

Removing this entry from the file and rebooting does not help.

Purge NVIDIA packages and reinstall:

$ sudo apt purge ~nnvidia

apt_purge.log

$ sudo apt clean

 

$ sudo apt update

Hit:1 https://updates.signal.org/desktop/apt xenial InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Hit:3 http://apt.pop-os.org/proprietary jammy InRelease
Hit:4 https://repo.protonvpn.com/debian stable InRelease
Hit:5 http://apt.pop-os.org/release jammy InRelease
Hit:6 http://apt.pop-os.org/ubuntu jammy InRelease
Hit:7 http://apt.pop-os.org/ubuntu jammy-security InRelease
Hit:8 http://apt.pop-os.org/ubuntu jammy-updates InRelease
Get:9 http://apt.pop-os.org/ubuntu jammy-backports InRelease [99.8 kB]
Fetched 99.8 kB in 1s (131 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

$ sudo dpkg --configure -a

 

$ sudo apt install -f

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgl1:i386 libgl1-mesa-dri:i386 libglx-mesa0:i386 libglx0:i386 libvulkan1:i386
libxcb-glx0:i386 libxcb-randr0:i386 libxnvctrl0 mesa-vulkan-drivers:i386
screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt full-upgrade

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libgl1:i386 libgl1-mesa-dri:i386 libglx-mesa0:i386 libglx0:i386 libvulkan1:i386
libxcb-glx0:i386 libxcb-randr0:i386 libxnvctrl0 mesa-vulkan-drivers:i386
screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt autoremove --purge

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libgl1:i386* libgl1-mesa-dri:i386* libglx-mesa0:i386* libglx0:i386* libvulkan1:i386*
libxcb-glx0:i386* libxcb-randr0:i386* libxnvctrl0* mesa-vulkan-drivers:i386*
screen-resolution-extra*
0 upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
After this operation, 53.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 283545 files and directories currently installed.)
Removing libgl1:i386 (1.4.0-1) ...
Removing libglx0:i386 (1.4.0-1) ...
Removing libglx-mesa0:i386 (22.0.5-0ubuntu0.1) ...
Removing libgl1-mesa-dri:i386 (22.0.5-0ubuntu0.1) ...
Removing mesa-vulkan-drivers:i386 (22.0.5-0ubuntu0.1) ...
Removing libvulkan1:i386 (1.3.204.1-2) ...
Removing libxcb-glx0:i386 (1.14-3ubuntu3) ...
Removing libxcb-randr0:i386 (1.14-3ubuntu3) ...
Removing libxnvctrl0:amd64 (510.47.03-0ubuntu1) ...
Removing screen-resolution-extra (0.18.2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/libQtCore.so.4 is not a symbolic link

/sbin/ldconfig.real: /lib/x86_64-linux-gnu/libQtGui.so.4 is not a symbolic link

/sbin/ldconfig.real: /lib/x86_64-linux-gnu/libaudio.so.2 is not a symbolic link

(Reading database ... 283501 files and directories currently installed.)
Purging configuration files for libgl1-mesa-dri:i386 (22.0.5-0ubuntu0.1) ...

sudo ubuntu-drivers install

ubuntu_drivers_install.log

Using system76-driver-nvidia does not help either.


Thanks a lot for looking into this!

@jacobgkau
Copy link
Member

What hardware are you using?

@sammdu
Copy link
Author

sammdu commented Aug 30, 2022

Computer: HP ENVY 15 ep1030-ca
Graphics card:

0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)

@jacobgkau jacobgkau changed the title Cannot switch to Nvidia/Hybrid Graphics in Pop OS - Recent Regression [HP ENVY 15] Cannot switch to Nvidia/Hybrid Graphics Aug 30, 2022
@jordaniza
Copy link

I am facing a similar issue using the latest LTS kernel on a 2021 Oryx Pro running Arch. Graphics stay at integrated even after a switch to Nvidia.

Scarily enough, switching to Nvidia on the LTS kernel seems to prevent the screen from loading after boot on the regular kernel, but that is an issue for another time.

@sammdu
Copy link
Author

sammdu commented Sep 6, 2022

Upon further testing, I discovered that this issue goes away when I disable Secure Boot. So in the mean time, I will disable Secure Boot in order to use my graphics card and monitor.

However, it's interesting that switching between kernels and driver versions does not fix the issue, even though I have previously been using Secure Boot with my Nvidia drivers with no issue.

For further context: I use PreLoader for secure boot. I have tried clearing my secure boot keys from BIOS and re-enrolling my kernel image hashes, none has allowed Nvidia drivers to work with Secure Boot.

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

3 participants