public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Changing an app to use linux framebuffer
@ 2002-12-01 12:21 Stas Sergeev
  0 siblings, 0 replies; 7+ messages in thread
From: Stas Sergeev @ 2002-12-01 12:21 UTC (permalink / raw)
  To: linux-msdos; +Cc: Simon Bridger

Hello.

Simon Bridger wrote:
> I want to use it in a console window. Unfortunately I get a message 
> telling me there is no vesa driver.
Known problem:(
This largely depends on your video
card however.
Get a card where the extended registers
are accessable via the VGA registers -
and you have VESA. Old S3 and SiS cards
will do.
With a modern cards you are in troubles.

> Autotrax uses plug-in graphic drivers, and we have the source for 
> these, and can easily change them.
Will not help.

> Is there any way of  changing them to write directly into the linux 
> kernel frame buffer?
There was a patch somewhere in the net
which does this using SDL, but this patch
seems to be dropped by its author:(
This was also an emulation however, so,
while being full-screen, it is still slow.

> Or indirectly through some calls in the  DOSEMU system?
None currently available to deal with
a frame buffer AFAIK.

> Or to get the VESA drivers working?
That was my goal during the 4 month
recently. I've got VESA working, but,
as the kernel have only 128 bit for
the IO bitmap, you can't use an ioperm()
syscall to open all the necessary extended
registers of the card. So the
trap/iopl()/decode_instr technique was
used. This turned out to be even *much*
slower than an xdos:(
Fortunately the 2.5 kernels have a lazy
IO bitmap allocation scheme, so that the
size can be increased without any overhead.
I haven't played with 2.5 kernels yet.
If you really need to get VESA a go, you
have to enlarge an IO bitmap to 8K there
and I'll give you a code that enables
VESA under dosemu.
This work must be done sooner or later
by someone anyway. I don't have time to
play with a 2.5 kernel currently.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Changing an app to use linux framebuffer
@ 2002-12-02 11:21 Stas Sergeev
  0 siblings, 0 replies; 7+ messages in thread
From: Stas Sergeev @ 2002-12-02 11:21 UTC (permalink / raw)
  To: linux-msdos; +Cc: Simon Bridger

Hello.

Simon Bridger wrote:
> Slow is a nuisance, but it isn't terminally slow.
> The showstopper is the mouse behaviour. What happens is this. When the 
> mouse reaches the edge of the autotrax screen, autotrax pans, and moves its 
> own mouse cursor back to the middle of the screen.
If only this is a problem, then surprise:
just press Ctrl+Alt+Home and the mouse
is trapped.
Note: there are generally more than one
"Home" button on the keyboard, but only
one will work for catching the mouse.

> Would it be possible to make an xdos session run fullscreen?
This is not always possible. Try the
xxx_aspect and xxxfact options of your
dosemu.conf (ie $_X_fixed_aspect etc).

> - with the xwindows mouse disabled/hidden (since autotrax is doing all 
> its own mouse display)
Yep, see above for the recipe.

> Assuming the mouse problem is solvable, is there a way to rewrite the 
> autotrax driver to make it faster when using the xdos screen?
No idea. xdos is always slow, as it have
to emulate all the hardware registers of
the VGA-compatible card.
It would be easier to enlarge an IO bitmap
in the 2.5 kernel after all.

> As I had another look at it I also notice that the vesa drivers for 
> 1024x768 and smaller work properly.
Just to avoid any confusion: what I told
you about VESA non-functionality and all the
underlaying problems, was under the quote
of your question regarding a direct video
card access (under console). xdos have its
own problems and limitations, but after all
it is hardware-independant, so the VESA is
(partially) supported there for any video
card that can run X.
xdos may work for you, but having the fast
full-screen direct VESA under console would
still be quite cool:) Unfortunately, currently
this is possible only on some absolete boards
like S3 Trio.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Changing an app to use linux framebuffer
@ 2002-12-02  9:55 Simon Bridger
  2002-12-02 21:59 ` Bart Oldeman
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Bridger @ 2002-12-02  9:55 UTC (permalink / raw)
  To: linux-msdos

Hi Stas, thanks for the reply.

Slow is a nuisance, but it isn't terminally slow.

The showstopper is the mouse behaviour. What happens is this. When the mouse 
reaches the edge of the autotrax screen, autotrax pans, and moves its own 
mouse cursor back to the middle of the screen.
Meanwhile the Xmouse is still at, or off, the edge of the Xwindow containing 
xdos

Would it be possible to make an xdos session run fullscreen?
- on a specific desktop (which we aren't using for anything else)
- without borders, widgets etc. (since we are full screen we don't need any of 
that)
- with the xwindows mouse disabled/hidden (since autotrax is doing all its own 
mouse display)

Assuming the mouse problem is solvable, is there a way to rewrite the autotrax 
driver to make it faster when using the xdos screen?

As I had another look at it I also notice that the vesa drivers for 1024x768 
and smaller work properly.
The 1280x? driver appears to have an address wrap around on screen, and the 
1400x1050 driver crashes

regards
Simon



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Changing an app to use linux framebuffer
@ 2002-12-01  3:49 Simon Bridger
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Bridger @ 2002-12-01  3:49 UTC (permalink / raw)
  To: linux-msdos

Hi,

I am trying to get Autotrax working. It is an excellent, now free, PCB design 
package. (also a schematic package)
It uses VESA drivers. It works fine using DOSEMU under Xwindows. Unfortunately 
it is 
1) too slow being a cad app
2) autotrax pans when the mouse hits the edge of the screen. This totally 
conflicts with the whole gui thing where the mouse can move anywhere off 
screen.

I want to use it in a console window. Unfortunately I get a message telling me 
there is no vesa driver.

Autotrax uses plug-in graphic drivers, and we have the source for these, and 
can easily change them.

Is there any way of  changing them to write directly into the linux kernel 
frame buffer? 
Or indirectly through some calls in the  DOSEMU system?
Or to get the VESA drivers working?

Thanks for your attention

Simon Bridger

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

end of thread, other threads:[~2002-12-03 16:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-01 12:21 Changing an app to use linux framebuffer Stas Sergeev
  -- strict thread matches above, loose matches on Subject: below --
2002-12-02 11:21 Stas Sergeev
2002-12-02  9:55 Simon Bridger
2002-12-02 21:59 ` Bart Oldeman
2002-12-03  8:49   ` Simon Bridger
2002-12-03 16:31     ` Bart Oldeman
2002-12-01  3:49 Simon Bridger

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