given the problems with the external monitor and with the drivers, I formatted the laptop.
I format and immediately on reboot I see that the pc had set the open source driver. I execute in the terminal add-repository of the graphic drivers among the list of drivers also the 495 appears. I select the 495 but at the next restart the pc starts without a graphic interface.
format again. at the first restart the external monitor works and the laptop has automatically selected 470 drivers (proprietary, tested). at this point that everything works from the terminal and I run the update && upgrade command and at the new restart the external monitor has disappeared again.
the drivers are always 470 and if I try to open nvidia x server it is empty compared to before it was full of all parameters and options.
Can any of you help me?
peppe@X1:~$ grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*
I explain to everyone the procedure I followed to solve the problems with the graphics card and the external monitor At the moment the following procedure works, I will update you if there are other problems. I formatted the Lenovo laptop with Geforce 1050 Ti and installed Ubuntu 20.04 LTS After that I ran the following commands
sudo lspci -H 1
sudo apt update && sudo apt upgrade
sudo lspci -H 1
sudo ubuntu-drivers autoinstall
sudo lspci-H 1
sudo lspci-H 1 is a command used to display the active graphics card
I tried different procedures but each produced different problems:
external monitor not recognized
only the external monitor worked and not the laptop monitor
inability to choose the graphics card
I hope the guide can help anyone with the same situation as me.
Thanks to everyone and your help
I tried to select only the Intel card
when restarting the external monitor does not work and is not recognized
I selected only the Nvidia card again
when restarting the external monitor works correctly
I had to send the command
sudo service lightdm restart
because around the cursor there was a strange box with the frozen image
I provide as further information for those who can help me to solve the problem of the second monitor only with Intel, which I have installed lightdm