With a lot of struggle, I managed to
I’ll give you the step by step of what I did
First I uninstalled all the drivers in recovery mode in grub
sudo apt remove --purge nvidia*
soon after
I installed nvidia-settings
“sudo apt install nvidia-settings”
Important (don’t install nvidia drivers yet)
Now install only the Intel graphics driver in my case.
“sudo add-apt-repository ppa:oibaf/graphics-drivers”
“sudo apt update & sudo apt upgrade -y”
“sudo reboot”
then install “sudo apt install mesa-utils”
Then I forced the Intel driver on Wayland
“sudo nano /etc/default/grub”
Locate the line that starts with “GRUB_CMDLINE_LINUX_DEFAULT”
and add: i915.modeset=1
It will look like this: "GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash i915.modeset=1”
then save and exit and use the command
“sudo update-grub”
“sudo reboot”
At this point you can check if you are recognizing your integrated graphics card
with this command
"LSPCI -K | grep -EA3 ‘VGA|3D’ glxinfo | grep “OpenGL renderer” glxinfo | grep “OpenGL renderer”
Now let’s install the nvidia driver “sudo ubuntu-drivers autoinstall” “sudo reboot”
Now we’ll be back
“sudo nano /etc/default/grub”
Locate the line that starts with “GRUB_CMDLINE_LINUX_DEFAULT”
Change to “GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash nvidia-drm.modeset=1”” Save and exit
“sudo update-grub”
“sudo reboot”
after “Sudo Prime-Select Nvidia” “sudo reboot”