<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - gfx corruption on windowed 3d-apps running on dGPU"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101691#c40">Comment # 40</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - gfx corruption on windowed 3d-apps running on dGPU"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101691">bug 101691</a>
from <span class="vcard"><a class="email" href="mailto:ethan.hsieh@canonical.com" title="Ethan Hsieh <ethan.hsieh@canonical.com>"> <span class="fn">Ethan Hsieh</span></a>
</span></b>
<pre>Cannot reproduce corruption issue with SNA_POWERSAVE enabled.
(Have to re-plug AC adapter to make the workaround work)
xserver-xorg-video-intel-2.99.917+git20160325/src/sna/sna_acpi.c
@@ -123,10 +123,14 @@ void _sna_acpi_wakeup(struct sna *sna)
state = atoi(space + 1);
DBG(("%s: ac_adapter event new state=%d\n", __FUNCTION__, state));
+#if 0
if (state)
sna->flags &= ~SNA_POWERSAVE;
else
sna->flags |= SNA_POWERSAVE;
+#endif
+ DBG(("%s: enable SNA_POWERSAVE\n", __FUNCTION__));
+ sna->flags |= SNA_POWERSAVE;
}
Xorg.0.org:
$ grep -r -i -e "ac_ad" -e "enable SNA" /var/log/Xorg.0.log
[ 112.044] _sna_acpi_wakeup: event string [41]: 'ac_adapter ACPI0003:00
00000080 00000000
[ 112.044] _sna_acpi_wakeup: ac_adapter event new state=0
[ 112.044] _sna_acpi_wakeup: enable SNA_POWERSAVE
[ 123.003] _sna_acpi_wakeup: event string [41]: 'ac_adapter ACPI0003:00
00000080 00000001
[ 123.003] _sna_acpi_wakeup: ac_adapter event new state=1
[ 123.003] _sna_acpi_wakeup: enable SNA_POWERSAVE</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>