2004-03-17 23:25:10

by Jakub Bogusz

[permalink] [raw]
Subject: [PATCH 2.6][RESEND] fbcon margins colour fix

I sent it a few times to linux-kernel and at least one to
linux-fbdev-devel, but haven't seen any comments - and this annoying
changing margins colour seems to be still there in 2.6.4 (at least on
tdfxfb).


--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/


Attachments:
(No filename) (260.00 B)
linux-fbcon-margins.patch (1.34 kB)
Download all attachments

2004-03-18 09:21:42

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] [PATCH 2.6][RESEND] fbcon margins colour fix

On Thu, 18 Mar 2004, Jakub Bogusz wrote:
> I sent it a few times to linux-kernel and at least one to
> linux-fbdev-devel, but haven't seen any comments - and this annoying
> changing margins colour seems to be still there in 2.6.4 (at least on
> tdfxfb).

What happens on `reverse video' (i.e. black on white, like Sun) graphics cards?
In that case the overscan color is white.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2004-03-18 09:37:20

by Jakub Bogusz

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] [PATCH 2.6][RESEND] fbcon margins colour fix

On Thu, Mar 18, 2004 at 10:21:31AM +0100, Geert Uytterhoeven wrote:
> On Thu, 18 Mar 2004, Jakub Bogusz wrote:
> > I sent it a few times to linux-kernel and at least one to
> > linux-fbdev-devel, but haven't seen any comments - and this annoying
> > changing margins colour seems to be still there in 2.6.4 (at least on
> > tdfxfb).
>
> What happens on `reverse video' (i.e. black on white, like Sun) graphics cards?
> In that case the overscan color is white.

Uhm. What is palette entry for this white?
Or, more generally, how to find (palette colour number of) overscan
colour for current console?
Video erase character colour is not proper one as it may be different
even from background colour at the moment of vt switch.



--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/

2004-03-18 09:42:44

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] [PATCH 2.6][RESEND] fbcon margins colour fix

On Thu, 18 Mar 2004, Jakub Bogusz wrote:
> On Thu, Mar 18, 2004 at 10:21:31AM +0100, Geert Uytterhoeven wrote:
> > On Thu, 18 Mar 2004, Jakub Bogusz wrote:
> > > I sent it a few times to linux-kernel and at least one to
> > > linux-fbdev-devel, but haven't seen any comments - and this annoying
> > > changing margins colour seems to be still there in 2.6.4 (at least on
> > > tdfxfb).
> >
> > What happens on `reverse video' (i.e. black on white, like Sun) graphics cards?
> > In that case the overscan color is white.
>
> Uhm. What is palette entry for this white?

0, on pseudocolor displays. So probably it's OK.

> Or, more generally, how to find (palette colour number of) overscan
> colour for current console?
> Video erase character colour is not proper one as it may be different
> even from background colour at the moment of vt switch.

There's no standardized way for that. So it may depend on the driver. I know
ATI Mach64 has a special register for the overscan color, which is always set
to black, IIRC.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds