VirtualBox

Ignore:
Timestamp:
Nov 8, 2018 3:29:56 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126443
Message:

Additions/linux: disable 3D for guests using Wayland.
ticketref:18116: Linux guests with X.Org Server 1.20 and 3D enabled fail...
Our 3D pass-through on Linux guests was designed for an X11 world where GLX
was the only way of accessing OpenGL. It does not work with Wayland clients
or compositors, and can actively cause problems for EGL with OpenGL. Case in
point, guests with X.Org Server 1.20 installed do not boot to desktop with
3D enabled. Rather than working around that for the few remaining GLX
applications on the desktop, just disable 3D when Wayland is in use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r74964 r75323  
    270270    rm -Rf /var/lib/VBoxGuestAdditions/lib
    271271    if /usr/bin/VBoxClient --check3d 2>/dev/null; then
     272        setup_gl=true;
     273    else
     274        unset setup_gl
     275    fi
     276    # Disable 3D if Xwayland is found, except on Ubuntu 18.04.
     277    if type Xwayland >/dev/null 2>&1; then
     278        unset PRETTY_NAME
     279        . /etc/os-release 2>/dev/null
     280        case "${PRETTY_NAME}" in
     281            "Ubuntu 18.04"*) ;;
     282            *) unset setup_gl ;;
     283        esac
     284    fi
     285    if test -n "${setup_gl}"; then
    272286        mkdir -p /var/lib/VBoxGuestAdditions/lib
    273287        ln -sf "${INSTALL_DIR}/lib/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette