Fontpath pulling in obsolete paths

Upon boot, I see in Xorg.0.log, the old and obsolete font directories in /usr/X11R6:


   398.898] (==) Using config file: "/etc/X11/xorg.conf"
   398.900] (==) Using config directory: "/etc/X11/xorg.conf.d"
   398.901] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
   398.903] (==) ServerLayout "X.org Configured"
   398.903] (**) |-->Screen "Screen0" (0)
   398.903] (**) |   |-->Monitor "Monitor0"
   398.903] (**) |   |-->Device "Card0"
   398.903] (**) |-->Input Device "Mouse0"
   398.903] (**) |-->Input Device "Keyboard0"
   398.903] (==) Automatically adding devices
   398.903] (==) Automatically enabling devices
   398.903] (==) Automatically adding GPU devices
   398.903] (==) Max clients allowed: 256, resource mask: 0x1fffff
   398.911] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
   398.911]     Entry deleted from font path.
   398.911] (**) FontPath set to:
    /usr/X11R6/lib/X11/fonts/local/,
    /usr/X11R6/lib/X11/fonts/misc/:unscaled,
    /usr/X11R6/lib/X11/fonts/100dpi/:unscaled,
    /usr/X11R6/lib/X11/fonts/75dpi/:unscaled,
    /usr/X11R6/lib/X11/fonts/misc/,
    /usr/X11R6/lib/X11/fonts/Type1/,
    /usr/X11R6/lib/X11/fonts/CID/,
    /usr/X11R6/lib/X11/fonts/100dpi/,
    /usr/X11R6/lib/X11/fonts/75dpi/,
    /usr/X11R6/lib/X11/fonts/TTF/,
    /usr/X11R6/lib/X11/fonts/truetype/,
    /usr/share/fonts/default/Type1,
    built-ins,

followed by the current locations as set in /etc/X11/xorg.conf:


    /usr/share/fonts/misc:unscaled,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/ghostscript/,
    /usr/share/fonts/cyrillic:unscaled,
    /usr/share/fonts/truetype/,
    built-ins

Where are the old paths getting pulled from?

Hi
You might try running rpmconfigcheck to see what configs have changed and maybe you need to copy over the fonts-config one.

The prescribed command


# rpmconfigcheck

returns no entries.

Hi
So is this an upgraded system? Also I see no /etc/X11/xorg.conf file on any systems here, do you really need this file?

Yes, this system has been upgraded several times since the 9.1 era.

The xorg.conf is required if you want the extended features in the Nvidia setting app, such as over/under clocking, fan speed settings, and such.

Hi
Sure, but it’s normally done with individual files down in /etc/X11/xorg.conf.d, set coolbits yada yada :wink:

So do you have the font references in the file?

I believe we nearly there.

For reference, my current xorg.conf

/etc/X11 # cat xorg.conf
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection


Section "Files"
    ModulePath   "/usr/lib64/xorg/modules"
        Fontpath        "usr/share/fonts/100dpi/:unscaled"
        Fontpath        "usr/share/fonts/75dpi/:unscaled"
        Fontpath        "usr/share/fonts/misc/:unscaled"
        Fontpath        "usr/share/fonts/100dpi"
        Fontpath        "usr/share/fonts/75dpi"
        Fontpath        "usr/share/fonts/cyrillic"
        Fontpath        "usr/share/fonts/misc"
        Fontpath        "usr/share/fonts/truetype"
        Fontpath        "usr/share/fonts/Type1"
        FontPath        "built-ins"
EndSection


Section "Module"
    Load  "glx"
    Load  "vnc"
EndSection


Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection


Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection


Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "LG"
        ModelName      "LG Electronics LG HDR WQHD"
        HorizSync       30.0 - 130.0
        VertRefresh     56.0 - 75.0
        Option         "DPMS"
EndSection


Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GTX 1080 Ti"
#    BusID       "PCI:101:0:0"
        Option "RegistryDwords" "PowerMizerEnable=0x1; PowerMizerDefaultAC=0x1;"
        Option "Coolbits" "28"
EndSection


Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
        DefaultDepth    24
        Option         "Stereo" "0"
        Option         "nvidiaXineramaInfoOrder" "DFP-2"
        Option         "metamodes" "3840x1600_75 +0+0"
        Option         "SLI" "Off"
        Option         "MultiGPU" "Off"
        Option         "BaseMosaic" "off"
        SubSection     "Display"
           Depth       24
        EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

I went ahead and just renamed the /usr/X11R6 directly as well to insure I was not trying to pull the old fonts in.

Now, from ~/.local/Xorg.1.log I see:


    22.988] (**) FontPath set to:
    usr/share/fonts/100dpi/:unscaled,
    usr/share/fonts/75dpi/:unscaled,
    usr/share/fonts/misc/:unscaled,
    usr/share/fonts/100dpi,
    usr/share/fonts/75dpi,
    usr/share/fonts/cyrillic,
    usr/share/fonts/misc,
    usr/share/fonts/truetype,
    usr/share/fonts/Type1,
    built-ins,
    /usr/share/fonts/misc:unscaled,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/ghostscript/,
    /usr/share/fonts/cyrillic:unscaled,
    /usr/share/fonts/truetype/,
    built-ins
    22.988] (**) ModulePath set to "/usr/lib64/xorg/modules"

For the entries after the ‘builtins’, I guess I could remove those lines from xorg.conf?
I guess I could resort to the /etc/X11/xorg.conf.d ultimately, as the test drive does not have an xorg.conf; I have just been doing it this way since the Dark Ages :wink:

Hi
Yes, I would remove :slight_smile: You should try it with just a custom /etc/X11/xorg.conf.d/50-device.conf file with your requirements from the current device section of the xorg.conf.

OK, now after all the above changes, Xorg.1.log


    23.609] (**) FontPath set to:
    built-ins,
    /usr/share/fonts/misc:unscaled,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/ghostscript/,
    /usr/share/fonts/cyrillic:unscaled,
    /usr/share/fonts/truetype/,
    built-ins

i would call this one closed.

One last inquiry, any advantage to using the /etc/X11/xorg.d configuration files over the xorg.conf single file?

Hi
These days you should only need the device config, the rest should be taken care of by the system and desktop settings… For example here on GNOME, the screens are all taken care of, the only thing I do is tweak the ~/.config/monitors.xml for position, colord grabs the icc profile etc.

Thanks for the input and again for the help.

I’ll move on to the next adventure :slight_smile: