Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?

Liste des GroupesRevenir à com programmer 
Sujet : Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?
De : jj4public (at) *nospam* outlook.com (JJ)
Groupes : comp.os.msdos.programmer
Date : 21. Oct 2024, 01:43:16
Autres entêtes
Organisation : To protect and to server
Message-ID : <1cs8zpj1lisv0.1g5iz11z9vxjr$.dlg@40tude.net>
References : 1 2 3 4
User-Agent : 40tude_Dialog/2.0.15.84
On Sun, 20 Oct 2024 13:56:24 +0100, Phil Ashby wrote:
 
So this question intrigued me, as I have used dual display adapters for
DOS development in the past (as mentioned above by John McCue - I was
developing a graphical application on a VGA, using Microsoft C5.1 and
their CodeView debugger on an MDA). What of modern hardware?
 
I am aware that booting my laptop (Lenovo ThinkPad E590) with the lid
shut results in the text mode boot screen (and any subsequent DOS
output) appearing on the HDMI output, so it's possible, but is it
possible after boot to switch outputs or have text mode on >1 output?
 
Fortunately my laptop has an Intel i8265U SOC with UHD 620 (Intel HD)
graphics, which is well documented in the programmers reference manuals
here:
 
https://www.intel.com/content/www/us/en/docs/graphics-for-linux/developer-reference/1-0/kaby-lake.html
 
(actually the i8265U is CoffeLake, but the graphics are the same)
 
Reading the "Display" manual (volume 12, from page 105) I see that it
has real VGA hardware, which is off to the side of the main rendering
pipelines (x3), and can be wired into Pipeline A, which is then
multiplexed into one of three Transcoders: one for the flat panel, one
back into RAM and one that can be further multiplexed to any of four
output ports, including the HDMI.
 
So one can see how the Intel HD specific BIOS wires the VGA to whichever
output port is active (eDP or HDMI) at boot, and indeed it seems
possible to switch the pipeline around by programming the multiplexers
(via PCI registers). FWIW I tried to find such code in Coreboot but got
a bit lost in their directory structure!) and I don't think my E590 is
supported yet (although Intel HD may be).

Thanks for the pointers. I actually already have downloaded the "Display"
and "PCIE Configuration Register" manuals from Intel, but for 2013 Haswell
Intel HD since it's the one for my machine.

While I've grasp the concept of VGA hardware programming, I have none yet
for multi-monitors. So I was clueless of what I should search for in the
documents, since I've searched for e.g. "secondary", "multi", "monitors",
etc. but still lead to nowhere. But thanks to your pointers, I began to
grasp how multi-monitors are handled. At least for Intel HD...

AMD's documentations are less cryptic than Intel's. So, thumbs up to them.

NVIDIA is... suck. Big time. I couldn't find any documentation for basic
display adapter hardware programming. AFAIK, NVIDIA drivers for open source
OSes such as Linux are all prorietary drivers. Maybe that's why.

Unfortunately I haven't found any standardised API (eg: UEFI-GOP, VBE)
that supports output management at the BIOS level, which would have
allowed DOS to support multi-output adapters generically.

Yes, I'm pretty sure BIOS nor VBE has any API for multi-monitors. The
technology was not popular enough back then to be standardized. There may be
some undocumented video BIOS interrupt services, but that's like a gambling.

Indeed if one
looks at the Linux DRM driver stack, there is an API there for managing
outputs, which is implemented in hardware-specific driver code (all of
which is extremely non-trivial!)
 
I guess if your laptop or whatever is supported by Coreboot, and it has
the necessary multiplxer drivers, then it /could/ export a suitable
API.. otherwise it's porting ugly chunks of Linux kernel code into DOS
as a TSR or similar, or starting again with the manuals... good luck :)
 
Phil (rabbit hole explorer :))

Those are rabbit holes indeed. :) But I have to use them too as references.

Date Sujet#  Auteur
17 Oct 24 * Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?6JJ
17 Oct 24 `* Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?5John McCue
18 Oct 24  `* Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?4JJ
18 Oct 24   +- Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?1John McCue
20 Oct 24   `* Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?2Phil Ashby
21 Oct 24    `- Re: Multi monitor on modern IntelHD/NVIDIA/AMD display adapter under DOS?1JJ

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal