Peter Blomgren
San Diego State University
Boom! Push button for help
Fixed Problems

Here are fixes to some (not so random problems)...

Problem: On a system with multiple GPU cards (one for display, others for CUDA computations), xstart / xinit will sometimes pick the wrong (first one on the list) card for the display.

Keywords: fedora 25 select GPU device nvidia driver

  • run nvidia-settings to generate /etc/X11/xorg.conf
  • lspci | egrep -i VGA to get the BusID of the card, e.g.

    04:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)

  • Add the line: BusID "PCI:4:0:0"

    to Section "Device" of /etc/X11/xorg.conf

Problem: Legacy postscript fonts cause warnings and strange output from LaTeX processed with dvips, dvipdf, and/or pdflatex.

Keywords: LaTeX fonts legacy Helvetica pdflatex

Error Message:
/usr/bin/dvips: Font Helvetica-Bold used in file Figures/basis_q1.eps is not in the mapping file.
/usr/bin/dvips: Font Helvetica used in file Figures/basis_q1.eps is not in the mapping file.

  • Add the line: p

    to /usr/share/texlive/texmf-dist/dvips/config/

Problem: Plotting in Matlab R2016b fails under Fedora 25.

Error Message:
Error using gca
While setting property 'Parent' of class ''Axes'':
Can't load '/opt/MATLAB/R2016b/bin/glnxa64/':
/opt/MATLAB/R2016b/bin/glnxa64/../../sys/os/glnxa64/ version `CXXABI_1.3.9' not found (required by /lib64/
Error in newplot (line 73)
ax = gca(fig);

  • Force matlab to load the system version of libstdc++ by creating the alias

  • alias matlab='LD_PRELOAD=/usr/lib64/ /opt/MATLAB/R2016b/bin/matlab'
Alternative (alleged):
  • Copy/edit — uncomment

to always use the OpenGL libraries shipped with MATLAB.