<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [DRI2][PRIME] nouveau driver cannot find any connected connector"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100139">100139</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[DRI2][PRIME] nouveau driver cannot find any connected connector
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/nouveau
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anthoine.bourgeois@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=130147" name="attach_130147" title="Serial line output with drm.debug=0xe and nouveau.debug=trace">attachment 130147</a> <a href="attachment.cgi?id=130147&action=edit" title="Serial line output with drm.debug=0xe and nouveau.debug=trace">[details]</a></span>
Serial line output with drm.debug=0xe and nouveau.debug=trace

I try to follow the documentation at
<a href="https://nouveau.freedesktop.org/wiki/Optimus/">https://nouveau.freedesktop.org/wiki/Optimus/</a> to enable my nvidia card, I only
get black screen with the GPU offloading.

Laptop: DELL M6800
OS: Debian Jessie (8.7) with Mesa 10.3.2 and Xorg server 1.16.4
Kernel: 4.9.13
CPU + iGPU: Intel i7-4810MQ
dGPU: Quadro K4100M

Hardware:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor
Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104GLM [Quadro K4100M]
(rev a1)

Step 1:
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x
215mm
   1920x1080     60.01*+  59.93    48.01  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
VGA1 disconnected (normal left inverted right x axis y axis)
DP4 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)

Step 2:
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x8d cap: 0xb, Source Output, Sink Output, Sink Offload crtcs:
3 outputs: 4 associated providers: 0 name:Intel
Provider 1: id: 0x66 cap: 0x7, Source Output, Sink Output, Source Offload
crtcs: 4 outputs: 3 associated providers: 0 name:nouveau

Step 3:
$ DRI_PRIME=0 glxinfo | grep "OpenGL vendor"
OpenGL vendor string: Intel Open Source Technology Center
$ DRI_PRIME=1 glxinfo | grep "OpenGL vendor"
OpenGL vendor string: Intel Open Source Technology Center

Step 4:
$ xrandr --setprovideroffloadsink nouveau Intel
$ DRI_PRIME=1 glxinfo | grep "OpenGL vendor"
OpenGL vendor string: nouveau

Step 5:
$ DRI_PRIME=1 glxgears -info
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER   = Gallium 0.4 on NVE4
GL_VERSION    = 3.0 Mesa 10.3.2
GL_VENDOR     = nouveau
GL_EXTENSIONS = <lots of extensions>
VisualID 104, 0x68
102606 frames in 5.0 seconds = 20521.141 FPS
103124 frames in 5.0 seconds = 20624.639 FPS

The glxgears window is black and stay black even after a resize.

I see those messages on dmesg:
  [   12.404679] nouveau 0000:01:00.0: No connectors reported connected with
modes
  [   12.404700] [drm] Cannot find any crtc or sizes - going 1024x768
So I run the following step 6:
$ xrandr --setprovideroutputsource nouveau Intel

But the problem is still the same.

I also try vgaswitcheroo and the switch on discrete card gives me a black
screen too. Fortunately I can switch back to the IGD with my serial line. The
option 'nouveau.runpm=0' do not change the issue, so I guest it's not PM
related.

How can I help to debug this issue ?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>