linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Kaufmann <kaufmann@sohard.de>
To: Linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Mirrored Display?
Date: Mon, 23 Dec 2002 12:04:39 -0100	[thread overview]
Message-ID: <200212231204.39625.kaufmann@sohard.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0212201947290.6471-100000@phoenix.infradead.org>

Dear James,

thanks for your reply.

On Friday 20 December 2002 18:49, you wrote:
> > I've modified existing drivers, and after a lot of work i now have a
> > clear picture on my display. Unfortunately, the complete picture is
> > mirrored. The Bootlogo is top/right instead of top/left and the ascii
> > output starts from right to left.
>
> Some hardware supports mirroring. Sounds like you turned it on by mistake.

No, there is nothing i could turn on/off in my hardware. 
I have checked the hardware and the datasheets again, and i'm now sure. The 
display i'm using is a LCD monochrom display. And this type of display writes 
the picture date from right to left (mirrored). There is nothing i can do 
against it. My videocontroller has no feature to output every line mirrored.
The videocontroller start sending the picture datastream to the display from
videobuffer address 0. The first pixel from the picture datastream will be 
displayed on the right/top edge on my LCD and the second pixel left to the 
first and so on. 

First i thought that this behaviour of my display is extremly unusal. After 
looking to other display datasheets i now know, that it is unusal but far not 
sooo unusual i thought the first time.  

> > Where is the right place to modify this behaviour?
> > I'm also looking for a possibility to rotate the picture.
> > Because my videocontroller can emulate 15 grayscales, i'm useing 4bpp.
>
> The latest 2.5.X kernels have hardware hooks for rotation. I haven't added
> it yet to the software accel functions. I plan to a soon as I get time.
> Thank you.

Antonino has also answered to my question. And he said that there is nothing 
i can do, because user apps will directly acces the framebuffer via read/write 
or nmap. I can only patch the console and the show _logo to write the data 
mirrored to the videobuffer (a lot of work).
So my user apps (like nanoX or directfb/GTK+) must know about the mirrored 
display and should write the picturedata mirrored in the framebuffer. 

I'm know a litte bit amazed about a rotation feature in next versions. Does 
this mean, that the buffer where user apps (or also the console) are writing 
there picture data is not directly the videobuffer anymore? Or how does this 
rotation feature works?

I think it would be a good feature to have 'something' between the framebuffer 
and the physical videobuffer to be able to manipulate the picture data (like 
rotation, mirroring, etc.). But i don't know how this peace of software 
should detect, changed data in the 'framebuffer' to e.g. mirror in the 
videobuffer? Writing the whole buffers from time to time whould be a very
bad solution (performance).

At the moment i plan to do the manipulation in the directfb layer on top of 
the framebuffer device. I 'only' need to run some GTK+ applications. I need 
to mirror the picture, and i also want to rotate the picture from landcape to 
portrait.

Bye
Michael 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2002-12-23 11:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-13 18:33 Mirrored Display? Michael Kaufmann
2002-12-15  0:29 ` Antonino Daplas
2002-12-15 17:03   ` Michael Kaufmann
2002-12-15 20:57     ` Antonino Daplas
2002-12-16  0:40       ` Michel Dänzer
2002-12-20 19:49 ` James Simmons
2002-12-23 13:04   ` Michael Kaufmann [this message]
2002-12-29 15:59     ` Antonino Daplas
2003-01-07 21:18       ` James Simmons

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=200212231204.39625.kaufmann@sohard.de \
    --to=kaufmann@sohard.de \
    --cc=Linux-fbdev-devel@lists.sourceforge.net \
    /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).