From 547bd4c66704b4b33894121c9a762a965b4f9292 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Mon, 29 Jun 2020 22:18:08 +0200 Subject: [PATCH] ubuntu.sh: add fix for gazebo's OpenGL problem in VMs That makes gazebo crash in VMWare 3D graphics accelration. --- Tools/setup/ubuntu.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/setup/ubuntu.sh b/Tools/setup/ubuntu.sh index d1c1587a77..a4bd951212 100755 --- a/Tools/setup/ubuntu.sh +++ b/Tools/setup/ubuntu.sh @@ -205,6 +205,10 @@ if [[ $INSTALL_SIM == "true" ]]; then protobuf-compiler \ ; + if sudo dmidecode -t system | grep -q "Manufacturer: VMware, Inc." ; then + # fix VMWare 3D graphics acceleration for gazebo + echo "export SVGA_VGPU10=0" >> ~/.profile + fi fi if [[ $INSTALL_NUTTX == "true" ]]; then