LinHES Forums
http://forum.linhes.org/

r5e50 anyone know how to get displaysize working
http://forum.linhes.org/viewtopic.php?f=6&t=13219
Page 1 of 2

Author:  simonf [ Mon Jan 01, 2007 11:42 am ]
Post subject:  r5e50 anyone know how to get displaysize working

Happy New Year everyone.

In my old D1 system i used DisplaySize to get my font size correct and more importantly my aspect ratio.

In my new E50 system DisplaySize dosnt do anything??

I have edited my xorg.conf as below

Code:
Section "Monitor"
    DisplaySize   624   390
   Identifier   "Monitor0"
   Option   "DPMS"   "true"
#   Option "UseEdidDpi" "TRUE"
#   Option "DPI" "100 x 100"
   VendorName   "MEI"
   ModelName   "MEIa016"


Dosn't make any different what I set the displaysize to it dosnt make a difference to the picture size.

I tried to copy my old monitor section out of my old conf file and just got a no signal also no picture on the console so i had to copy the ond one back with webmin.

I have a nvidea 6200 with the default drivers loaded ??
And a 42" panasonic plasma 16x10 ratio.

SimonF

Author:  tjc [ Mon Jan 01, 2007 12:42 pm ]
Post subject: 

Using DisplaySize was just a hack to get the desired DPI setting, it's deprecated or removed in more recent X servers. Go back and reenable the DPI settings that you commented out, and possibly change it to 75x75 or whatever. I think there is a similar option for AspectRatio but don't know it off the top of my head. Reading the Nvidia driver docs should tell you.

Author:  simonf [ Mon Jan 01, 2007 6:31 pm ]
Post subject:  Still struggling

Anyone else got the aspect ratio working in r5e50 yet on a widescreen plasma or lcd ??

I have tried changing the dpi settings and it just seems to ignore them any ideas ??


my xorg.conf
Code:
Section "Monitor"
#    DisplaySize   312   195
   Identifier   "Monitor0"
   Option   "DPMS"   "true"
   Option "UseEdidDpi" "true"
   Option "DPI" "75 x 75"
   VendorName   "MEI"
   ModelName   "MEIa016"

   #   HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
   HorizSync    28.0 - 96.0 # Warning: This may fry old Monitors
   VertRefresh  50.0 - 75.0 # Very conservative. May flicker.
#   VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
   #  Default modes distilled from


My Xorg.Log

Code:
(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "UseEdidDpi" "true"
(**) NVIDIA(0): Option "DPI" "75 x 75"
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): NVIDIA GPU GeForce 6200 TurboCache(TM) at PCI:2:0:0
(--) NVIDIA(0): VideoRAM: 524288 kBytes
(--) NVIDIA(0): VideoBIOS: 05.44.02.33.02
(II) NVIDIA(0): Detected PCI Express Link width: 4X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 6200 TurboCache(TM) at
(--) NVIDIA(0):     PCI:2:0:0:
(--) NVIDIA(0):     Panasonic TH-42P**6 (CRT-0)
(--) NVIDIA(0): Panasonic TH-42P**6 (CRT-0): 400.0 MHz maximum pixel clock
(II) NVIDIA(0): Assigned Display Device: CRT-0
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "1024x768"
(II) NVIDIA(0):     "800x600"
(II) NVIDIA(0):     "640x480"
(II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
(++) NVIDIA(0): DPI set to (100, 100); computed from -dpi X commandline option
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:


I run xdpyinfo and get

Code:
dimensions 1024x768 (260x195 mm)
res: 100x100 dots per inch


no matter what i change the DPI option to i always get these results

Come back displaysize all is forgiven !!!!!!

Author:  tjc [ Mon Jan 01, 2007 7:55 pm ]
Post subject: 

Ah... Looks like you need to disable EID detection (aka DDC probing). The settings autodetected from the monitor are overriding your manual settings. See the Nvidia driver documentation here for the correct options:
Code:
gzip -dc /usr/share/doc/nvidia-glx/README.txt.gz | more

Memory says they're way out near the end in Appendix F, G, or H...

Author:  simonf [ Tue Jan 02, 2007 7:57 am ]
Post subject:  Already tried with eid off and on will search the docs

Yes tjc I had already tried with eid on and off to no avail ??

it says its using the command line parameters to calculate te dPI do we know where they are ???

Author:  simonf [ Tue Jan 02, 2007 9:24 am ]
Post subject:  Where is the command line that runs X

Ok according to the nvidia docs the dpi setting will firstly get it from edi if enabled

Then from the option in the option "DPI"

or default to 75X75

but it is overiden by the command line options

what i dont know is where these are to remove or change them

so no mattter what i put in my xorg.conf file the settings are ignored



Code:
Appendix Y. Dots Per Inch
______________________________________________________________________________

DPI (Dots Per Inch), also known as PPI (Pixels Per Inch), is a property of an
X screen that describes the physical size of pixels. Some X applications, such
as xterm, can use the DPI of an X screen to determine how large (in pixels) to
draw an object in order for that object to be displayed at the desired
physical size on the display device.

You can query the DPI of your X screen by running:


    % xdpyinfo | grep -B1 dot


which should generate output like this:


    dimensions:    1280x1024 pixels (382x302 millimeters)
    resolution:    85x86 dots per inch



The NVIDIA X driver performs several steps to determine the DPI of each X
screen:


   o If the display device provides an EDID, and the EDID contains information
     about the physical size of the display device, that is used to compute
     the DPI. If multiple display devices are used by this X screen, then the
     NVIDIA X screen will choose which display device to use. You can override
     this with the "UseEdidDpi" X configuration option: you can specify a
     particular display device to use; e.g.:
     
         Option "UseEdidDpi" "DFP-1"
     
     or disable EDID-computed DPI by setting this option to false:
     
         Option "UseEdidDpi" "FALSE"
     
     EDID-based DPI computation is enabled by default when an EDID is
     available.

   o If the "-dpi" commandline option to the X server is specified, that is
     used to set the DPI (see `X -h` for details). This will override the
     "UseEdidDpi" option.

   o If the "DPI" X configuration option is specified (see Appendix D for
     details), that will be used to set the DPI. This will override the
     "UseEdidDpi" option.

   o If none of the above are available, then the "DisplaySize" X config file
     Monitor section information will be used to determine the DPI, if
     provided; see the xorg.conf or XF86Config man pages for details.

   o If none of the above are available, the DPI defaults to 75x75.


You can find how the NVIDIA X driver determined the DPI by looking in your X
log file. There will be a line that looks something like the following:

    (--) NVIDIA(0): DPI set to (101, 101); computed from "UseEdidDpi" X config
option


Note that the physical size of the X screen, as reported through `xdpyinfo` is
computed based on the DPI and the size of the X screen in pixels.

The DPI of an X screen can be confusing when TwinView is enabled: with
TwinView, multiple display devices (possibly with different DPIs) display
portions of the same X screen, yet DPI can only be advertised from the X
server to the X application with X screen granularity. Solutions for this
include:


   o Use separate X screens, rather than TwinView; see Appendix P for details.

   o Experiment with different DPI settings to find a DPI that is suitable for
     both display devices.



Author:  red321 [ Tue Jan 02, 2007 9:40 am ]
Post subject: 

I have exactly the same problem.

What does mythtv itself use to determine the screens aspect ratio ?

EDIT:

Ok found it, the overide is coming from

Quote:
h-3.1$ more /etc/X11/xinit/xserverrc
#!/bin/sh

# $Id: xserverrc 189 2005-06-11 00:04:27Z branden $

exec /usr/bin/X11/X -dpi 100 -nolisten tcp


if you remove the -dpi 100, then the dpi is set by xorg.conf. Priority is giveb to the explicit DPI entry, and if that doesnt exist, DisplaySize is used.

Author:  simonf [ Tue Jan 02, 2007 12:10 pm ]
Post subject:  Thanks red321 now working

Yes all

To be able to use

option DPI

or

Option "UseEdidDpi"

You need to remove -dpi 100 from /etc/X11/xinit/xserverrc

Quote:
h-3.1$ more /etc/X11/xinit/xserverrc
#!/bin/sh

# $Id: xserverrc 189 2005-06-11 00:04:27Z branden $

exec /usr/bin/X11/X -dpi 100 -nolisten tcp

Thanks ALL

Author:  aa1979 [ Tue Jan 02, 2007 11:35 pm ]
Post subject: 

Is this fix required for any Nvidia card to display 16:9 properly? If so, it should be added to tjc's E50 hints and hazards thread.

Author:  simonf [ Wed Jan 03, 2007 7:19 am ]
Post subject:  aa 1979 It sure is

Yes this is the fix for changing the aspect ratio on your nvidia card.



You need to remove -dpi 100 from /etc/X11/xinit/xserverrc

Quote:
Code:
#!/bin/sh

# $Id: xserverrc 189 2005-06-11 00:04:27Z branden $

exec /usr/bin/X11/X -dpi 100 -nolisten tcp


then edit /etc/X11/xorg.conf

adding an option "DPI" line to the "monitor" section

Code:
Section "Monitor"
#    DisplaySize   312   195
   Identifier   "Monitor0"
   Option   "DPMS"   "true"
   Option "UseEdidDpi" "false"
   Option "DPI" "78 x 100"
   VendorName   "MEI"
   ModelName   "MEIa016"


I had to play arround with the x and y values till the fonts were the right size and the standard tv pictures were full screen.

always use a standard tv picture to set it up as Films are a wider aspect ratio and should normaly have a black band top and bottom.

Author:  aa1979 [ Wed Jan 03, 2007 1:13 pm ]
Post subject: 

Does DisplaySize work when the -dpi 100 is removed? That's a slightly more concrete value and doesn't require trial-and-error to get the aspect ratio right.

Author:  simonf [ Wed Jan 03, 2007 2:29 pm ]
Post subject:  has displaysize beed demoted

aa1979 I will give it a try for you but I think tjc said displaysize had been removed.

if you try it yourself be sure you have a way to get back into your box if it dosn't come back

Author:  aa1979 [ Fri Jan 05, 2007 12:12 am ]
Post subject: 

Okay, oddly enough, now that I got enough courage to install R5E30, it works just fine in 16:9 for me with the stock xorg.conf - I only changed the resolution and added my custom modeline. Maybe it wasn't working for yours because your display is 16:10?

Author:  simonf [ Fri Jan 05, 2007 1:48 pm ]
Post subject:  hi aa1979

If youre modeline is 16:9 it will work.

IE

1280X800 etc it will work out of the box!

The problem is I lost my modeline so I was using 1024x768 which is a 4:3 ratio so myth thought I had a 4:3 screen

Author:  finger51 [ Fri May 11, 2007 10:46 am ]
Post subject:  Re: aa 1979 It sure is

simonf wrote:
You need to remove -dpi 100 from /etc/X11/xinit/xserverrc

Quote:
Code:
#!/bin/sh

# $Id: xserverrc 189 2005-06-11 00:04:27Z branden $

exec /usr/bin/X11/X -dpi 100 -nolisten tcp




sorry to whip a dead horse- I just want to be certain. . when you say remove '-dpi 100' do you mean the whole line is to be commented out or just to delete the actual text '-dpi 100' ??
thanks for response.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/