<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5779&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Random Xorg crashes after upgrading to Daedalus]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5779</link>
		<description><![CDATA[The most recent posts in [SOLVED] Random Xorg crashes after upgrading to Daedalus.]]></description>
		<lastBuildDate>Thu, 18 Jan 2024 16:14:50 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Random Xorg crashes after upgrading to Daedalus]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47399#p47399</link>
			<description><![CDATA[<p>Even though I am using Debian, I am so grateful for this solution, because after upgrade to Bookworm Palemoon would crash the X system. With this fix (using Device1) it seems to work well.</p><p>Before, I also tried the the recipe on <a href="https://dev1galaxy.org/viewtopic.php?pid=36120" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=36120</a> (building locally and installing mesa-amber) but that did not fix the problem. Now I wonder wether I should undo that, and the best way for doing it (<span class="bbc">dpkg -r ...</span> for all the 6 packages plus the dependencies they installed plus removing <span class="bbc">build-essential devscripts</span> which I normally don&#039;t use).</p>]]></description>
			<author><![CDATA[dummy@example.com (olive_)]]></author>
			<pubDate>Thu, 18 Jan 2024 16:14:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47399#p47399</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Random Xorg crashes after upgrading to Daedalus]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42773#p42773</link>
			<description><![CDATA[<p>For completion&#039;s sake, here is the output of <span class="bbc">inxi -Gx</span> in the three configurations I mentioned in original post:</p><p>#1: Laptop&#039;s default configuration. Result: Xorg consistently crashes when visiting certain webpages using chromium-based web browsers.</p><div class="codebox"><pre><code>$ inxi -Gx
Graphics:
  Device-1: Intel Core Processor Integrated Graphics vendor: Sony driver: i915
    v: kernel arch: Gen-5.75 bus-ID: 00:02.0
  Device-2: Microdia Webcam type: USB driver: uvcvideo bus-ID: 1-1.2:3
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: crocus gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 2.1 Mesa 22.3.6 renderer: Mesa Intel HD Graphics (ILK)
    direct-render: Yes</code></pre></div><p>#2: Workaround using <span class="bbc">nomodeset</span> kernel boot parameter. Result: No Xorg crashes at the price of an inactive GPU.</p><div class="codebox"><pre><code>$ inxi -Gx
Graphics:
  Device-1: Intel Core Processor Integrated Graphics vendor: Sony driver: N/A
    arch: Gen-5.75 bus-ID: 00:02.0
  Device-2: Microdia Webcam type: USB driver: uvcvideo bus-ID: 1-1.2:3
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: vesa
    unloaded: fbdev,modesetting dri: swrast gpu: N/A resolution: 1366x768
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: llvmpipe (LLVM 15.0.6 128 bits)
    direct-render: Yes</code></pre></div><p>#3: Current configuration, achieved with <span class="bbc">/usr/share/X11/xorg.conf.d/09-force-intel-driver.conf</span> and no special kernel boot parameters. Result: No Xorg crashes, GPU is active.</p><div class="codebox"><pre><code>$ inxi -Gx
Graphics:
  Device-1: Intel Core Processor Integrated Graphics vendor: Sony driver: i915
    v: kernel arch: Gen-5.75 bus-ID: 00:02.0
  Device-2: Microdia Webcam type: USB driver: uvcvideo bus-ID: 1-1.2:3
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: intel
    dri: crocus gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 2.1 Mesa 22.3.6 renderer: Mesa Intel HD Graphics (ILK)
    direct-render: Yes</code></pre></div><p>Other than this one strange issue on this one laptop, upgrade from Chimaera to Daedalus was smooth for all my machines. Thank you, Devuan team!</p><p>Happy hacking!</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 05 Jul 2023 13:28:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42773#p42773</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Random Xorg crashes after upgrading to Daedalus]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42770#p42770</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>In short: screen numbers start at <span class="bbc">0</span>.</p></div></blockquote></div><p>Maybe so, but the affected laptop only has one (built-in) screen and the config file has no effect unless I use <em>Device1</em>.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 05 Jul 2023 02:42:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42770#p42770</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Random Xorg crashes after upgrading to Daedalus]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42769#p42769</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>GNUser wrote:</cite><blockquote><div><p>... you may have to change Device1 to Device0):</p><div class="codebox"><pre><code>Section &quot;Device&quot;
	Identifier &quot;Device1&quot;
	Driver &quot;intel&quot;
EndSection</code></pre></div><p>--- snip ---</p><p>... had to change Device0 to Device1 for the config file to have any effect. Crashes went away with this.</p></div></blockquote></div><p>Reading your post I vaguely recalled a similar issue (many) years ago when I was attempting to go from a single screen layout to a two (and then three) screen layout.</p><p>I was trying to get a manually configured <span class="bbc">xorg.conf</span> file to work but had started the screen numbering at <span class="bbc">1</span> instead of at <span class="bbc">0</span>.&#160; &#160;</p><p>Once I got it to work I never had to look at it again: I have used the same <span class="bbc">*.conf</span> file with the same hardware through at least four different distributions and now with Devuan since Jesse.</p><p>See Device Section here: <a href="https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading10" rel="nofollow">https://www.x.org/releases/current/doc/ … #heading10</a></p><div class="quotebox"><blockquote><div><p>Screen <em>number</em></p><p>This option is mandatory for cards where a single PCI entity can drive more than one display (i.e., multiple CRTCs sharing a single graphics accelerator and video memory). One Device section is required for each head, and this parameter determines which head each of the Device sections applies to. The legal values of number range from 0 to one less than the total number of heads per entity. Most drivers require that the primary screen (0) be present.</p></div></blockquote></div><p>In short: screen numbers start at <span class="bbc">0</span>. </p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 05 Jul 2023 00:06:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42769#p42769</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Random Xorg crashes after upgrading to Daedalus]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42765#p42765</link>
			<description><![CDATA[<p>It seems that Xorg&#039;s latest <em>modesetting</em> driver does not play nice with old-ish (5th generation) integrated Intel graphics. One solution is to force Xorg to use its <em>intel</em> driver instead of the default <em>modesetting</em> driver.</p><p>If all of these are true for you:</p><p>1. You are experiencing seemingly random Xorg crashes (e.g., while using a chromium-based web browser such as Brave or Chrome) after upgrading to Daedalus</p><p>2. After an Xorg crash, <span class="bbc">/var/log/Xorg.0.log.old</span> shows <span class="bbc">Fatal server error: (EE) GLSL compile failure</span></p><p>3. Your machine has 5th generation Intel integrated graphics (use <span class="bbc">inxi -Gx</span> to find out. In my case, command output shows <span class="bbc">arch: Gen-5.75</span>)</p><p>Then try creating <span class="bbc">/usr/share/X11/xorg.conf.d/09-force-intel-driver.conf</span> with this in it (you may have to change Device1 to Device0):</p><div class="codebox"><pre><code>Section &quot;Device&quot;
	Identifier &quot;Device1&quot;
	Driver &quot;intel&quot;
EndSection</code></pre></div><p>and then reboot. In my case, all Xorg crashes went away.</p><p>I hope this helps someone with the same issue.</p><p>----------</p><p>Some additional details:</p><p>In my case, crashes could be reliably triggered by visiting certain product pages on amazon.com while using Brave or Chrome browser (e.g., &quot;Risk: Lord of the Rings Trilogy edition&quot;). Disabling &quot;Use hardware acceleration when available&quot; in the browser did not help. Building, installing, and using mesa-amber as described in <a href="https://dev1galaxy.org/viewtopic.php?id=5060" rel="nofollow">this post</a> did not help. Using <span class="bbc">nomodeset</span> kernel boot parameter does make the crashes go away, but seemingly at the expense of disabling the GPU and losing hardware graphics acceleration. </p><p>Here is what I see at the end of /var/log/Xorg.0.log.old after a crash:</p><div class="codebox"><pre class="vscroll"><code>vec2 rel_tex_coord(vec2 texture, vec4 wh, int repeat) 
{
	vec2 rel_tex; 
	rel_tex = texture * wh.xy; 
	if (repeat == RepeatFix + RepeatNone)
		return rel_tex; 
	else if (repeat == RepeatFix + RepeatNormal) 
		rel_tex = floor(rel_tex) + (fract(rel_tex) / wh.xy); 
	else if (repeat == RepeatFix + RepeatPad) { 
		if (rel_tex.x &gt;= 1.0) 
			rel_tex.x = 1.0 - wh.z * wh.x / 2.; 
		else if (rel_tex.x &lt; 0.0) 
			rel_tex.x = 0.0; 
		if (rel_tex.y &gt;= 1.0) 
			rel_tex.y = 1.0 - wh.w * wh.y / 2.; 
		else if (rel_tex.y &lt; 0.0) 
			rel_tex.y = 0.0; 
		rel_tex = rel_tex / wh.xy; 
	} else if (repeat == RepeatFix + RepeatReflect) {
		if ((1.0 - mod(abs(floor(rel_tex.x)), 2.0)) &lt; 0.001)
[    63.908] (EE) 
Fatal server error:
[    63.908] (EE) GLSL compile failure
[    63.908] (EE) 
[    63.908] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    63.909] (EE) Please also check the log file at &quot;/var/log/Xorg.0.log&quot; for additional information.
[    63.909] (EE) 
[    63.909] (II) AIGLX: Suspending AIGLX clients for VT switch
[    63.968] (EE) Server terminated with error (1). Closing log file.</code></pre></div><p>P.S. My other laptop, which has integrated Intel graphics Gen-7, is not affected by this problem.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Tue, 04 Jul 2023 19:04:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42765#p42765</guid>
		</item>
	</channel>
</rss>
