Xrandr conneted HDMI port but the external monitor blackscreen

Hi there:

I am running Ubuntu on my macbook with Intel/Nvidia Optimus.

My xrandr can connect to HDMI port and it seems that my Nvidia card is working (with reasonable GPU usage) But my external monitor is still not working.

Screen 0: minimum 8 x 8, current 2880 x 1800, maximum 16384 x 16384
DP-0 disconnected primary (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x1200     60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-2 connected 2880x1800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   2880x1800     59.99*+
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)

But my second monitor is still black screen, any way to debug through this?

1. My xrandr can onty see one provider

xrandr --listproviders 
Providers: number : 1
Provider 0: id: 0x279 cap: 0x1, Source Output crtcs: 4 outputs: 6 associated providers: 0 name:NVIDIA-0

And also xrandr --setprovideroutputsource modesetting NVIDIA-0 does not actually work

$ xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto
Could not find provider with name modesetting

2. grep modeset /lib/modprobe.d/ outputs
grep modeset /lib/modprobe.d/* can find several files, all with modeset=0

$  grep modeset /lib/modprobe.d/*
/lib/modprobe.d/no-mode-set.conf:# disble modesetting in the following modules
/lib/modprobe.d/no-mode-set.conf:options i915 modeset=0
/lib/modprobe.d/no-mode-set.conf:options nouveau modeset=0
/lib/modprobe.d/video-card-disable.conf:# disble modesetting for the following modules
/lib/modprobe.d/video-card-disable.conf:options nouveau modeset=0
/lib/modprobe.d/video-card-disable.conf:options nvidiafb modeset=0

3. arandr can detect the second screen as expected

I found my macbook with debian linux (antix) works perfect with mini-display port while the HDMI port is not working.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.