[MPlayer-dev-eng] [PATCH] Pivoting

Rich Felker dalias at aerifal.cx
Fri Aug 19 21:08:24 CEST 2005


On Fri, Aug 19, 2005 at 04:40:29PM +0200, Pawe? Sakowski wrote:
> I've recently played with the screen rotation feature of RandR X server
> extension. A quick introduction to the concept: you get a 1024x1280 (in
> my case) X display, which is rotated 90 degrees before being sent to the
> monitor. You can invoke it with `xrandr -o 1` if supported by your X
> server (I had to add Option "RandRRotation" "true" to xorg.conf to make
> it work on my nvidia). It is pretty useful with pivoted TFT displays.
> 
> While such rotation is meant to be transparent to X clients, it turns
> out that MPlayer doesn't cope well with a rotated display on full screen
> (with -vo xv and a few others).
> 
> Problem #1: XF86VidModeGetModeLine returns the physical monitor's
> dimensions (1280x1024) as opposed to the logical ones returned by
> Display{Width,Height} (1024x1280). Attaching a patch that makes mplayer
> use the latter even if xf86vm is available. Note: I'm not sure if this

Display{Width,Height} will not work with vidmode changes.

> change is valid for all setups. Is there a situation where the modeline
> dimensions are more reliable than Display{Width,Height}? No other
> modeline information is being retrieved from the call to
> XF86VidModeGetModeLine. Note #2: I don't have Xinerama available, so I
> don't know how XineramaQueryScreens copes with rotated screens.
> 
> Problem #2: aspect.c sets monitor_aspect to the fixed value of 4:3,
> unless overridden by command line or config file. It's a pretty
> arbitrary value, and it's wrong for my monitor (which has aspect ratio

This has been discussed before. If you want it different, override it
in your config file.

Rich




More information about the MPlayer-dev-eng mailing list