Message board for the users of flat assembler.
> MenuetOS > S3 trio VESA bug
compilax 03 Oct 2004, 04:35
I now have another computer which i plan on using for MenuetOS (rather than rebooting all the time between windows and menuet on this one), but only the VGA modes will work properly. VESA 1.2 640x480, 800x600 and 1024xsomething partially work, but only the top [about 400 pixels, seems to vary a bit between mode] of the screen are shown, then the bottom part of the screen is a repeat of part of the top. in 640x480, it is almost useable, because i can see most of the screen, but 640x480 is small enough as it is. The graphics are on the motherboard, S3 trio 32 or 64 (not sure). I remember seeing a S3 patch a while ago, but i can't find it anywhere and it probably wont work with newer kernels. Any ideas?
PS: the VGA modes work fine, but in 640x480, the main problem is that one can't see the cursor in tinypad. I might take a look at the source and make the cursor another colour (i mean the indicator of where you are at in the text file, not the mouse cursor).
Thanks in advance, Compilax.
|03 Oct 2004, 04:35||
DennisCGc 03 Oct 2004, 11:00
You know, I have the same problem too...
It looks like the some parts will overlap each other (AFAIK)..
I indeed would like to see a patch too....
|03 Oct 2004, 11:00||
Wildwest 07 Oct 2004, 21:30
You can rewrite set_bank in VESA12.INC:
mov ch,al ; Save value for later
and al,0Fh ; Mask off all but bottom 4 bits
mov ax,4838h ; Enable extended registers
mov al,31h ; Index of S3R1
in al,dx ; Read value of S3R1
or al,9 ; Set bits 0 and 3
out dx,al ; Write value back again
mov al,35h ; Index of S3R5
in al,dx ; Read value of CR51
and ch,0xF0 ; [S3_mask] ; Mask out appropriate bits
or al,ch ; Or in top 2 bits of bank number
out dx,al ; Write the value back again
mov ax,0039h ; Lock system control registers
@@S32: mov ax,0038h ; Disable extended registers
This code is not mine. I take it from menuetos.org.ru some months ago. Good luck!
|07 Oct 2004, 21:30||
compilax 22 Oct 2004, 05:47
In 0.78pre3, VESA12 is just a few comments describing code that is no longer present. Can I in some way replace VESA20.INC by an old VESA12.INC (and replace labels with their 2.0 counterparts) then apply that patch? Has 1.2 support been moved to another source file or completely abandoned? Why does it still show VESA 1.2 modes on boot?
|22 Oct 2004, 05:47||
Tolle 22 Oct 2004, 14:06
Compilax, are you sure you are talking about the official 0.78pre3 menuetos.org distribution?
Now, who needs a new pair of glasses?
|22 Oct 2004, 14:06||
Madis731 22 Oct 2004, 20:18
Yep, the VESA12.INC is absolutely clean of any code. They are
offering you a chance to write your own driver there
|22 Oct 2004, 20:18||
ASHLEY4 26 Oct 2004, 15:28
I read some thing in allegro, that there is a bug seting up vesa on S3 trio.
To get round it you setup vga mode 13h and then set vesa up and it works normal.
Not tryed it my self.
|26 Oct 2004, 15:28||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.