View Single Post
Old 06-26-12, 12:47 PM   #2
NVIDIA Corporation
AaronP's Avatar
Join Date: Mar 2005
Posts: 2,487
Default Re: ViewPortOut instead of Overscan comp. I need help!

Your configuration of "1280x720 { ViewPortOut=1280x720+20+20 }" doesn't make sense because the bottom 20 lines and rightmost 20 columns would extend outside the physical 1280x720 region of the screen. Check /var/log/Xorg.0.log for errors. For example, on my system if I try something similar, I get this:
[  2557.636] (WW) NVIDIA(0): custom viewPortOut, 1920 x 1200 +20 +20, does not fit within
[  2557.636] (WW) NVIDIA(0):     rasterSize, 1920x1200; ignoring custom viewPortOut
[  2557.673] (II) NVIDIA(0): Setting mode "GPU-0.DP-2:1920x1200{ViewPortOut=1920x1200+20+20}"
To get, e.g., 20 pixels of border around the whole image, shrink the dimensions by 40:
nvidia-settings --assign 0/CurrentMetaMode="DFP-0: 1280x720 { ViewPortOut=1240x680+20+20 }"
This will shrink your desktop to 1240x680 and center it within the physical screen.

If you want to achieve the scaling that the old overscan compensation slider used, you can specify ViewPortIn as well:
nvidia-settings --assign 0/CurrentMetaMode="DFP-0: 1280x720 { ViewPortOut=1240x680+20+20, ViewPortIn=1280x720 }"
AaronP is offline   Reply With Quote