By default, CentOS 7 KDE Plasma Advanced Desktop Effects wont allow a Compositing Type of OpenGL. This is a bug; Attempting to enable OpenGL 1.2, 2.0, or 3.1 on a VMWare (workstation) guest causes KDE to crash. The Desktop Effect settings continously revert back to a Compositing Type of XRender.
It turns out that there’s a workaround that’s fairly straightfoward, with one caveat. OpenGL 2.0 will work, but OpenGL 3.1 will not.
Here’s how to use a Compositing Type of OpenGL 2.0 qith the Qt graphics system Raster.
-
As root, add an KDE environment script to ‘‘/etc/kde/env’’, i.e.
vi /etc/kde/env/force_opengl.sh
-
The content of the script should look something like this (note: KWIN_COMPOSE is ‘‘NOT’’ ZERO2, it’s OH2).
#!/usr/bin/bash export KWIN_DIRECT_GL=1 export KWIN_COMPOSE=O2
-
Log out of KDE & log back in again (or reboot)
-
Click Start -> System Settings -> Desktop Effects -> Advanced, change the following, & click Apply.
Compositing Type: OpenGL 2.0 Qt graphics System: Raster
-
Log out of KDE & log back in again (or reboot)
-
Click Start -> System Settings -> Desktop Effects -> All Effects, select what you want, & click Apply.
-
A good effect to test & see OpenGL 2.0 in action is the Desktop Cube.