HDMI output missing in xrandr command and external monitor does not work

Hello,
i use nvidia driver 410.78 instaled by repository ppa:graphics-drivers/ppa on my ubuntu 18.04.1 fresh install, everything works fine. Few days a go, i don’t know exactly what happend (maybe system updates, i make nothing with system) driver is broken. It is mean external monitor does not work. Does not detect HDMI output.

$ xrandr | grep ’ connected’

eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm

All output xrandr

eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm  
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-3 disconnected (normal left inverted right x axis y axis)

Here is missing “HDMI-1-4”

I uninstall nvidia driver and default nouveau use Intel HD Graphics 630 (Kaby Lake GT2) and external monitor works fine.

$ xrandr | grep ’ connected’

eDP-1 connected 1920x1080+0+2160 (normal left inverted right x axis y axis) 344mm x 194mm
HDMI-1-4 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 600mm x 340mm

I use nvidia-config and it makes nothing.

GPU: GP106M [GeForce GTX 1060 Mobile]

OS: Ubuntu 18.04

Monitor: 4K LG 27UD69, HDMI cable 2.0

Log report generated by

sudo nvidia-bug-report.sh --safe-mode --extra-system-data
sudo nvidia-bug-report.sh

nvidia-bug-report-safe-mode-and-extra-data.log.gz (90.4 KB)
nvidia-bug-report.log.gz (1.03 MB)

That log is truncated and flooded with errors, not really useful. Please reboot, create a new log, then attach it as file. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Thank you for answer. I added files to first post

That’s rather odd, the monitor is detected but not used.
Two things to try:
run

xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto

and see if the external monitor comes alive. If not, run
grep modeset /etc/modprobe.d/*
and
grep modeset /lib/modprobe.d/*
to find the file containing

options nvidia-drm modeset=1

and change it to

options nvidia-drm modeset=0

then run
sudo update-initramfs -u
and reboot, then check if the external monitor works.

First command make nothing

xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto

Second way works
here is nothing

grep modeset /etc/modprobe.d/*

and here

$ grep modeset /lib/modprobe.d/*
/lib/modprobe.d/nvidia-kms.conf

$ sudo update-initramfs -u
$ sudo reboot

external monitor works :)

Thank you

Hi,

I have the same problem also I couldn’t find nvidia-kms.conf to change modeset parameters. any suggestion ?

thanks.