From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
To: David Lechner <david@lechnology.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Linux Fbdev development list <linux-fbdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] fbcon: add fbcon=margin:<color> command line option
Date: Wed, 23 Aug 2017 15:56:25 +0000 [thread overview]
Message-ID: <1712803.5baJPN1EnC@amdc3058> (raw)
In-Reply-To: <0f404f59-f494-bd33-9a9a-f9b07a0dd7ee@lechnology.com>
Hi,
On Friday, August 18, 2017 02:19:28 PM David Lechner wrote:
> On 08/18/2017 01:21 PM, Geert Uytterhoeven wrote:
> > Hi David,
> >
> > On Tue, Aug 1, 2017 at 6:35 PM, David Lechner <david@lechnology.com> wrote:
> >> This adds a new command line option to select the fbcon margin color.
> >>
> >> The motivation for this is screens where black does not blend into the
> >> physical surroundings of the screen. For example, using an LCD (not the
> >> backlit kind), white text on a black background is hard to read, so
> >> inverting the colors is preferred. However, when you do this, most of the
> >> screen is filled with white but the margins are still filled with black.
> >> This makes a big, black, backwards 'L' on the screen. By setting
> >> fbcon=margin:7, the margins will be filled with white and the LCD looks as
> >> expected.
> >>
> >> Signed-off-by: David Lechner <david@lechnology.com>
> >
> >> --- a/Documentation/fb/fbcon.txt
> >> +++ b/Documentation/fb/fbcon.txt
> >> @@ -148,6 +148,13 @@ C. Boot options
> >> Actually, the underlying fb driver is totally ignorant of console
> >> rotation.
> >>
> >> +5. fbcon=margin:<color>
> >> +
> >> + This option specifies the color of the margins. The margins are the
> >> + leftover area at the right and the bottom of the screen that are not
> >> + used by text. By default, this area will be black. The 'color' value
> >> + is 0 to 7 where 0 is black and 7 is white.
> >> +
> >
> > Given the standard console palette contains 16 colors, why limit this to
> > the first 8 colors, and not 0 to 15?
>
> Good question. I think in some of my previous attempts there was a 0x7
> mask involved somewhere and this is a carryover from that. But, after
> having looked at this again, I don't see a reason for limiting to 7.
Could you please prepare the incremental patch raising the number of colors
possible to use?
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
next prev parent reply other threads:[~2017-08-23 15:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170801163629epcas2p49f5f4b204a3ce907b8a7f8239987022e@epcas2p4.samsung.com>
2017-08-01 16:35 ` [PATCH v3] fbcon: add fbcon=margin:<color> command line option David Lechner
2017-08-18 17:29 ` Bartlomiej Zolnierkiewicz
2017-08-18 18:21 ` Geert Uytterhoeven
2017-08-18 19:19 ` David Lechner
2017-08-23 15:56 ` Bartlomiej Zolnierkiewicz [this message]
2017-08-23 15:58 ` David Lechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1712803.5baJPN1EnC@amdc3058 \
--to=b.zolnierkie@samsung.com \
--cc=david@lechnology.com \
--cc=geert@linux-m68k.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).