Crypto mining is not "graphics" though and bypasses X11 (it talks to the GPU via CUDA or OpenCL). You can happily mine without ever having an X server running.
What I meant is that mining has a totally different way of using the GPU than graphics. For OpenGL you have to have X11 running and the correct libraries installed. Mining bypasses all that and uses OpenCL or CUDA instead.