This is the solution that I proposed to you in private. It is a fix to mesa (a "common" package) and a followup to nux-tools.
It needs some testing. In particular I don't think I picked the right mesa package to use, and we also need to check with the mesa maintainer. There are various version numbers in there that need to be correct for the target release. A basic test worked OK though (libegl1-mesa is because I had it in an even more wrong package at the time). Remove nux-tools, broken conffile is left around, upgrade mesa, it's fixed, install new nux-tools and it's installed with the right content and no prompt: root@nux-tools-test:~# apt remove nux-tools ... root@nux-tools-test:~# ls /etc/X11/Xsession.d/50_check_unity_support /etc/X11/Xsession.d/50_check_unity_support root@nux-tools-test:~# sudo apt full-upgrade ... Broken /etc/X11/Xsession.d/50_check_unity_support and removed nux-tools found, moving aside... root@nux-tools-test:~# sudo apt install nux-tools Found saved /etc/X11/Xsession.d/50_check_unity_support.mesa-save file, moving it back in place... Unpacking nux-tools (4.0.8+18.04.20180613.5-0ubuntu2) ... Setting up nux-tools (4.0.8+18.04.20180613.5-0ubuntu2) ... Installing new version of config file /etc/X11/Xsession.d/50_check_unity_support ... root@nux-tools-test:~# cat /etc/X11/Xsession.d/50_check_unity_support # This file is sourced by Xsession(5), not executed. # If the hardware does not pass unity_support_test, fall back to LLVMpipe # which does. if [ "x$DESKTOP_SESSION" = "xubuntu" ] && [ -x "/usr/lib/nux/unity_support_test" ]; then ( IFS=':' for d in $XDG_CURRENT_DESKTOP; do if [ "x$d" = "xUnity" ] || [ "x$d" = "xUnity7" ]; then return 0 fi done return 1 ) if [ $? = 0 ]; then /usr/lib/nux/unity_support_test || export LIBGL_ALWAYS_SOFTWARE=1 fi fi -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1768610 Title: leftover conffile forces GNOME is software rendering Status in mesa package in Ubuntu: New Status in nux package in Ubuntu: Fix Released Status in mesa source package in Xenial: New Status in nux source package in Xenial: Fix Committed Status in mesa source package in Artful: New Status in nux source package in Artful: Fix Committed Status in mesa source package in Bionic: New Status in nux source package in Bionic: Fix Committed Bug description: [ Impact ] GNOME shell and other 3D programs run using software rendering after unity removal. This SRU covers only the upgrade case or if nux-tools removal happens after this update, for people who already upgraded and in broken state another SRU will follow. [ Test case ] · Install xenial · Upgrade to bionic or artful (assuming you're using a GNOME session) · sudo apt remove nux-tools · log into your session . From terminal: - printenv LIBGL_ALWAYS_SOFTWARE Should print nothing (and return an error) Same should happen if you don't remove nux-tools but you change `/usr/lib/nux/unity_support_test` not to run properly (replace with a script exiting 1), but you're running a GNOME session. · If running Unity session instead, ensure that printenv LIBGL_ALWAYS_SOFTWARE equals 1 in case that you're running in an environment with no 3d support (VMs are easy tests) [ Regression Potential ] Unity desktops with no 3d support could not start anymore. =========================== After an upgrade from 17.10 to 18.04, I noticed that all gnome windows animations were gone. After some digging, it seems that gnome-session incorrectly assumes that my graphics has no acceleration, when in fact it does: it's a i5-2520M CPU @ 2.50GHz with Intel integrated graphics (i915 driver). I've tried this with and without the xserver-xorg-video-intel package (a.k.a. Intel driver) with the same behavior. The output of gnome-session-check-accelerated is: llvmpipe (LLVM 6.0, 256 bits) however the system should have DRM 2.0 capability. GL checks (e.g. glxinfo, glxgears produce the expected output from a working DRM system). mesa-utils and mesa-utils-extra are both installed. I can't find a work around. Perhaps there is something wrong with my install/upgrade? Everything else works fine, although the graphical transitions are no longer smooth. But it would be nice to restore the expected behavior. I have attached the log of 'journalctl -b0' ProblemType: BugDistroRelease: Ubuntu 18.04 Package: gnome-session 3.28.1-0ubuntu2 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 Uname: Linux 4.15.0-20-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed May 2 13:06:00 2018 EcryptfsInUse: Yes InstallationDate: Installed on 2016-04-22 (739 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) ProcEnviron: PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bashSourcePackage: gnome-session UpgradeStatus: Upgraded to bionic on 2018-04-27 (5 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1768610/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp