Bug#291850: Ogle gets screen aspect ratio wrong.

2006-02-09 Thread Yuya Nishihara
  geometry_srcX11/geometry_src
  resolution_srcX11/resolution_src
 This will make ogle fullscreen across both screens,

Yes, but if window manager supports Xinerama, ogle fullscreen
appears in one display. (tested on KDE and Fluxbox.)

 and it will not get the correct aspect if you have monitors of different
 physical aspect and or resolution.

To be more exact, monitors of different x-y ratio of each physical pixel.
X11 seems to recalculate the physical dimension of Xinerama screen 
based on the first screen's dpi value.

In my case, xdpyinfo reports:
 screen #0:
   print screen:no
   dimensions:2304x1024 pixels (649x271 millimeters)
   resolution:90x96 dots per inch

Real dimensions are:
First monitor: 1280x1024 (360x270 mm)
Second one: 1024x768 (300x225 mm)

The physical width of Xinerama screen reported by X11 is not the real one,
but the one of the first monitor virtually expanded to 2304 pixels.

Though it does not solve the essentail problem, seems not so bad.

Yuya.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#291850: Ogle gets screen aspect ratio wrong.

2006-02-07 Thread Bj|rn Englund
Tue Feb 07 2006, Yuya Nishihara wrote:

   It seems to be caused by /etc/oglerc, which says:
- geometry from X11
- but resolution from Xinerama (each screen)
 
   By changin these line as follows, or just making comment-outed,
 the problem can be fixed.
 
 geometry_srcX11/geometry_src
 resolution_srcX11/resolution_src
This will make ogle fullscreen across both screens, and it
will not get the correct aspect if you have monitors of different
physical aspect and or resolution.
 

The real problem is that there is no way to get
the geometry (physical size / aspect) of the different monitors when running
Xinerama. You can get the resolution for the different monitors from the
Xinerama extension but not the geometry.

To be able to fullscreen to just one monitor you need to have resolution_src
set to Xinerama. If set to X11 ogle will fullscreen across all screens.

To get the correct aspect, set the geometry_src to user and enter the
physical size of the monitor (in millimeters, if not exact, at least the
correct physical aspect width 400 height 300 for a 4:3 monitor and
1600,900 for a 16:9 monitor) in the geometry and keep resolution_src
at Xinerama.
If you have two monitors with different aspect 16:9 and 4:3 for example
then you need to enter the geometry of the one you fullscreen to.

If you know a way to get the geometry of the different monitors when
running Xinerama please tell me and I'll add it.

/Bj|rn


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#291850: Ogle gets screen aspect ratio wrong.

2006-02-06 Thread Yuya Nishihara
 So Ogle gets the resolution from one place, and the geometry from
 anohter? Couldn't that be fixed so that it's consistent?

 Xdpyinfo reports:

 screen #0:
   dimensions:3072x768 pixels (906x232 millimeters)
   resolution:86x84 dots per inch

 which gives just about the right aspect ratio...

  I had the same problem.

  It seems to be caused by /etc/oglerc, which says:
   - geometry from X11
   - but resolution from Xinerama (each screen)

  By changin these line as follows, or just making comment-outed,
the problem can be fixed.

geometry_srcX11/geometry_src
resolution_srcX11/resolution_src


ii  ogle-mmx 0.9.2-2.3DVD player with support for DVD 
menus
ii  x-window-system-core 6.8.2.dfsg.1-11  X Window System core components


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#291850: Ogle gets screen aspect ratio wrong.

2005-01-23 Thread Rogier Wolff
Package: Ogle
Version 0.9.2-2


Ogle gets my screen aspect ratio completely wrong. It results in a very
skinny ogle window. 

I have 3 1024x768 monitors configured side-by-side, so the widht of my
screen is 90.6 cm, and the height about 23.2 cm That's correct. But if
you reason that way, the horizontal pixels should be 3072. 

when running ogle with --debug I get:

Debug[ogle_vout]: set_sync_point()
Note[ogle_vout]: using default config for ':0.0'
Note[ogle_vout]: Using 'X11' as source for geometry
Note[ogle_vout]: Using 'Xinerama' as source for resolution
Note[ogle_vout]: Display w: 906, h: 232, hp: 1024, vp: 768
^^
Note[ogle_vout]: Display sar: 237568/695808 = 0.341428
Note[ogle_vout]: Found 4 matching visuals, using visual id: 23
Note[ogle_vout]: Found Xv extension 2.2, checking for suitable adaptors
Note[ogle_vout]: Xv adaptor Matrox G-Series Backend Scaler port 61 image 
format 842094169
Debug[ogle_vout]: resize: 349, 768
Debug[ogle_vout]: resize: 349, 766


Someone with more XV, xinerama and such knowledge should look into
this, to decide which one is wrong. I'm guessing that the w and h
parameters are gotten from a slightly different place than hp and
vp so that they don't match.

For my own purposes I'm guessing that after putting w /= 3; to 
the right spot in 
./mpeg2_video/video_output_x11.c

I'll be a happy man :-)

(I'm Using debian-sarge). 

Roger. 

-- 
** [EMAIL PROTECTED] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. - Adapted from lxrbot FAQ


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#291850: Ogle gets screen aspect ratio wrong.

2005-01-23 Thread Rogier Wolff
On Mon, Jan 24, 2005 at 12:02:11AM +0100, Martin Norb?ck wrote:
 On Sun, Jan 23, 2005 at 05:49:27PM +0100, Rogier Wolff wrote:
  I have 3 1024x768 monitors configured side-by-side, so the widht of my
  screen is 90.6 cm, and the height about 23.2 cm That's correct. But if
  you reason that way, the horizontal pixels should be 3072. 
 
 You can fix this in oglerc.
 
 Change geometry_src from 'X11' to 'user'
 Set the width and height of the monitor you want to watch on
 in geometry with width and heigth.
 For a 4:3 monitor you can use something like:
  geometry
   width400/width
   height300/height
  /geometry
 
 Getting these things right with xinerama is tricky.

Ok. That seems to work. Thanks!.

So Ogle gets the resolution from one place, and the geometry from
anohter? Couldn't that be fixed so that it's consistent?

Xdpyinfo reports: 

screen #0:
  dimensions:3072x768 pixels (906x232 millimeters)
  resolution:86x84 dots per inch

which gives just about the right aspect ratio... Somewhere Ogle is
trying to be smart, possibly working around a bug in older Xserver
where the size would be misreported or something.

Roger. 

-- 
** [EMAIL PROTECTED] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. - Adapted from lxrbot FAQ


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]