Pivot monitor support on driver level?

AmigaOS users can make feature requests in this forum.
amifrog
Posts: 13
Joined: Thu Feb 02, 2017 11:12 am

Pivot monitor support on driver level?

Post by amifrog »

I've asked this in another forum already but this might be the right spot to suggest a feature i would like to see in AOS4:

The support of pivot monitors.

That is when you turn a monitor to 90° or 270° and the screenmode handling software should recognize this, maybe after a reboot but optimaly of course onthefly.

I realize this is not easily done with a different width and height resolution swap but with a different way how the driver 'paint' the display contens.

What are your thoughts about this?

https://en.wikipedia.org/wiki/Page_orie ... on_methods

Edit
I've learned that the orientation of input/output of mouse coords x&y also has to be swapped. Input.device and stuff....
Last edited by amifrog on Wed Aug 09, 2017 1:11 am, edited 3 times in total.

User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1415
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Pivot monitor support on driver level?

Post by tonyw »

How can the driver know the orientation of the display? Does the DDC data stream include an indicator from a built-in accelerometer?
cheers
tony

amifrog
Posts: 13
Joined: Thu Feb 02, 2017 11:12 am

Re: Pivot monitor support on driver level?

Post by amifrog »

When the Monitor type/name is known to the system (e.g. the display driver), an 'instant' swap of displaywidth and -height could be an indication of a rotated monitor. This rotation has to be checked, of course. Maybe the monitor itself reports this via communication channels on the display bus?
https://touch-base.com/documentation/Rotate.htm

amifrog
Posts: 13
Joined: Thu Feb 02, 2017 11:12 am

Re: Pivot monitor support on driver level?

Post by amifrog »

I don't really know what to look for, but
googling
'dvi display orientation detection' brings up alot of stuff. Maybe this helps?

I cannot provide any h/w informations about monitors and their communication, sorry.

User avatar
Raziel
Posts: 935
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Pivot monitor support on driver level?

Post by Raziel »

Don't hold your breath, this feature is probably not even on any todo list anyway
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg

amifrog
Posts: 13
Joined: Thu Feb 02, 2017 11:12 am

Re: Pivot monitor support on driver level?

Post by amifrog »

Yeah, i know.

But while implementing new features to the drivers, maybe it is recommended to add those concerns or future features onto the remarks&considerations list.;)

User avatar
Raziel
Posts: 935
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Pivot monitor support on driver level?

Post by Raziel »

amifrog wrote:Yeah, i know.

But while implementing new features to the drivers, maybe it is recommended to add those concerns or future features onto the remarks&considerations list.;)
I bet this will be a feature "that has to be done by program authors" that want this supported
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg

User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1415
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Pivot monitor support on driver level?

Post by tonyw »

I've recently been learing about EDID, the protocol used for communication between monitor and graphics device driver.

Unfortunately, nowhere in the published spec (see https://en.wikipedia.org/wiki/EDID) is monitor orientation mentioned. So I'm afraid that there appears to be no (standard) way for the software to know which way the monitor is turned. Perhaps some manufacturers have used (unused) attribute indicators in the standard for this purpose.
cheers
tony

User avatar
nbache
Beta Tester
Beta Tester
Posts: 1426
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Pivot monitor support on driver level?

Post by nbache »

tonyw wrote:Unfortunately, nowhere in the published spec (see https://en.wikipedia.org/wiki/EDID) is monitor orientation mentioned.
Just speculating: Is it possible that on other platforms this is handled by the monitor reporting a new (rotated) native resolution when it is rotated, and the driver being able to detect this change? Then we could just define screenmodes with the width and height swapped and switch to the other one.

Best regards,

Niels

User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1415
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Pivot monitor support on driver level?

Post by tonyw »

Niels, there are "reserved" fields in the specification, where manufacturers can define their own private attributes. I suspect that is how a pivoted monitor communicates with its driver. Remember that a Windows driver is usually provided by the monitor manufacturer, so they can define their own private modes and EDID data.

In order for someone else to use the orientation data, they would have to reverse-engineer the data (which shouldn't be that hard, considering that it's an open specification and only uses 127 bytes). Then you would have to decide what to do with it. If the user rotates her monitor from portrait to landscape, do they advise the tasks which created each screen? Each window? Or do they simply rotate the display and everything on it? There is no API at the moment (Picasso96 or graphics) that you could expand to cope with such an enhancement.
cheers
tony

Post Reply