<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Cannot start weston with multiple GPUs (optimus)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=56237">56237</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot start weston with multiple GPUs (optimus)
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alanwww1@gmail.com
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>On an Nvidia optimus notebook with Intel SandyBridge GPU as primary, Weston can
only be launched when nouveau kernel module is unloaded and only one card is
present at dev/dri/

If two cards are present I have an error message: 

Date: 2012-10-20 CEST
[23:22:00.194] weston 0.95.0
               <a href="http://wayland.freedesktop.org/">http://wayland.freedesktop.org/</a>
               Bug reports to:
<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=weston">https://bugs.freedesktop.org/enter_bug.cgi?product=weston</a>
               Build:  
[23:22:00.194] OS: Linux, 3.5.0-17-generic, #28-Ubuntu SMP Tue Oct 9 19:31:23
UTC 2012, x86_64
[23:22:00.195] Loading module '/usr/lib/weston/drm-backend.so'
[23:22:00.197] initializing drm backend
[23:22:00.270] using /dev/dri/card1
libEGL warning: unsupported platform Windows
[23:22:00.355] EGL version: 1.4 (DRI2)
[23:22:00.355] EGL vendor: Mesa Project
[23:22:00.355] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2 
[23:22:00.355] EGL extensions: EGL_MESA_drm_image EGL_WL_bind_wayland_display
               EGL_KHR_image_base EGL_KHR_gl_renderbuffer_image
               EGL_KHR_surfaceless_context EGL_KHR_create_context
[23:22:00.355] GL version: OpenGL ES 2.0 Mesa 9.0
[23:22:00.355] GLSL version: OpenGL ES GLSL ES 1.0.16
[23:22:00.355] GL vendor: nouveau
[23:22:00.355] GL renderer: Gallium 0.4 on NVC1
[23:22:00.355] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
               GL_OES_depth24 GL_OES_element_index_uint
               GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8
               GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D
               GL_OES_texture_npot GL_OES_EGL_image GL_OES_depth_texture
               GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
               GL_APPLE_texture_max_level GL_EXT_read_format_bgra
               GL_NV_fbo_color_attachments GL_OES_EGL_image_external
               GL_OES_vertex_array_object GL_EXT_texture_rg
               GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
[23:22:00.423] No currently active connector found.
[23:22:00.423] failed to create output for
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[23:22:00.444] failed to create compositor

So weston chooese the wrong card to use.
Is there a way to specify the card to use ?

If nouveau is unloaded everything works fine.

Thank you,
Attila Jakosa</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>