From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Nathan Cline <nathan.cline@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Patch to framebuffer
Date: Thu, 24 Nov 2005 15:43:55 +0800 [thread overview]
Message-ID: <43856F3B.2090305@gmail.com> (raw)
In-Reply-To: <656113ee0511232208n6948c364ke6103b3ef0a54f@mail.gmail.com>
Nathan Cline wrote:
> Hello, this is my first time posting to this list so please forgive me
> if I'm violating protocol in some way. :) I've written a patch to the
> framebuffer code to modify its behavior a bit. I am running on a
> dual-headed system and I noticed when I was working in one console on
> one monitor, the console on the other monitor was "frozen", not
> updating itself. After some digging through the code I realized this
> is because the two framebuffer drivers share the same framebuffer code
> which stores a single pointer to the "current" virtual console. If a
> VC is not current it is considered invisible and is not updated.
Yes, there is only 1 active console at one time. And many multi-head
users has been asking (and confused) about this for some time now.
> So I
> patched the code to store a pointer for each framebuffer to the
> "foreground" VC on each one.
Well, you really don't need to store currcon_ptr in fbcon_ops. Using
vc_cons[ops->currcon].d should be enough to get the current vc attached
to the framebuffer. It will also make your patch smaller, and hopefully
easier to spot regressions.
> It seems to work well but I'd like to get
> others' input as this is my first time writing any kernel code, and to
> be honest there is so much code it's difficult to get a clear picture
> in my head of how the whole system works.
Yes, the console code is very confusing. I have been looking at it for
a long time and I still don't know every code pathway it's going to take.
Anyway, with single-head systems, I can't really see your patch causing
regressions, so that's good. With multi-head, I don't know.
Anyway, maybe Andrew can give this a whirl in the -mm tree? Just resubmit
the patch without the currcon_ptr from fbcon_ops. And add a
Signed-off-by: line. See:
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
Tony
next prev parent reply other threads:[~2005-11-24 7:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-24 6:08 Patch to framebuffer Nathan Cline
2005-11-24 7:43 ` Antonino A. Daplas [this message]
2005-11-24 8:49 ` Antonino A. Daplas
2005-11-24 9:08 ` Matt Keenan
2005-11-24 9:46 ` Pekka Enberg
-- strict thread matches above, loose matches on Subject: below --
2005-11-24 17:21 Knut Petersen
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=43856F3B.2090305@gmail.com \
--to=adaplas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan.cline@gmail.com \
/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