Question Locked

Get the XP video system back to unprotected, dos-text-mode w/o reboot?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have written a driver that hooks the very last thing before windows turns off the power during a windows shutdown (xp, 2000 so far... others to follow). Just before we start our special dedicated code (long story, but we need to do it this way for this hardware control), we need to get the video subsystem into power-up condition (unprotected, VGA text-mode 80x25 with the text buffer in the standard place in upper memory). (We won't be running DOS, BTW, in case that's a question- just our dedicated code).

I am concerned about all the video bios's out there that may not have a standardized way of doing this once the windows driver has monkeyed with the video chips.

Does anyone know of a consistent, reliable way to do this? It is OK if we have the windows driver do it as we hook windows during the power-down process, but it doesn't seem to work that way in our experiments...

Thanks-
Doug

5 replies

by Former member

I just put it there in case you might be interested.
Disable the on-board USB Controllers or just the "legacy" part in your BIOS.
Try the EMM=B=2FE0 in CONFIG.NT and see if that works to resolve the problem

http://www.dosbox.com/

Please post back if you have any more problems or questions.

by douga

Hi-

Thanks for the suggestion and the link- we will definitely look at those.
.
Part of the problem is that we don't want to touch the user's hard drive or config files... we just install the application and this driver. The driver hooks the windows shutdown so it takes all the hardware offline and closes all windows tasks, then our driver gets control just before power-off. We have previously loaded an image of our application into memory and locked it, but when we execute it we need to be able to use the video system without windows involved (the application has to assume a virgin video system, unfortunately). When our app is all done, we execute a reboot of windows to restore everything back to normal.

The problem is that we haven't found a consistent way to get the hardware back to a non-windows state without a full system reboot and we need to be able to do it programmatically from within our windows driver.

The first step (and maybe all we need) is to get the video system back to virgin power-up (pre-windows) state via software in our driver at ring-0. This is the reason we hook the driver at the last possible place in the windows shutdown process so we don't accidentally hurt anything in windows that may still be needing any windows services or hardware.

Does dosbox do things with the video driver hardware in full screen mode? Perhaps they have worked out the solution to this problem already...? If the video hardware can reliably be put into a power-up virgin condition, we are well on our way of solving the problem.
:-)

Thanks again-
any help and ideas are appreciated.
-Doug

by Former member

Every computer is different in the way of set up and configuration so it might be what you are looking for.

Please post back if you have any more problems or questions.

by douga

Hi again-

I appreciate your comments and we will play with the USB thoughts as you have suggested, but I am thinking that there may be a misunderstanding of the problem we are trying to solve:

Changing USB things doesn't change the video mode to the mode we need. We need the video chipset to be in virgin text mode so we can put text into the video buffer area (text mode)and have it display on the screen. We have not found a reliable way of putting the video chipset into that mode in software. I am not seeing how changing the USB affects the video mode... ???

This discussion is closed to new replies.