Second Monitor No Video in Linux Ubuntu 22.04 LTS [Solution] 2024
Immediately after installing Linux Ubuntu 22.04 LTS from a USB drive, the second monitor worked perfectly.
After restarting for the first time, the second monitor black out.
The monitor was recognized by the system (LG Eletronics 22"):
But the selection was not made — you could choose any display option, click “apply” and there would be no success.
I discovered my GPU (Graphics Processing Unit) after running the command: lspci | grep VGA
$ lspci | grep VGA
00:00 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics]
00:00 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile]
And then after some research I found the solution using the commands below:
sudo apt-get remove nvidia-*
And then:
sudo apt-get install xserver-xorg-video-nouveau
Finally:
sudo reboot
Explanation
The command sudo apt-get remove nvidia-* removes all packages related to the NVIDIA driver from your Ubuntu system. This includes the graphics driver, the NVIDIA control manager, and other dependent packages.
The command sudo apt-get install xserver-xorg-video-nouveau installs Nouveau, which is an open-source driver developed by the community to support NVIDIA graphics cards.
It is an alternative to the proprietary NVIDIA driver. However, it is important to note that, in some cases, Nouveau performance may not be as good as the official NVIDIA driver, especially for newer cards.
The command sudo reboot basically restarts the machine.
Follow me
LinkedIn: https://www.linkedin.com/in/marcosvmferreira
GitHub: https://github.com/marcosnaofazisso
Instagram: https://www.instagram.com/marcosnaofazisso
YouTube: https://www.youtube.com/@marcosnaofazisso
Official Website: https://marcosviniciusferreira.com