Maybe i am not good enough to understand a C-Code.Brendan wrote:Hi,You can find some information for some cards (mostly Intel and AMD), and Linux does have some source code for almost every video card (e.g. based on reverse engineering where information isn't available).freecrac wrote:Yes, specally if there is no documentation about how we can do it.Brendan wrote:Writing native video drivers is a nightmare - best to leave that for "version 2" of your OS...
Samples for a nacked skeleton of a sourcecode for a future driver for DOS exist and can be found in the web.
But where we can find more deeeper informations about our hardware and how we can use all function of it without to involve a (close source) driver?
I have looked many times and a lot of hours, but i could not find informations inside of the linux sources for the secondary display device.
Are you sure that those information in the linux sources exist?
But additional there must be a routine to handle modeswitching of both display devices.However, if you're considering this then you probably fail to grasp the complexities involved. For example, implementing a modern video driver typically includes implementing some sort of "shader language" compiler for that video card.
Looking to the windows driver from ATI and from NVIDIA in the past we can use one driver for a lot of card generations and not only for one card.
So i think it is possible there is the same procedur for modeswitching for a lot of cards from the same manufacturer too, because i can not believe that they fabricate for every comming new card modell a totaly new implementation for that.
But nobody wish that they spend a lot of time and money for that, but i think if there is only one stuff Member of each manufacturer for to write those documentation, it is not so expensive and will not so much raise their running charges.I honestly don't know why companies like NVidia fail to provide any information. They say "trade secrets" but I don't believe them, and it's more likely that they're just too lazy to spend ages documenting things properly (and handling mistakes in the documentation, updates/revisions, etc).freecrac wrote:And why those old informations about bare 2D-functions are not exist for public usement, how can anybody be a problem with this for those big manufacturers if they publish these informations?
And i think their so called "trade secrets" are also under patent protection and if somebody try to sell those technicals, then they will become a lawsuit for to stop those comercial on the market. Otherwise there is no great market to become a dangerous situation for the few big global players in this sector.
For backward compatibility we need only an older VGA-BIOS. And the VBE versions are also not realy compatible among themeself.For backward compatibility; and because the BIOS requires something it can use during POST to display errors, etc to the user.freecrac wrote:And if the manufacturers do not longer want to provide all those old RealMode stuff, why do they put a vbe-bios on their modern cards?
VBE 1 use only the older outdated modelist/modenumbers and newer cards with a VBE2 or VBE 3 bios maybe come with different modenumbers.
Example: These older VBE 1 modenumbers do not exist on my newest Sapphire 7950(GPU from ATI) card with a VBE 3 bios.
112h - 640x480 16.8M (8:8:8)
115h - 800x600 16.8M (8:8:8)
118h - 1024x768 16.8M (8:8:8)
11Bh - 1280x1024 16.8M (8:8:8)
And there are also no other VBE-modes with 24 bits per pixel, there are only modes with 8, 16 and 32 Bits per pixel.
Also in the the resolution of 640x480, 800x600, 1024x768 and 1280x1024, but with other modenumbers.
(No really a problem for me, because i do not like to use 24 Bits per pixel and i can not understand why those modes even longer exist today on cards with more then enough videoram for to use 32 bits per pixel with all resolutions of the card.
24 Bit per pixel was only usefull a long time ago, example with my ET4000 card with only 1 MB videoram, for to use 640x480x24 at the first time of programming true color modes.)
I look at this with mingled feelings, but i am not familar with this. But i read there is a compatibility mode for to start in the 16 Bit RM.Eventually the BIOS will die, and video card manufacturers will put "UEFI byte-code drivers" in their card's ROM instead.
It was only my idle curiosity for to do that, also looking for the name of the manufacturer and the modell number for to identify a card, thinking of a situation when somebody do not know it.I have no idea why you'd want to do that in the first place - just use the correct VBE function correctly.freecrac wrote:Edit: I search for the vbe modelist inside of the bios starting at C000:0, but i could not find it there. Maybe the modelist is stored in a different form.
But i never try to scan the PCI-Bus for comparing the content with a (never ending?) list of devices, or for to control them particular over it.
Dirk