Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-13 Thread Fred .
On Wed, Feb 13, 2013 at 5:15 PM, David Woodhouse wrote:

> What user experience do you actually expect to achieve, from the changes
> that you're suggesting?
>
> Bootloaders like Grub these days will already use graphical modes. The
> SeaBIOS splash screen can also be graphical, and you can go seamlessly
> from one to the other. What is it that you actually *want*, in real
> terms? I'm not even sure you know...
>

Yeah, I was thinking along the lines of using a splash screen then GRUB use
the same resolution and the same splash screen and it would transition
smoothly without any flicker or resetting of the screen mode, and then it
would go from there to Plymouth which would use the same splash screen, and
it would transition smoothly to the login manager.

>From boot to desktop, always in 1900x1200. Smooth experience. No flicker.
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-13 Thread David Woodhouse
On Wed, 2013-02-13 at 12:50 +0100, Fred . wrote:
> Would it be possible to boot in  a resolution any more modern than the
> old IBM PC BIOS of 1980?
> Which probably used same resolution as something from 1960 or 1970.
> Maybe 132*60 instead of 40*25 or 80*25 rows/columns of text?

Please don't top-post. Do me the courtesy of properly trimming your
citations to quote *only* what is needed for context, and place your
reply *below* it, if you want me to do you the courtesy of taking the
time to reply. I will not reply to another top-posted message.

I really don't understand what you're even trying to achieve. The whole
*POINT* of SeaBIOS is to emulate the old IBM PC BIOS of 1980. Well, and
a few later developments, but basically that's the point.

DOS, and various other 16-bit bootloaders and operating systems, will
expect the standard 80x25 text mode. If they don't find that, then they
will fail to work correctly. Anything *else* can call the standard INT
10h video BIOS calls to set whatever mode it wants.

What user experience do you actually expect to achieve, from the changes
that you're suggesting?

Bootloaders like Grub these days will already use graphical modes. The
SeaBIOS splash screen can also be graphical, and you can go seamlessly
from one to the other. What is it that you actually *want*, in real
terms? I'm not even sure you know...

-- 
dwmw2



smime.p7s
Description: S/MIME cryptographic signature
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-13 Thread Gerd Hoffmann
  Hi,

> So the computer boots up and passes it to the bootloader 

And here does the plan fail.  There is simply no way to do that.
Bootloaders expect the vga being in 80x25 text mode, period.

> Doesn't Apple's computers do that? I don't know.

Yes, they do.

> Would it be possible to boot in  a resolution any more modern than the old
> IBM PC BIOS of 1980?

As long as we are using the IBM PC BIOS interfaces if 1980 (which
seabios is all about):  No way.

With EFI (which apple uses btw) it's another story ...

cheers,
  Gerd


___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-13 Thread Fred .
I was wondering if it could power-up in high resolution mode.
Didn't know nothing would work as expected.
I thought maybe bootloaders could use the same mode without reset the
display and set a new mode, and then the operating system does the same.
So the computer boots up and passes it to the bootloader which passes it to
the operating system all without ever changing screen mode or flicking
anything.

Doesn't Apple's computers do that? I don't know.

Would it be possible to boot in  a resolution any more modern than the old
IBM PC BIOS of 1980?
Which probably used same resolution as something from 1960 or 1970.

Maybe 132*60 instead of 40*25 or 80*25 rows/columns of text?


On Wed, Feb 13, 2013 at 11:10 AM, David Woodhouse wrote:

> On Wed, 2013-02-13 at 10:44 +0100, Fred . wrote:
> > Can SeaBIOS init to a high resolution video mode such as 1920x1200?
>
> I'm not entirely sure what you're asking. Can SeaVGABIOS initialise a
> high-resolution mode? Yes. It supports 1920x1200 and 2560x1600 modes.
> All you have to do is call INT 10h with the appropriate mode-setting
> request.
>
> Or are you asking if it can do so *power-up*, setting a graphical mode
> so that nothing displays as expected, because operating systems and
> bootloaders expect the screen to be in *text* mode? To which the answer
> would be that yes it *can* be patched to do so, but that would be bad.
>
> Or are you asking if it can do so for the OVMF/CSM case? In which case
> again it *could* but OVMF is about to set the mode for itself anyway so
> it would be pointless.
>
> --
> dwmw2
>
>
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-13 Thread Fred .
Can SeaBIOS init to a high resolution video mode such as 1920x1200?


On Wed, Feb 13, 2013 at 3:24 AM, Kevin O'Connor  wrote:

> On Fri, Feb 08, 2013 at 03:19:19PM +, David Woodhouse wrote:
> > On Fri, 2013-02-08 at 15:06 +, David Woodhouse wrote:
> > > When booting with OVMF+CSM, the first video mode that we ask for is
> mode
> > > 0x143. This doesn't seem to work; the qemu display window doesn't
> change
> > > size, and remains blank.
> > >
> > > If the first thing we ask for is a *text* mode, then things work fine.
> > > This is arguably a bug, but I'm not about to go chasing it.
> >
> > I should know never to say things like that; if I'm offended by
> > something it's almost always a lie to say that I won't actually go and
> > hunt it down. This patch is more minimal and highlights the actual
> > problem. Not sure what *else* is missing...
>
> Thanks.  The patch looks fine to me.  However, "-vga std" has stopped
> working for me (both before and after your patch) and I still need to
> track that down.
>
> -Kevin
>
> ___
> SeaBIOS mailing list
> SeaBIOS@seabios.org
> http://www.seabios.org/mailman/listinfo/seabios
>
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-13 Thread David Woodhouse
On Wed, 2013-02-13 at 10:44 +0100, Fred . wrote:
> Can SeaBIOS init to a high resolution video mode such as 1920x1200?

I'm not entirely sure what you're asking. Can SeaVGABIOS initialise a
high-resolution mode? Yes. It supports 1920x1200 and 2560x1600 modes.
All you have to do is call INT 10h with the appropriate mode-setting
request.

Or are you asking if it can do so *power-up*, setting a graphical mode
so that nothing displays as expected, because operating systems and
bootloaders expect the screen to be in *text* mode? To which the answer
would be that yes it *can* be patched to do so, but that would be bad.

Or are you asking if it can do so for the OVMF/CSM case? In which case
again it *could* but OVMF is about to set the mode for itself anyway so
it would be pointless.

-- 
dwmw2



smime.p7s
Description: S/MIME cryptographic signature
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-12 Thread Kevin O'Connor
On Fri, Feb 08, 2013 at 03:19:19PM +, David Woodhouse wrote:
> On Fri, 2013-02-08 at 15:06 +, David Woodhouse wrote:
> > When booting with OVMF+CSM, the first video mode that we ask for is mode
> > 0x143. This doesn't seem to work; the qemu display window doesn't change
> > size, and remains blank.
> > 
> > If the first thing we ask for is a *text* mode, then things work fine.
> > This is arguably a bug, but I'm not about to go chasing it. 
> 
> I should know never to say things like that; if I'm offended by
> something it's almost always a lie to say that I won't actually go and
> hunt it down. This patch is more minimal and highlights the actual
> problem. Not sure what *else* is missing...

Thanks.  The patch looks fine to me.  However, "-vga std" has stopped
working for me (both before and after your patch) and I still need to
track that down.

-Kevin

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-08 Thread Fred .
It would be nice with native resolution video mode.
Such as 1920x1200.


On Fri, Feb 8, 2013 at 4:06 PM, David Woodhouse  wrote:

> When booting with OVMF+CSM, the first video mode that we ask for is mode
> 0x143. This doesn't seem to work; the qemu display window doesn't change
> size, and remains blank.
>
> If the first thing we ask for is a *text* mode, then things work fine.
> This is arguably a bug, but I'm not about to go chasing it. Most video
> BIOSes will enter mode 3 for themselves as part of the POST anyway,
> won't they? And that's sufficient to work around the problem for me...
>
> Signed-off-by: David Woodhouse 
>
> diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
> index 3e26e32..82aa5fc 100644
> --- a/vgasrc/vgabios.c
> +++ b/vgasrc/vgabios.c
> @@ -1320,4 +1320,6 @@ vga_post(struct bregs *regs)
>  u8 sum = -checksum_far(get_global_seg(), 0,
> GET_GLOBAL(_rom_header_size) * 512);
>  SET_VGA(_rom_header_checksum, sum);
> +
> +vga_set_mode(3, 0);
>  }
>
>
> --
> dwmw2
>
>
> ___
> SeaBIOS mailing list
> SeaBIOS@seabios.org
> http://www.seabios.org/mailman/listinfo/seabios
>
>
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-08 Thread David Woodhouse
On Fri, 2013-02-08 at 15:06 +, David Woodhouse wrote:
> When booting with OVMF+CSM, the first video mode that we ask for is mode
> 0x143. This doesn't seem to work; the qemu display window doesn't change
> size, and remains blank.
> 
> If the first thing we ask for is a *text* mode, then things work fine.
> This is arguably a bug, but I'm not about to go chasing it. 

I should know never to say things like that; if I'm offended by
something it's almost always a lie to say that I won't actually go and
hunt it down. This patch is more minimal and highlights the actual
problem. Not sure what *else* is missing...

Signed-off-by: David Woodhouse 

diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c
index bb5a64d..b0ba1ec 100644
--- a/vgasrc/bochsvga.c
+++ b/vgasrc/bochsvga.c
@@ -319,6 +319,7 @@ bochsvga_set_mode(struct vgamode_s *vmode_g, int flags)
 stdvga_sequ_mask(0x04, 0x00, 0x08);
 stdvga_grdc_mask(0x05, 0x20, 0x40);
 }
+stdvga_attrindex_write(0x20);
 
 return 0;
 }

-- 
dwmw2



smime.p7s
Description: S/MIME cryptographic signature
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


[SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

2013-02-08 Thread David Woodhouse
When booting with OVMF+CSM, the first video mode that we ask for is mode
0x143. This doesn't seem to work; the qemu display window doesn't change
size, and remains blank.

If the first thing we ask for is a *text* mode, then things work fine.
This is arguably a bug, but I'm not about to go chasing it. Most video
BIOSes will enter mode 3 for themselves as part of the POST anyway,
won't they? And that's sufficient to work around the problem for me...

Signed-off-by: David Woodhouse 

diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
index 3e26e32..82aa5fc 100644
--- a/vgasrc/vgabios.c
+++ b/vgasrc/vgabios.c
@@ -1320,4 +1320,6 @@ vga_post(struct bregs *regs)
 u8 sum = -checksum_far(get_global_seg(), 0,
GET_GLOBAL(_rom_header_size) * 512);
 SET_VGA(_rom_header_checksum, sum);
+
+vga_set_mode(3, 0);
 }


-- 
dwmw2



smime.p7s
Description: S/MIME cryptographic signature
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios