All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: linux-fbdev@vger.kernel.org
Subject: Re: fbcon gives mirrored fonts on monochrome display
Date: Thu, 22 Jan 2015 19:59:11 +0000	[thread overview]
Message-ID: <CAMuHMdUcN5Braf_Kxex3wjWsvWRD=iNhUbG-zR6RN0B3ez3uPA@mail.gmail.com> (raw)
In-Reply-To: <54C145B8.6080204@tronnes.org>

Hi Noralf,

On Thu, Jan 22, 2015 at 8:55 PM, Noralf Trønnes <notro@tronnes.org> wrote:
> Den 22.01.2015 20:44, skrev Geert Uytterhoeven:
>> On Thu, Jan 22, 2015 at 7:47 PM, Noralf Trønnes <notro@tronnes.org> wrote:
>>> I'm playing with a SSD1306 128x64 monochrome display and fbcon gives me
>>> mirrored fonts and some extra lines.
>>> fbdev config:
>>>    info->var.bits_per_pixel = 1;
>>>    info->fix.visual = FB_VISUAL_MONO10;
>>>    info->var.red.length = 1;
>>>    info->var.red.offset = 0;
>>>    info->var.green.length = 1;
>>>    info->var.green.offset = 0;
>>>    info->var.blue.length = 1;
>>>    info->var.blue.offset = 0;
>>> Uses: sys_fillrect, sys_copyarea, sys_imageblit (and deferred_io)
>>>
>>> System: Raspberry Pi, ARM, Linux 3.18.3
>>>
>>> Does anyone see what this might be?
>>
>> What's the value on CONFIG_FB_CFB_REV_PIXELS_IN_BYTE in your .config?
>
> $ zgrep CONFIG_FB_CFB_REV_PIXELS_IN_BYTE /proc/config.gz
> # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
>
>> Does your driver set FB_NONSTD_REV_PIX_IN_B?
>
> No it doesn't. I also tried setting it now, with no effect:
> info->var.nonstd = FB_NONSTD_REV_PIX_IN_B;

The latter only seems to matter if CONFIG_FB_CFB_REV_PIXELS_IN_BYTE
is set, so please try the config option first.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

  parent reply	other threads:[~2015-01-22 19:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22 18:47 fbcon gives mirrored fonts on monochrome display Noralf Trønnes
2015-01-22 19:44 ` Geert Uytterhoeven
2015-01-22 19:55 ` Noralf Trønnes
2015-01-22 19:59 ` Geert Uytterhoeven [this message]
2015-01-22 20:38 ` Noralf Trønnes
2015-01-22 20:42 ` Geert Uytterhoeven
2015-01-22 20:58 ` Noralf Trønnes

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='CAMuHMdUcN5Braf_Kxex3wjWsvWRD=iNhUbG-zR6RN0B3ez3uPA@mail.gmail.com' \
    --to=geert@linux-m68k.org \
    --cc=linux-fbdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.