<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Unfortunately, we don't have a laptop with NVidia Optimus nor AMD
Dynamic Switchable Graphics, so we can't troubleshoot this
ourselves. So here's some general advice. <br>
</p>
<p><br>
</p>
<p>The error happens when the OpenGL widget doesn't initialize
properly. You can use the glxinfo program to see what information
is being presented to Chimera. Chimera wants a double buffered,
24-bit color, depth, and stencil render buffer.<br>
</p>
<p><br>
</p>
<p>If you have Nvidia graphics, you should install the closed source
proprietary Nvidia graphics driver. The open source driver is not
good enough.</p>
<p><br>
</p>
<p>If your laptop is always plugged in, disable the integrated
graphics in the BIOS so you're always using the high performance
graphics option. Linux will only see the Nvidia/AMD option, and
Chimera will be happy.<br>
</p>
<p><br>
</p>
<p>Run a current version of Linux and follow the instructions for
that version to setup the hybrid graphics. I expect that it is
easier with Ubuntu or Fedora, but other versions should work too.
For example, <a class="moz-txt-link-freetext" href="https://wiki.debian.org/NVIDIA%20Optimus">https://wiki.debian.org/NVIDIA%20Optimus</a> states that
if you are using Debian 11 (bullseye) or newer, you might not need
to do anything extra. Ubuntu 21.04 is based on Debian 11. So I'd
recommend Ubuntu 22.04.<br>
</p>
<p><br>
</p>
<p>Edit the Chimera.desktop shortcut and add:</p>
<p><br>
</p>
<p> PrefersNonDefaultGPU=true<br>
</p>
<p><br>
</p>
<p>That will tell the desktop to use the high performance graphics
when you click on the shortcut -- that is supposed to work even if
the high performance graphics is the default, the name of the
option was standardized too early.</p>
<p><br>
</p>
<p>And if you're ever in San Francisco, please come by the lab with
your laptop and we'll see what we can figure out.<br>
</p>
<p><br>
</p>
<p> Good luck,</p>
<p><br>
</p>
<p> Greg<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/23/2022 12:07 AM, Powell, William
A. via Chimera-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:PH0PR03MB643035436A910A4BD798A4B4A1E99@PH0PR03MB6430.namprd03.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="elementToProof">Hi, Chimera community.<br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="elementToProof"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="elementToProof">I have seen similar problems addressed,
and the solution is always to update drivers and make sure
there is only on OpenGL renderer. I am unable to resolve my
problem this way. When Chimera is launched using my dedicated
NVIDIA 3060 Mobile graphics card, there are mixed results. If
launched from a terminal instance an by the NVIDIA card, it
produces the error below.</span></div>
<blockquote style="border-color: rgb(200, 200, 200); border-left:
3px solid rgb(200, 200, 200); padding-left: 1ex; margin-left:
0.8ex; color: rgb(102, 102, 102);" itemscope=""
itemtype="https://schemas.microsoft.com/QuotedText">
<div class=""><span style="font-family: Calibri, Arial,
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);
background-color: rgb(255, 255, 255);" class="">Display
misconfiguration. Please increase the color quality (24 bit
color or greater), update your display (graphics) driver,
and/or upgrade your graphics card. Also see chimera
installation instructions.</span></div>
</blockquote>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);" class="">Using
primusrun, it succesfully launches on the dedicated card.
Unfortunately, the nvidia-primus and bumblebee-nvidia packages
seem to conflict with the NVIDIA drivers. The only way Chimera
works reliably is by launching it through an instance of Steam
ran on the NVIDIA card. The Steam client opens
~/.local/bin/chimera, the same file opened through the
terminal. I am not sure what is so special about launching an
application through Steam.</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="elementToProof"><br>
Thanks!<br>
</span></div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica,
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin-left:80px"><b>W. Andy Powell, B.S.,
A.S., Graduate Teaching Assistant</b></div>
<div style="margin-left:80px">The University of Oklahoma<br>
</div>
<div style="margin-left:80px">Singh Lab, INPART</div>
<div style="margin-left:80px" class="ContentPasted0">Department
of Chemistry and Biochemistry<br>
</div>
<div style="margin-left:80px">Dodge Family College of Arts
and Science </div>
<div style="margin-left:80px"><a class="moz-txt-link-abbreviated" href="mailto:w.a.powell@ou.edu">w.a.powell@ou.edu</a></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Chimera-users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a>
Manage subscription: <a class="moz-txt-link-freetext" href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users">https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users</a>
</pre>
</blockquote>
</body>
</html>