Nvidia display issue.
I was facing difficulty in detecting second monitor in my linux machine.
I had tried few online solutions but couldn't get it done.
Finally the solution which worked:
1.
Detect the specific VGA controller in your machine.
# lspci | grep VGA
2. Now, go to https://www.nvidia.com/en-us/drivers/ and manually search the driver inputting the specific version you obtained in step 1.
3. For example, in my case it was this file: NVIDIA-Linux-x86_64-550.135.run
4. Add executable permission
chmod +x NVIDIA-Linux-x86_64-550.135.run
5. Understand what it is:
./NVIDIA-Linux-x86_64-550.135.run --help
6.
To build and install the drivers , run the script.
( This is quite interesting file I come across, it is both a script as well as binary..need to explore more on this later )
./NVIDIA-Linux-x86_64-550.135.run
7. Boot after installation, you should be able to detect the second monitor.