<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 --- - NVEnterTV fails on hybrid cards"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62916">62916</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>nouveau@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>NVEnterTV fails on hybrid cards
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>xorg-team@lists.x.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>critical
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zeng.shixin@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>Driver/nouveau
</td>
</tr>
<tr>
<th>Product</th>
<td>xorg
</td>
</tr></table>
<p>
<div>
<pre>Since on system with hybrid cards, the nvidia card might not be connecting to
the screen, so Xf86SetDisiredMode could fail, which results in a fatal error
for Xserver:
[ 91825.257] (II) NOUVEAU(G0): NVEnterVT is called.
[ 91825.258]
Fatal server error:
[ 91825.258] EnterVT failed for gpu screen 0
The following dirty hack fixes the problem. We should check for the connected
screen before setting mode, but I don't know how to do that, since this is my
first time to look at nouveau code.
--- nv_driver-orig.c 2013-03-29 17:19:34.876953461 -0400
+++ nv_driver.c 2013-03-29 17:20:15.810287942 -0400
@@ -407,8 +407,7 @@
if (ret)
ErrorF("Unable to get master: %s\n", strerror(errno));
- if (!xf86SetDesiredModes(pScrn))
- return FALSE;
+ xf86SetDesiredModes(pScrn);
if (pNv->overlayAdaptor && pNv->Architecture != NV_ARCH_04)
NV10WriteOverlayParameters(pScrn);</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>