Glxinfo

From Linuxintro

glxinfo is a command to check the status of GLX, the openGL X extension. It can be used e.g. to see if hardware graphics acceleration (direct rendering) is enabled:

glxinfo | grep -i direct
direct rendering: Yes

In this example hardware graphics acceleration is enabled.

See also