I know there are tons of post similar to this but I am unable to find a solution to my problem. I just made a clean install of Ubuntu 17.10 ( cause I mess things with my Nvidia drivers and I decided to start over ). I have two identical monitors 21.5′ full HD which I use but the second one has a fixed resolution of 1024×768. I tried to use both Nvidia drivers or default drivers without any result. As you will see it can’t detect my second display at all.
Both monitors are plugged into the same GPU which is Nvidia GTX 950. The GPU has one DisplayPort, one HDMI, and one DVI-I input.
The primary display uses a VGA to HDMI cable ( from Monitor to GPU)
The second uses a VGA to DVI-I ( using a VGA to DVI adapter )
Below there is some information which might help.
xrand output :
Screen 0: minimum 320 x 200, current 2944 x 1080, maximum 8192 x 8192
XWAYLAND0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
XWAYLAND1 connected 1024x768+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm
In case I use the Nvidia binary drivers from the Additional Drivers menu and do the same commands I will get “X Error of failed request: BadMatch (invalid parameter attributes)..” error, I already test it before making a clean install.
I try to use Arandr software which someone suggests on similar posts but still getting the same error.
Sorry for the long post. I tried to give as much information as I could.
After a lot of search, I found a workaround ( or fix if I may call it). Here are the steps I did to fix it.
I unable the Nvidia drivers from Software & Updates -> Additional Drivers
Having two identical monitors ( same ventor etc ) I acquire EDID of the working monitor
I generated the X configuration file through Nvidia settings window
I manually modified the xorg.conf file (located at /etc/X11/xorg.conf) and on the “Screen” section I added the following option : Option "CustomEDID" "CRT-0:/myfullPath/edid.bin where ‘CRT-0’ is the previously name of my monitor assigned by the Nvidia and the edid.bin is the EDID file of the working monitor.
After all that I made a reboot and everything was working fine.