HDMi connect with xrandr but the second monitor is not working

Forum Forums General Hardware HDMi connect with xrandr but the second monitor is not working

Tagged: 

  • This topic has 1 reply, 1 voice, and was last updated Jun 13-6:23 am by symbol.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83677
    Member
    symbol

      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.

      $ xrandr 
      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**

      • This topic was modified 11 months, 1 week ago by symbol. Reason: Add screenshots
      • This topic was modified 11 months, 1 week ago by symbol. Reason: change tags
      • This topic was modified 11 months, 1 week ago by symbol.
      #84508
      Member
      symbol
        Helpful
        Up
        1
        ::

        I managed to connect the external monitor with minidisplay port, the issue “No signal with HDMI is a known issue”
        Apple hardware switch driven by the apple-gmux kernel driver which explains the model specific differences:
        https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/apple-gmux.c#n311

        Since you’re running with everything switched to the nvidia gpu, prime can’t be used. The hdmi problem seems to be an known issue with your model:
        https://forums.developer.nvidia.com/t/no-signal-with-hdmi-or-dp-0-ports-on-macbookpro10-1-gt-650m-only-dp-1-works/49777/5

        Some useful info about your model:
        https://wiki.archlinux.org/title/MacBookPro10,x

        Reference: https://forums.developer.nvidia.com/t/external-monitor-not-working-nvidia-optimus/216573/5

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.