public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-09-23 20:52 Stas Sergeev
  2002-09-23 21:14 ` Bart Oldeman
  2002-09-24 10:31 ` phrostie
  0 siblings, 2 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-09-23 20:52 UTC (permalink / raw)
  To: linux-msdos

Hello.

phrostie wrote:
>> not support this video card and does not open up enough ports.
>  what ports?
>  could you expand on this part?
>  i have a S3
For S3 cards you must not worry about this issue
at all. Setting $_chipset="s3" worked for my S3 Trio
flawlessly both for VGA and VESA modes. Don't remember
about setting $_chipset="plainvga", but I think it could
work as well.
This problem exists only on some (modern?) cards for VESA
modes, but for VGA modes there must be no such problem at
all (Bart, do you really have any examples when this is a
problem even for VGA? Correct me then, please).
To verify if you have this "port" problem, just start your
DOS prog under WinNT. If it can't set mode also there, then
yes, you have this problem (I bet you don't have it with
S3 though). Unfortunately opening the ports doesn't always
help: still no VESA modes on my Radeon7500, but VGA works
perfectly. Thinking about returning my old S3...


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-10-04  4:22 Stas Sergeev
  0 siblings, 0 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-10-04  4:22 UTC (permalink / raw)
  To: linux-msdos; +Cc: phrostie

Hello.

phrostie wrote:
> an update i did finally get dosemu working.
What update you did and where was the problem
at the end?

> keen 4 and above still lock up.
Update your keen. See this:
http://marc.theaimsgroup.com/?l=linux-msdos&m=103211907106200&w=2


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-09-24 13:20 Stas Sergeev
  0 siblings, 0 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-09-24 13:20 UTC (permalink / raw)
  To: linux-msdos

Hello.

phrostie wrote:
> last night i was going thru the different runtime options, but 
> regardless of
> what i try i still can't seem to get any of my VGA stuff working again.
Then create a log of video events (-D9+v option
to dosemu) and see what's going wrong.
And upgrade your dosemu: something suggests me
that you are using one of those 1.0.x versions,
hence the problems.
And what version of util-linux package do you
have? There were a lot of broken versions, where
/bin/login doesn't set a console ownership for the
login shell process. No graphics also in that case.


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-09-24  1:20 Stas Sergeev
  2002-09-24  2:18 ` Bart Oldeman
  0 siblings, 1 reply; 26+ messages in thread
From: Stas Sergeev @ 2002-09-24  1:20 UTC (permalink / raw)
  To: linux-msdos

Hello.

Bart Oldeman wrote:
>> > c000:0003
>> Where does it do that? I have found only
>> init_vga_card(), but that doesn't seem to be
>> the place. Also I searched the +g log for
>> c000:0003 and found nothing... 
>  src/base/bios/bios.S, line 507, F800:4200. 
>  init_vga_card() pushes f800:4200 on the stack as cs:ip, so that is what
>  DOSEMU gets to execute in the next vm86().
Which means that I've found the proper place not
even realising it:)
Now I also tried to nop out the hardcoded call
directly in bios.S - same effect - no graphics
modes, no even any other text modes, terminal
chars here etc. Only the progs that are setting
modes directly via ports are still working.
Doing the reset call from within DOS brings
everything back in a sane state.
Just wondering, why this reset is needed so badly?

>> > Some people reported black screens, or even machines hanging which
>> > happens when the VBIOS init routine is called.
>> Of course, that was me:) But does the problem still
>> exist after 1.1.3.1?
>  Maybe, maybe not?
Hmm, my point was that having only the VGA regs
in hands, it is not possible to lock up the entire
system. Or is it? But then it would be possible
to lock also NT, isn't it?

> It wasn't clear to me whether they used terminal mode or not. Probably
> missed something :(
Well, at least the vbios init was not passed, hence
the term chars.

>> list:( That is why, I think, XFree 3.3.6 or 4.1 are not
>> able to set any VESA modes, but not the 4.2, which can!
>  using VBE 3.0?
What advantages of VBE 3 are you suspecting?
Any chances to find this out without looking into an
XFree sources? Oh well, I just have to look there and
find out all the answers myself, but it is a big pain to
download the entire XFree sources...
Btw, I also played with LRMI package. There is a
program to set the VESA modes. It does iopl(3) and
then int10 in vm86(). Locks up as well...


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-09-23 22:12 Stas Sergeev
  2002-09-23 23:11 ` Bart Oldeman
  0 siblings, 1 reply; 26+ messages in thread
From: Stas Sergeev @ 2002-09-23 22:12 UTC (permalink / raw)
  To: linux-msdos

Hello.

Bart Oldeman wrote:
> Well VGA only uses standard ports so the only problem is to pass the
> VBIOS initialization in the first place, that is executing the code at
> c000:0003
Where does it do that? I have found only
init_vga_card(), but that doesn't seem to be
the place. Also I searched the +g log for
c000:0003 and found nothing...

> On some graphics cards
> this init routine requires additional open ports and maybe even
Yes, my Radeon is trying, but only if all the
extra ports are *disabled*, it works.

> Some people reported black screens, or even machines hanging which
> happens when the VBIOS init routine is called.
Of course, that was me:) But does the problem still
exist after 1.1.3.1?
Anyway, no one of the people that started that thread,
had lock-ups on startup, they just have dosemu in a terminal
mode (should it display graphics then? :), why do you
think it can by any chance be the same problem?

> Maybe by just bypassing the VBIOS init you can avoid this problem; I
> just have never looked into that possibility.
I tried to comment out the end of the init_vga_card()
(which seems to call int10 but for what?) and dosemu
started fine and without the card logo. However none
of the video modes (including VGA) were available.
Have to figure out why yet.

> The VBE 2.0 spec defines a protected mode interface - if DOSEMU would
> use that it could ask which ports should be used and opened.
If everything could be so easy... I tried this already
and my Radeon is completely silent, returning an empty
list:( That is why, I think, XFree 3.3.6 or 4.1 are not
able to set any VESA modes, but not the 4.2, which can!


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-09-21 22:43 Stas Sergeev
  0 siblings, 0 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-09-21 22:43 UTC (permalink / raw)
  To: linux-msdos

Hello.

Bart Oldeman wrote:
> your problem is mostly not video shadowing
I tried this privately already - doesn't work:)

> but just that DOSEMU does
> not support this video card and does not open up enough ports.
Note however that this must not be the case for
VGA modes.
And esp. if the person have a terminal chars in
a dos box (which most likely means that the video
bios was not even mapped in), yet have a text-based
progs working.

> ports it tries to access and dosemu doesn't understand. You can enable
> then in the "ports" section.
If someone could explain why this method works
no more with the modern cards, I would be very happy.
What you now get opening these ports, is a hard lock-up:(

> Stas tried hard to get
> DOSEMU working on his ATI Radeon, and Vesa modes do not work for him.
But not all hopes are lost here: now XFree 4.2 can set
any vesa mode on my Radeon, while 4.1 couldn't. So at least now
I know that getting VESA to work again is somehow possible,
probably by stealing some code from XFree.


^ permalink raw reply	[flat|nested] 26+ messages in thread
* please explain to me why video/bios shadowing must be disabled to use graphics...
@ 2002-09-09  4:09 matt
  2002-09-09 11:26 ` phrostie
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: matt @ 2002-09-09  4:09 UTC (permalink / raw)
  To: linux-msdos

Awhile back I tried getting graphics to work in dosemu on some linux 
distros I was playing with at the time. Sadly, I was totally unsuccessful. 
I realized after reading the docs that one had to disable video/bios 
shadowing in order to use graphics. The problem is, my computer (HP8570C) 
*does not* have any setting in the bios that lets you do this. So I guess 
that means I can't run dosemu in a graphical mode on my computer at all eh? 
What I don't quite understand is WHY do you have to disable video/bios 
shadowing to get graphics working in the first place?! I tried searching 
the web/usenet for information but apparently no one ever decided to write 
a technical document to explain why video/bios shadowing in dosemu must be 
disabled. I still think that perhaps this is some kind of quick hack that 
was put into dosemu to get graphics to work. Did it have to be programmed 
this way or was there another way graphic support in dosemu could've been 
implemented without having to require video/bios shadowing to be disabled? 
It would be great if there's another solution to get graphics working in 
dosemu without having to disable video/bios shadowing. To tell you the 
truth, i've been a windows user for quite awhile now (started with win3.1 
and i'm now using win98se) although i've used linux/bsd/solaris/etc... 
through shell accounts i've acquired over the years and from playing around 
with linux distros that are configured to run on top of a dos partition. 
Ultimately, I hope to make a complete transition to linux from wind0ze (I 
already purchased suse linux to try out). I'm guessing i'm going to have to 
go the dual boot route and keep a seperate windows partition behind to run 
my dos/windows games since i've come to realize that both dosemu/wine are 
still premature. If it wasn't for some of the technical problems with both 
emulators (probably due to microsoft's monopoly on *stuff*), I would 
quickly switch from windows to linux in a heart beat and say ados micros~1 
heh :P


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2002-10-04  4:22 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-23 20:52 please explain to me why video/bios shadowing must be disabled to use graphics Stas Sergeev
2002-09-23 21:14 ` Bart Oldeman
2002-10-01  0:19   ` phrostie
2002-09-24 10:31 ` phrostie
  -- strict thread matches above, loose matches on Subject: below --
2002-10-04  4:22 Stas Sergeev
2002-09-24 13:20 Stas Sergeev
2002-09-24  1:20 Stas Sergeev
2002-09-24  2:18 ` Bart Oldeman
2002-09-23 22:12 Stas Sergeev
2002-09-23 23:11 ` Bart Oldeman
2002-09-21 22:43 Stas Sergeev
2002-09-09  4:09 matt
2002-09-09 11:26 ` phrostie
2002-09-20 20:57   ` matt
2002-09-20 21:29     ` Bart Oldeman
     [not found]     ` <Pine.GSO.4.05.10209202215490.18306-100000@sh.enm.bris.ac.u k>
2002-09-20 23:37       ` matt
2002-09-21  5:21         ` Pat
2002-09-10  2:08 ` Pat
     [not found] ` <Pine.LNX.4.44.0209091837470.20167-100000@feather.sunbird.s ys>
2002-09-20 20:52   ` matt
2002-09-21  4:53     ` Pat
     [not found]     ` <Pine.LNX.4.44.0209201954350.30609-100000@feather.sunbird.s ys>
2002-09-21  8:42       ` matt
2002-09-21 16:04         ` Bart Oldeman
2002-09-23 17:33           ` phrostie
2002-09-23 19:25             ` Bart Oldeman
     [not found]         ` <Pine.GSO.4.05.10209211648440.21069-100000@sh.enm.bris.ac.u k>
2002-09-21 20:08           ` matt
2002-09-22 20:46         ` Pat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox