2000-11-03 18:51:37

by Petr Vandrovec

[permalink] [raw]
Subject: Re: [linux-fbdev] [PATCH] fbcon->vgacon->fbcon

On 3 Nov 00 at 17:20, James Simmons wrote:

> > > I know. I wanted for vgacon to reset the video mode itself. This way ANY
> > > fbdev driver can go back top vgacon.
> >
> > That won't be possible because returning to VGA text mode is chip-specific.
>
> From what I see in the XF4.0 tree you can. I will find out today with me
> working on the tdfx driver.

Yes, you can for example run BIOS initialization. In sandbox with x86
emulator ;-) It is much easier, and much safer, require for 2.5 that
driver has to switch hardware to VGA mode on unload if hardware was
in VGA mode before start, and if it is primary device in the box.

For post-Millennium Matrox hardware, it is as simple as
'outw(0x0003, 0x03DE);' (if you did not ask for disable VGA I/O & disable
VGA BIOS in matroxfb params. And if you asked... you probably know why
better than driver).
Best regards,
Petr Vandrovec
[email protected]