create X11 context, to get gpu metric group id

This needs to be changed to use waffle