DM_OGL_PROBE(1)
π dm_ogl_probe β the vibe check for your GLX era β¨
okay so this is dm_ogl_probe from the BRL-CAD manual, section 1, and bestie it is literally the smallest little diva in the whole toolbox π it does exactly one thing and it does it silently, like a queen π
β¨ NAME β¨
dm_ogl_probe β test whether a usable GLX/OpenGL display environment is actually available, no cap ππ»
π¦ SYNOPSIS π¦
dm_ogl_probe [_display_]
πΈ DESCRIPTION πΈ
so dm_ogl_probe is this tiny helper utility that BRL-CAD uses to figure out, at run time, whether an X11 display actually supports a working GLX/OpenGL rendering context. it's the probe that backs the ogl display manager (aka the dm-ogl plugin) β like, before BRL-CAD tools such as mged(1) or archer(1) even think about opening an ogl display, you can run this probe to confirm that the necessary GLX visual and context can actually be created. it's giving pre-flight check βοΈβ¨
the probe takes no flag options. like, zero. none. it optionally accepts a single argument naming the X display to test, and if you omit it, the display named by the DISPLAY environment variable gets used instead π«Ά
here's the whole glow-up sequence: dm_ogl_probe opens the display, verifies the GLX extension is present, searches for the deepest RGBA visual that supports OpenGL, creates an OpenGL context and a temporary window, and makes the context current. then it tears everything down and exits. no window is left on screen, and nothing is printed on success β the result is communicated entirely through the exit status, which makes this tool perfect for scripts and build/setup logic π₯ iykyk
the exit status is basically the whole personality, and it indicates the outcome:
0β a usable GLX/OpenGL context was created and made current π2β the display could not be opened π3β the X server does not provide the GLX extension π4β no suitable RGBA OpenGL visual was found π5β an OpenGL context could not be created π¬6β the temporary test window could not be created π«7β the context could not be made current β οΈ
bestie pls remember: silence = success here. if it prints nothing, that's not it ghosting you, that's it slaying π
π OPTIONS π
- display β the X display to probe, in standard X11 form (for example
:0,:0.0, orhostname:0). when omitted, theDISPLAYenvironment variable selects the display β¨
π EXAMPLES π
Example 1. Probe the default display β
dm_ogl_probe; echo $?
tests the display named by DISPLAY and prints the exit status. a printed 0 means an ogl display manager can be opened on this display. iconic behavior honestly π
Example 2. Gate launching an OpenGL session on probe success π§
if dm_ogl_probe ":0"; then
mged -c model.g
else
echo "GLX/OpenGL not available on :0, falling back" >&2
fi
runs the probe against display :0 and only launches mged(1) when a working GLX/OpenGL context is available, otherwise reporting the failure so a different display manager (such as X or swrast) can be selected. conditional queen behavior ππ₯
π¦ SEE ALSO π¦
brlcad(1), mged(1), archer(1), fbserv(1) β go read the whole friend group π
β AUTHOR β
BRL-CAD Team π«Ά
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory. fr fr, that's the real paperwork ποΈβ¨
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org π§ don't be shy, tell them everything bestie π
and that's the whole page, mwah π β brought to you by the BRL-CAD crew, DM_OGL_PROBE(1), see you in the group chat π¦π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms