I am using Ubuntu 22.04 LTS, everything was fine until today I decided to change my NVIDIA driver, I changed it, I do not remember which one I was using.
Then I restarted my laptop and everything was almost ok. I opened the NVIDIA X Server settings and set the PRIME profile to NVIDIA (performance mode). Then I restarted my laptop. It freezes on startup, on the ASUS - Ubuntu screen, I use ctrl + alt + f3 keys and open the terminal, remove the NVIDIA drivers and restart. Now it works with Intel GPU, I installed nvidia-driver-510 and tried again to set my NVIDIA as default GPU, but the problem is still there. I cannot set my NVIDIA as the default GPU. Also, many options in NVIDIA X server settings are gone!!!!
Please help me! What did I do wrong?
My GPU is: nVidia GP108M [GeForce MX250]
And My CPU is: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
This is lspci -k | grep -EA3 'VGA|3D|Display' command output:
─$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
DeviceName: VGA
Subsystem: ASUSTeK Computer Inc. CometLake-U GT2 [UHD Graphics]
Kernel driver in use: i915
Kernel modules: i915
--
02:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)
DeviceName: Second VGA
Subsystem: ASUSTeK Computer Inc. GP108M [GeForce MX250]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
03:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
Also when I installed it with apt, it gives me this message at the end:
update-initramfs: Generating /boot/initrd.img-5.15.0-30-generic
I: The initramfs will attempt to resume from /dev/nvme0n1p5
I: (UUID=f56ee4ed-58ac-49d4-a438-3ca75f08397a)
I: Set the RESUME variable to override this.