Author Topic: I installed the latest Nvidia driver, now my fonts are wacked!  (Read 2392 times)

jedi

  • DEFCON 1
  • Posts: 1604
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
I'm just going to post my entire xorg.conf file here for perusal.

If, on the other hand, you are happy using the 'nouveau' driver, you will most likely have no xorg.conf file and you should stop reading now.

I've been playing around with graphics on Linux since probably the beginning of the Bumblebee project at least.  (for those interested in Bumblebee for "hybrid-graphics", there is a HowTo I posted here in the HowTo section, and there are several "Bumblebee" articles I've written at jedsdesk.com)

Some may have noticed that upon making the leap to the real deal Nvidia driver, your font sizes are messed up.  By adding the following to your /etc/X11/xorg.conf file, you should be quite happy with the results.

This is a pretty typical xorg.conf file if you happen to need one!  Minor adjustments may be needed to suit your particular hardware!

Code: [Select]
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

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

Section "Module"
Load "glx"
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   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"            # [<bool>]
        #Option     "HWcursor"            # [<bool>]
        #Option     "NoAccel"            # [<bool>]
        #Option     "ShadowFB"            # [<bool>]
        #Option     "VideoKey"            # <i>
        #Option     "WrappedFB"          # [<bool>]
        #Option     "GLXVBlank"          # [<bool>]
        #Option     "ZaphodHeads"        # <str>
        #Option     "PageFlip"            # [<bool>]
        #Option     "SwapLimit"          # <i>
        #Option     "AsyncUTSDFS"        # [<bool>]
Identifier  "Card0"
Driver "nvidia"
Option      "Coolbits" "1"
Option      "AddARGBGLXVisuals" "true"
Option      "TripleBuffer" "false"
BusID       "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
        Option "DPI" "90 x 90"   #these are the two lines to add!!!
        Option "nologo" "true"         #these are the two lines to add!!!
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



Section "Extensions"
Option      "Composite" "enable"
# Option      "RENDER" "disable"
EndSection

In the part of the file thats heading says 'Section "Screen"', underneath the "Monitor   Monitor0" line there are two additions you need to make.  These are both "Option" settings.  They are as follows;
Code: [Select]
       
        Option "DPI" "90 x 90"
        Option "nologo" "true"

The DPI option reduces the fonts system wide to the normal 90 x 90 that the nouveau driver was showing you all this time.  (the easy explanation  ;) )  The next line will stop the Nvidia splash logo from appearing everytime you reboot.  (right before it gets to the lightdm login screen)

Enjoy!

PS there is also the option (which has NEVER worked for me) of supposedly being able to enable the FN key on laptops to adjust the brightness level of your screen.  You can add it right after the two lines you added above.  It is as follows;

Code: [Select]
Option "RegistryDwords" "EnableBrightnessControl=1"
Adding it wont hurt anything, but good luck getting it to work.  If someone here on the forums is great at describing how to "map keybindings" please post here how to do it!  (or PM me and I'll be happy to write it up and credit whoever gets me correct directions)  I have been totally unsuccessful at mapping the FN keys on my laptop, short of some outrageous hacks that I'd never post here out of sheer embarrassment!  (i.e. Keyboard backlight brightness FN keys, Volume Up, Down, and Mute FN keys, the brightness control keys, etc...)
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

VastOne

  •      v-ger
  • Posts: 4134
    • View Profile
    • VSIDO Community
Re: I installed the latest Nvidia driver, now my fonts are wacked!
« Reply #1 on: March 04, 2014, 03:34:42 AM »
Excellent How To's and information Jedi... Well done!   8)
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 2150
    • View Profile
    • PackRat configs on github
Re: I installed the latest Nvidia driver, now my fonts are wacked!
« Reply #2 on: March 04, 2014, 03:54:23 AM »
Nice one, jed; I'll have to try this later when I have the time.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

dizzie

  • DEFCON 1
  • Posts: 729
  • Bastard Operator From Hell
    • View Profile
Re: I installed the latest Nvidia driver, now my fonts are wacked!
« Reply #3 on: March 04, 2014, 10:50:14 AM »
Awesome work Jedi!


I on the other hand have a annoying problem; whenever i logout of X (messing with i3 and pekwm atm) my left monitor "crashes" (no kidding! I have to unplug it, to make it work again, and no, can't just push the power, its a digital screen, and the powerbutton is nonresponsive) Something funny to find out how, but I do blame the nvidia


(Sorry for threadjacking, I found this issue somewhat related)
Reclaim your culture, it's within your reach!

My Blog | Facebook | Twitter | G+ | VSIDO |