osrf / rocker

A tool to run docker containers with overlays and convenient options for things like GUIs etc.
Apache License 2.0
555 stars 70 forks source link

Added note for linking Intel Xe cards with rocker #190

Closed zmk5 closed 2 years ago

zmk5 commented 2 years ago

When running on an 11th gen Intel processor, I continually got a (Segmentation Fault) and Forcing OpenGl version 0. error when launching Rviz or any other GUI that required accelerated graphics within a container. This only happened when I linked the integrated graphics with the --devices /dev/dri/card0 option as suggested by the documentation.

Further research showed that the /dev/dri/renderD128 is the correct device to link for Intel chipsets with Xe graphics. Therefore, I've added an extra note on the rocker README for future users.

Please let me know if there is anything else I should change!

zmk5 commented 2 years ago

Hey @tfoote. Doing more of a deep dive, I found this documentation by Intel, and they suggest just connecting the integrated graphics with --device=/dev/dri instead of specifying the specific card. Maybe we should change the documentation to just do that instead?

I've checked it on my system and using rocker with --device /dev/dri works!

tfoote commented 2 years ago

That's neat, I didn't realize you could do the whole directory. Can you update the instructions to suggest that instead of having the two specific callouts?

zmk5 commented 2 years ago

Of course. I've updated the documentation and linked the official Intel documentation for future users as well.