[Pkg-ltsp-devel] Bug#767764: ldm: setting LDM_DIRECTX=True crashes gnome, gnome-classic, cinnamon, cinnamon-2d

Vagrant Cascadian vagrant at debian.org
Sun Feb 1 21:55:57 UTC 2015


Control: severity -1 serious
Contro: tags -1 patch

On 2014-12-08, Holger Sander <Holger at Sander-Delmenhorst.net> wrote:
> Am 07.12.2014 22:51, schrieb Vagrant Cascadian:
>> 
>> Ok, assuming your LTSP environment is /opt/ltsp/i386, looks like you're
>> being impacted by /opt/ltsp/i386/usr/share/ldm/rc.d/X51-opengl:
>> 
>>   # Force indirect rendering when using LDM_DIRECTX so we have some working GL by default
>>   
>>   if boolean_is_true "$LDM_DIRECTX" && ! boolean_is_true "$LTSP_FATCLIENT"; then
>>       CLIENT_ENV="$CLIENT_ENV LIBGL_ALWAYS_INDIRECT=true"
>>   fi
>
> Yes, that solves the problem.

Ok, I'd like to fix this for for Jessie, since it breaks several common
desktop environments. Simply removing that code fixes several of them:

* gnome-flashback

* cinnamon: still issues a warning about software rendering

* cinnamon2d: still affected by 16-bit color depth issue:
  https://bugs.debian.org/705143

Unfortunately, gnome3 doesn't work either way.

I haven't found environments that worked with LIBGL_ALWAYS_INDIRECT=true
but no longer work without it, though that may be hardware specific.


> The error with indirect rendering, is it an error of the mesa-packages
> and which one? Should we send a bugreport?

I don't think setting LIBGL_ALWAYS_INDIRECT unconditionally is a good
idea as it is too broad. Individual sites can add it to CLIENT_ENV in
lts.conf if needed.


This is fixed upstream:

  https://bazaar.launchpad.net/~ltsp-upstream/ltsp/ldm-trunk/revision/1575


commit 659c052510b3aaa48bdcc0ca384c60af1cb2f9b2
Author: Vagrant Cascadian <vagrant at debian.org>
Date:   Sun Feb 1 11:58:03 2015 -0800

    Remove rc.d hook to set LIBGL_ALWAYS_INDIRECT=true, as it causes
    problems with several common desktops, and can be enabled on a
    per-client basis by setting CLIENT_ENV in lts.conf.
    https://bugs.debian.org/767764

diff --git a/rc.d/Makefile.am b/rc.d/Makefile.am
index 92f5eb4..47208f2 100644
--- a/rc.d/Makefile.am
+++ b/rc.d/Makefile.am
@@ -1,3 +1,3 @@
 EXTRA_DIST = $(rcd_DATA)
 rcddir = $(datadir)/ldm/rc.d
-rcd_DATA = I01-nbd-checkupdate K99-ltsp-cluster P00-ltsp-cluster S01-setup-xauth S15-userLoginCheck S20-restrictUser S99-debug-terminal S99-ltsp-cluster X50-generate-env X50-dmrc-processing X50-printers X51-opengl X52-xcompmgr X95-run-x-session
+rcd_DATA = I01-nbd-checkupdate K99-ltsp-cluster P00-ltsp-cluster S01-setup-xauth S15-userLoginCheck S20-restrictUser S99-debug-terminal S99-ltsp-cluster X50-generate-env X50-dmrc-processing X50-printers X52-xcompmgr X95-run-x-session
diff --git a/rc.d/X51-opengl b/rc.d/X51-opengl
deleted file mode 100644
index 72eb922..0000000
--- a/rc.d/X51-opengl
+++ /dev/null
@@ -1,5 +0,0 @@
-# Force indirect rendering when using LDM_DIRECTX so we have some working GL by default
-
-if boolean_is_true "$LDM_DIRECTX" && ! boolean_is_true "$LTSP_FATCLIENT"; then
-    CLIENT_ENV="$CLIENT_ENV LIBGL_ALWAYS_INDIRECT=true"
-fi


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20150201/f399e228/attachment.sig>


More information about the Pkg-ltsp-devel mailing list