Author Topic: [SOLVED] New Nvidia driver - no overscan compensation?  (Read 40610 times)

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
[SOLVED] New Nvidia driver - no overscan compensation?
« on: June 25, 2012, 09:35:41 AM »
I have just upgraded to the latest nvidia driver and found that my Samsung tv (1280x720) is back to doing its usual overscan thing.

For years, I have run with an overscan compensation (in the Nvidia Display Settings) of .80.
With the new driver, this slider appears not to be available any longer.

EDIT: Please see next post for details.

Cheers!
CJ
« Last Edit: June 26, 2012, 05:11:45 PM by CJ »

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: New Nvidia driver - no overscan compensation?
« Reply #1 on: June 25, 2012, 12:34:50 PM »
Ok, found these release notes for the 302.07 beta (we are currently using 302.17).

Quote
* Removed overscan compensation configurability from NV-CONTROL and nvidia-settings. This can be configured, with finer granularity, through the ViewPortIn and ViewPortOut MetaMode attributes. See "Configuring Multiple Display Devices on One X Screen" in the README for details.

From the 302.17 README:
Quote
"ViewPortOut": this specifies the region within the mode sent to the display device that will display pixels from the X screen. The region of the mode outside the ViewPortOut will contain black. The format is "WIDTH x HEIGHT +X +Y".

This is useful, for example, for configuring overscan compensation. E.g., if the mode sent to the display device is 1920x1080, to configure a 10 pixel border on all four sides:

    "DFP-0: 1920x1080 { ViewPortOut=1900x1060+10+10 }"


I have tried inserting a Metamode in my xorg.conf, as follows:
Code: [Select]
Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 24
   
    Subsection "Display"
        Depth 24
        Modes "1280x720"
    EndSubsection

    Option "metamodes" "DFP-1: 1280x720 { ViewPortOut=1280x720+20+20 }"
EndSection

I have tried with different values for the offset of the ViewPortOut (from +10 to +200). I always reboot, just to make sure.

None of this has made any difference whatever!

Could someone have a look and perhaps throw a few ideas at me, please?!

Cheers!
CJ
« Last Edit: June 25, 2012, 01:12:05 PM by CJ »

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: New Nvidia driver - no overscan compensation?
« Reply #2 on: June 26, 2012, 05:09:48 PM »
I got a helpful guy over at the Nvidia forum to help me with this issue, so updating this for solution and posterity (just in case someone else find themselves in the same situation in the future).

The correct (form) metamode line should read:
Code: [Select]
Option "metamodes" "DFP-1: 1280x720 { ViewPortOut=1240x680+20+20 }"
Notice that the dimensions attached to ViewPortOut has to be decreased with twice the amount of the right/down shift.
E.g. in my situation: 1280 - 2 x 20 = 1240; and: 720 - 20 - 20 = 680.
(Obvious, once you know, my tired eyes missed the number differences in the README.)

This does reduce the pixel area by that amount, but retains a pixel-perfect ratio and thus the sharpness.

Some applications might not like this - games, MythTV - in which case a scaling might be a better solution. This is equivalent to the old overscan compensation and is achieved by adding a ViewPortIn to the line, e.g.:
Code: [Select]
Option "metamodes" "DFP-1: 1280x720 { ViewPortOut=1240x680+20+20, ViewPortIn=1280x720 }"

This gives the full pixel area but is scaled to fit the available screen area, so not pixel-perfect and less sharp for that reason.


Hope this might help someone in the future.
For me, I am settled and shall mark this solved.

Cheers!
CJ

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4119
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #3 on: June 26, 2012, 05:25:43 PM »
The nvidia 302.x  driver gives more freedom to configure to your system but must be correctly done.

http://us.download.nvidia.com/XFree86/Linux-x86_64/302.17/README/xconfigoptions.html  gives more information.
Reading their documents is recommended!

JohnW
« Last Edit: June 26, 2012, 05:28:37 PM by JohnW_57 »
PCLinuxOS KDE Plasma/Frameworks 5 on: home build system:  Intel Core i7 4770K  (3.5 Ghz), Asus Z78-K motherboard, Corsair 8GB ddr3 (2x4) memory, MSI Nvidia Geforce GTX 970 Zero Frozr 4GB gddr5, Iiyama Prolite G2773HS 27" monitor, Samsung 840 EVO 120 SSD, 1TB WD (green) HDD (sata), LG GH24 DV

sirkingchase

  • Guest
Re: New Nvidia driver - no overscan compensation?
« Reply #4 on: July 11, 2012, 12:14:47 PM »
I got a helpful guy over at the Nvidia forum to help me with this issue, so updating this for solution and posterity (just in case someone else find themselves in the same situation in the future).

The correct (form) metamode line should read:
Code: [Select]
Option "metamodes" "DFP-1: 1280x720 { ViewPortOut=1240x680+20+20 }"
Notice that the dimensions attached to ViewPortOut has to be decreased with twice the amount of the right/down shift.
E.g. in my situation: 1280 - 2 x 20 = 1240; and: 720 - 20 - 20 = 680.
(Obvious, once you know, my tired eyes missed the number differences in the README.)

This does reduce the pixel area by that amount, but retains a pixel-perfect ratio and thus the sharpness.

Some applications might not like this - games, MythTV - in which case a scaling might be a better solution. This is equivalent to the old overscan compensation and is achieved by adding a ViewPortIn to the line, e.g.:
Code: [Select]
Option "metamodes" "DFP-1: 1280x720 { ViewPortOut=1240x680+20+20, ViewPortIn=1280x720 }"

This gives the full pixel area but is scaled to fit the available screen area, so not pixel-perfect and less sharp for that reason.


Hope this might help someone in the future.
For me, I am settled and shall mark this solved.

Cheers!
CJ


XBMC crashs on startup with segmentation fault errors, and the log complains about CWinSystemX11::XErrorHandler if you do not add the ViewPortIn segment as CJ has stated.

I wish Nvidia still had a way to change this within the settings.  Theres no doubt that using ViewPort is more accurate.  I took me about an hour to get everything just right but it looks good, before the overscan was out of ratio.

Also, this is the only guide I can found that goes into detail on this issue.  Thank you guys for posting solutions.  NVIDIA does not a have an example on there web site, they simply say Overscan has been removed use ViewPort, I had no idea what it was much less the syntax to add.

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: New Nvidia driver - no overscan compensation?
« Reply #5 on: July 11, 2012, 12:33:44 PM »
XBMC crashs on startup with segmentation fault errors, and the log complains about CWinSystemX11::XErrorHandler if you do not add the ViewPortIn segment as CJ has stated.

Nope, not for me. I have been running with this since this thread.
Could it be some dimensions that are not supported by your card? (Just guessing, I have no clue.)
Try posting your metamodes line.

Some applications might not like this - games, MythTV - in which case a scaling might be a better solution.
I can add flash video to this list (YouTube in full screen). It simply 'goes over' right and bottom.

Cheers!
CJ

sirkingchase

  • Guest
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #6 on: July 13, 2012, 11:45:30 PM »
Sorry I think my post was misunderstood,I ment to just add XBMC to the list of programs that do not work without using ViewPortIn suggested in CJ's post, are the erro messages it throws out without it.

My "metamodes" line that works with MythTV, XBMC, etc  -
     Option "metamodes" "DFP-1: 1920x1080 { ViewPortOut=1810x1000+55+40, ViewPortIn=1920x1080 }"


Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #7 on: July 14, 2012, 08:45:29 AM »
Sorry I think my post was misunderstood,I ment to just add XBMC to the list of programs that do not work without using ViewPortIn suggested in CJ's post, are the erro messages it throws out without it.

Gotcha'  8)

Cheers!
CJ

Offline Timothy

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 69
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #8 on: July 15, 2012, 10:09:12 AM »
Thank-you! Thank-you! Thank-you!

I've been struggling with this for weeks... different nVidia resolutions... different TV settings... nothing worked.

I just read your post and edited xorg.conf to read:
Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: 1920x1080 { ViewPortOut=1820x1020+50+30, ViewPortIn=1920x1080 } +1600+0"

And it works perfectly!!

Definitely   8)
Timothy
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe":  Albert Einstein.

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #9 on: July 15, 2012, 12:16:41 PM »
Thank-you! Thank-you! Thank-you!
You are most welcome.

You do know that you are using scaling with your current metamode? Not saying that you should not, of course. Depends on your need (and what apps you use).

Cheers!
CJ

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 677
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #10 on: July 15, 2012, 09:18:40 PM »
This "new" overscan compensation is just over my head.  I would like to ask for some help.

I have a 47" HDMI TV that works well with the nvidia 295.xx drivers running in 1920x1080dpi mode (as shown in the nvidia settings) with an overscan compensation at 93.  However, I can't get the new drivers to display the entire view on the monitor.  I tried several lines in the xorg.conf file which only prevented the machine from booting to the kde login screen.  Obviously this operator has some errors.

I have an identical install on a second partition that is not updated to the new drivers, yet.  It works fine and shows a resolution of 1600x1000dpi (as shown in PCC), which, I think, is the same aspect ratio of 1920x1080.  I tried to set the resolution in PCC to 1600x1000 but it produced no change at all.

Can anyone recommend what I need to add to the xorg.conf file?  It was just so easy in the old driver file.  Simply slide the bar over a little and it worked fine.  How this new driver file can be considered an improvement is beyond me.

Any ideas or suggestions are welcome.
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Many Linux OS's
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE64, NVIDIA N220GT HDMI
Server: Devuan-Jessie (Mate), Intel 3.4ghz X2, 4GB RAM, Headless - VMs, LAMP, FTP, Samba, Print, PXE, BT
Router: Tomato firmware (Linux)

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #11 on: July 16, 2012, 05:14:36 AM »
nixer, could you post the output from command 'xrandr' so we can see what displays you have connected?

Cheers!
CJ

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 677
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #12 on: July 16, 2012, 05:51:23 AM »
Sure, here goes:

Quote
[craig@HTPC ~]$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 8192 x 8192
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1600mm x 900mm
   1920x1080      60.0*+   59.9     24.0     30.0     30.0
   1440x480       30.0
   1280x1024      60.0
   1280x720       60.0     59.9
   1024x768       60.0
   800x600        60.3
   720x480        59.9     30.0
   640x480        59.9     59.9

And thanks for your help. 
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Many Linux OS's
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE64, NVIDIA N220GT HDMI
Server: Devuan-Jessie (Mate), Intel 3.4ghz X2, 4GB RAM, Headless - VMs, LAMP, FTP, Samba, Print, PXE, BT
Router: Tomato firmware (Linux)

Offline CJ

  • Hero Member
  • ********
  • Posts: 1060
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #13 on: July 16, 2012, 05:53:52 AM »
I only see one (the HDMI) display connected; I understood your post to mean that you had a TV (HDMI) and a monitor connected. Did I misunderstand?

Cheers!
CJ

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 677
Re: [SOLVED] New Nvidia driver - no overscan compensation?
« Reply #14 on: July 16, 2012, 05:55:55 AM »
Yes, sorry for the misunderstanding.  I only have the HDMI TV acting as a monitor.
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Many Linux OS's
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE64, NVIDIA N220GT HDMI
Server: Devuan-Jessie (Mate), Intel 3.4ghz X2, 4GB RAM, Headless - VMs, LAMP, FTP, Samba, Print, PXE, BT
Router: Tomato firmware (Linux)