I recently installed the nvidia-418 driver on my laptop which uses Ubuntu 18.04. At first the external monitor worked perfectly, but after I switched from power saving mode (sudo prime-select intel) back to performance mode (sudo prime-select nvidia), the second monitor was not detected anymore.
I discovered that prime-select writes a configuration file which causes the problem. It enables the nvidia-drm modeset option. You can simply undo the change made by prime-select by commenting out this option. It will not be reset, because prime-select only writes this file when it does not yet exists.
Open the file in your favorite editor (vim, nano, gedit, etc.).
sudo nano /lib/modprobe.d/nvidia-kms.conf
And comment out the the nvidia-drm modeset option.
# This file was generated by nvidia-prime
# Set value to 0 to disable modesetting
# options nvidia-drm modeset=1
Hope this also helps you and many others!
ps: It is completely normal that the second monitor is not detected in power saving mode when the connection is part of the nvidia graphics card.
I'm running into the same issue on my 7530. Has this problem been solved? Does Dell's ubuntu 18.04 LTS image support external monitors? I installed 18.10 via desktop image from canonical.
I can't believe this worked, but it did! Thank you! Another thing to note for 18.04 users is that monitors connected over USB-C are supported from kernel 4.19+, so you should use the latest kernel (it was just updated to 5.0.x).
I created this account (on a thinkpad no less) just to thank you for this, I was getting really worried it would be a super complicated obnoxious process and you got it fixed in literal seconds. Thank you!
pomm0
1 Rookie
•
5 Posts
0
April 17th, 2019 09:00
I got it working thanks to this mans hint at askubuntu forum:
andrewbanach
1 Message
0
March 4th, 2019 12:00
I'm running into the same issue on my 7530. Has this problem been solved? Does Dell's ubuntu 18.04 LTS image support external monitors? I installed 18.10 via desktop image from canonical.
akashvermaofskt
1 Message
0
July 10th, 2019 05:00
Thankyou
kkaland
1 Rookie
•
47 Posts
0
August 5th, 2019 07:00
I can't believe this worked, but it did! Thank you! Another thing to note for 18.04 users is that monitors connected over USB-C are supported from kernel 4.19+, so you should use the latest kernel (it was just updated to 5.0.x).
dmandb
1 Message
1
August 18th, 2019 06:00
I create an account here just to say thank you, this is exactly what solved my problem. Thanks!
filip1
2 Posts
0
August 22nd, 2019 01:00
I have the same problem with mi Precision 7530.
Vadim775
1 Message
3
October 14th, 2019 11:00
It is the same for me: there is no mentioned file in
and nvidia-settings is not able to save a custom config file
remyvrs
1 Message
0
October 14th, 2019 14:00
... it works! Thanks a lot !
dirschn
1 Message
0
October 24th, 2019 10:00
I created this account (on a thinkpad no less) just to thank you for this, I was getting really worried it would be a super complicated obnoxious process and you got it fixed in literal seconds. Thank you!
inspy
8 Posts
1
November 2nd, 2019 10:00
Same problem here... this solution doesn't work for me neither.
RomitZunjarrao
1 Message
0
January 3rd, 2020 12:00
I have no such file
onemoar
1 Message
0
February 22nd, 2020 14:00
bump did the trick on my e6430/mint 19.1 install
nani0204
1 Message
0
April 17th, 2020 03:00
After disabling the secure boot int the bios menu ,My laptop dell g3 3579 has connected to external monitor.
trampen
1 Message
0
April 18th, 2020 18:00
Thank you very much. It helped me
Regards,
Marek
stephano-cell
1 Message
0
September 26th, 2020 03:00
I have same issue, the file does not exist. Have you found a solution?