Nvidia 470xx Internal Driver Error - Kernel 5.16

I’ve been trying to fix an external monitor issue I’ve been having for some months, and decided to take a stab at it again with Kernel 5.16. After a couple hours of debugging I’ve fixed a few mistakes I made in the past, but the one glaring issue now is the Nvidia drivers appear to be corrupted. I’ve removed all other kernels to ensure there was no conflict between them (5.10 and 5.14), mhwd installs 470xx but anytime I try to use optimus-manager to go into nvidia-only mode I get an all black screen. Attempting clean-up gives a stern warning that Nvidia is not behaving properly.

Any additional information I could share that might illuminate the root of this error?

sudo optimus-manager --cleanup
WARNING: hybrid mode is set but Nvidia card does not seem to be available for offloading.
glxinfo | grep 'renderer string'
OpenGL renderer string: AMD RENOIR (DRM 3.44.0, 5.16.2-1-MANJARO, LLVM 13.0.0)
prime-run glxinfo | grep 'renderer string'
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51
prime-run nvidia-settings
ERROR: An internal driver error occurred
ERROR: Unable to load info from any available system
inxi -G
Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB]
    driver: nvidia v: 470.86
  Device-2: AMD Cezanne driver: amdgpu v: kernel
  Device-3: Chicony HD Webcam type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.3 driver: loaded: modesetting
    failed: nvidia resolution: 2560x1440~165Hz
  OpenGL: renderer: AMD RENOIR (DRM 3.44.0 5.16.2-1-MANJARO LLVM 13.0.0)
    v: 4.6 Mesa 21.3.4
mhwd -l -d --pci
PCI Device: /devices/pci0000:00/0000:00:01.1/0000:01:00.0 (0300:10de:249c)
  Display controller nVidia Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB]

  INSTALLED:
   NAME:        video-hybrid-amd-nvidia-470xx-prime
   ATTACHED:    PCI
   VERSION:     2021.12.18
   INFO:        Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:    7
   FREEDRIVER:  false
   DEPENDS:     video-linux 
   CONFLICTS:   video*nvidia* 
   CLASSIDS:    0300 0302 0300 
   VENDORIDS:   10de 1002 

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

   NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        X.org modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   *  

PCI Device: /devices/pci0000:00/0000:00:08.1/0000:06:00.0 (0300:1002:1638)
  Display controller ATI Technologies Inc Cezanne

  INSTALLED:
   NAME:        video-hybrid-amd-nvidia-470xx-prime
   ATTACHED:    PCI
   VERSION:     2021.12.18
   INFO:        Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:    7
   FREEDRIVER:  false
   DEPENDS:     video-linux 
   CONFLICTS:   video*nvidia* 
   CLASSIDS:    0300 0302 0300 
   VENDORIDS:   10de 1002 

  NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

  NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        X.org modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   *

Investigating if there are any rogue headers left on the system:

pacman -Qs linux headers          
local/linux-api-headers 5.12.3-1
Kernel headers sanitized for use in userspace
local/linux516-headers 5.16.2-1
Header files and scripts for building modules for Linux516 kernel

I found no good way to fix this issue so I’ve installed a fresh install of Manjaro and re-installed the Nvidia drivers.

This has fixed this issue, Nvidia drivers are working properly, external monitor is working as intended. Also if anyone is having issues with optimus-manager consider updating the Python sessions.py script that chooses how to reboot the system.

KDE USERS ONLY
Sessions.py error looks like this:

`/bin/sh: line 1: i3-msg: command not found`
`/bin/sh: line 1: openbox: command not found`
`/bin/sh: line 1: awesome-client: command not found`
`/bin/sh: line 1: bspc: command not found`
`/bin/sh: line 1: qtile-cmd: command not found`

example location: */usr/lib/python3.10/site-packages/optimus-manager/sessions.py*
for cmd in [
        "systemctl restart sddm.service" # sddm logout
        #"i3-msg exit",  # i3
        #"openbox --exit",  # Openbox
        #"awesome-client \"awesome.quit()\"",  # AwesomeWM
        #"bspc quit",  # bspwm
        #"pkill -SIGTERM -f dwm",  # dwm
        #"pkill -SIGTERM -f lxsession",  # LXDE
        #"qtile-cmd -o cmd -f shutdown"  # qtile
    ]:

Tip: When pasting terminal output on Discourse forums, one can either…

  • Use the Preformatted text </> toolbar button–NOT the Quote " button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    type or paste code here
    ```

  • Use HTML:

    <pre><code>
    type or paste code here
    </pre></code>

I’ve done it for you this time. :wink:

1 Like

Thank you! I’ll be sure to use the appropriate markdown next time.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.