Bug 1050 - xrandr should set screen physical size to avoid incorrect dpi
Summary: xrandr should set screen physical size to avoid incorrect dpi
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) All
: high trivial
Assignee: Xorg Project Team
QA Contact:
Depends on:
Blocks: 351
  Show dependency treegraph
Reported: 2004-08-11 17:29 UTC by Aaron Plattner
Modified: 2004-08-12 18:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Patch to set screen physical size (2.99 KB, patch)
2004-08-11 17:33 UTC, Aaron Plattner
no flags Details | Splinter Review

Description Aaron Plattner 2004-08-11 17:29:35 UTC
For rotation, randr needs to swap the screen's physical dimensions to avoid
changing the dpi.
Comment 1 Aaron Plattner 2004-08-11 17:33:41 UTC
Created attachment 611 [details] [review]
Patch to set screen physical size

This patch stores the screen's original physical size in the randr screen
private, uses that to set the physical size in the modes reported by xrandr,
and then uses those sizes (appropriately rotated) to set the new size on randr
Comment 2 Søren Sandmann Pedersen 2004-08-13 11:28:25 UTC
Fri Aug 13 19:53:10 2004  Soeren Sandmann  <sandmann@redhat.com>

	* programs/Xserver/hw/xfree86/drivers/mga/mga_storm.c
	(MGAStormSync): Fix for lockups on some versions of Matrox
	Mystique. #687, Patch from Mike Harris.

	* programs/Xserver/hw/xfree86/common/xf86RandR.c
	(xf86RandRSetMode): Call xf86EnableDisableFBAccess though the
	function pointer instead of directly. #1041, Patch from Aaron Plattner.

	* programs/Xserver/hw/xfree86/common/xf86RandR.c: Swap the
	phsyical size of the screen when rotiation. #1050, Patch from
	Aaron Plattner.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.