Nvidia (331.38) ignores underscan setting after boot or loging back in

Solution 1:

You can try to compensate the underscan with this command:

nvidia-settings -a CurrentMetaMode="DFP-1: 1280x720 { ViewPortIn=1280x720,ViewPortOut=1230x672-25-24 }"

Note that this command is for 720p resolution and 25 is the amount of pixels that the dead area goes horizontally and 24 is the amount of pixels that it goes vertically. Substitute those values with desired ones.

If that worked you can make this fix permanent by saving these configurations onto your xorg file:

sudo gedit /etc/X11/xorg.conf

Look for 'Section "Device"', if your xorg doesn't have such section or it is empty, create this section:

Section "Device"
    Identifier    "Default Device"  
    Option        "NoLogo" "True"
EndSection

Under this section add one option so it will be like this:

Section "Device"
    Identifier    "Default Device"  
    Option        "NoLogo" "True"
    Option        "metamodes" "DFP-1: 1280x720 { ViewPortIn=1280x720,ViewPortOut=1230x672-25-24 }"
EndSection

Save it, restart your computer and now it should be fixed.