I restarted my Ubuntu 22.04 Laptop after a long time and the graphic card changed to llvmpipe

I have a Lenovo Lenovo Legion 5 15ARH05H with AMD® Ryzen 7 4800h CPU and RTX 2060 GPU. I run my gpu in dedicated mode.
I restarted my laptop after a long time and suddenly the graphic card now shows llvmpipe (LLVM 15.0.7, 256 bits)

Now I cannot control brightness or connect to external displays

I use the nvidia-driver-535 and have secure boot disabled.
I tried a few solutions from the net but none seemed to work.

Furthermore, using the “sudo prime-select query” command gives me out “on-demand” as a result and switching it to “nvidia” gives “Error: no integrated GPU detected.”

This is my xorg.conf:

nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 535.171.04

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

Section “Files”
EndSection

Section “InputDevice”

# generated from default
Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"

EndSection

Section “InputDevice”

# generated from default
Identifier     "Keyboard0"
Driver         "kbd"

EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce RTX 2060 Mobile”
BusID “PCI:1:0:0”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
EndSection

I have attached the nvidia bug report below:
nvidia-bug-report.log.gz (156.6 KB)
Please help me its urgent!! Thanks in advance

5.19.0-38-generic

You are running a relatively ancient and now unsupported kernel. Install and boot into a supported kernel (like 6.5.0-35 or 5.15.0-107)

NVRM: API mismatch: the client has the version 535.161.08, but this kernel module has the version 525.147.05

You also seem to have parts of at least two different Nvidia drivers installed.

Thanks for your reply, how can I resolve both of these issues

IDK if this will help, but this is the output of “dpkg -l | grep -i nvidia”

sudo apt purge *525* *450*
sudo apt install linux-generic-hwe-22.04

Then, reboot. You should then be using the 6.5.0-35 kernel. Double check with:
uname -a

I would then suggest you run Synaptic, search for, and remove any old kernels other than 5.15.0-107

Thanks a lot, changing the kernel version worked now, however the sudo apt purge *525* and *450* did not give any output. Those packages only show up when listing using dpkg and not apt.

You’re welcome.

Note: You should be able to see the outdated Nvidia packages with “residual config” in Synaptic and completely remove them. Of course, if everything is working and you are not desperate for disk space, it’s not a concern.

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