From: John Zielinski <grim@undead.cc>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: adaplas@pol.net, David Eger <eger@havoc.gtf.org>,
James Simmons <jsimmons@infradead.org>,
Linux Fbdev development list
<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Sane behavior of fbset
Date: Wed, 23 Jun 2004 13:29:25 -0400 [thread overview]
Message-ID: <40D9BDF5.2080603@undead.cc> (raw)
In-Reply-To: <1088006149.1832.145.camel@gaston>
Benjamin Herrenschmidt wrote:
>It may have looked like a nice idea, but I think it's just wrong.
>
>
I think that the implementation is wrong, not the whole idea. Currently
the vt_resize ioctl changes the vt size then tries to set the resolution
leading to a whole bunch of problems when a suitable resolution can't be
found and makes the fbset result ion change code path ugly as well.
What should happen is that the vt_resize ioctl should be sent to the
console driver first and then the console driver calls back the vt layer
with the modified row and column numbers based on the closest
resolution found.
So what we have right now is:
vt_ioctl (VT_RESIZE) -> vc_resize -> resize_screen -> con_resize ->
fb_set_var -> fbcon_event_notify -> vc_resize*
* or equivilent code depending on who's patch you use
Which should be:
vt_ioctl (VT_RESIZE) -> resize_screen -> con_resize -> fb_set_var &
vc_resize
You'd have to have a per vt var in order to have different console sizes
on different vt's this way. The reason for not using the
fbcon_event_notify is that it won't be called when the vt is not in the
forground and I don't belive that a we need to resize the console when
switching between different vt's. A vc_resize would the be necessary in
the fb_ioctl FBIOPUT_VSCREENINFO code path in this case.
John
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
next prev parent reply other threads:[~2004-06-23 17:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 1:45 Sane behavior of fbset Antonino A. Daplas
2004-06-18 8:24 ` Geert Uytterhoeven
2004-06-23 18:52 ` jsimmons
2004-06-23 18:59 ` Geert Uytterhoeven
2004-06-23 19:07 ` jsimmons
2004-06-23 19:17 ` Geert Uytterhoeven
2004-06-23 19:21 ` jsimmons
2004-06-18 13:31 ` John Zielinski
2004-06-18 17:38 ` David Eger
2004-06-18 18:40 ` Antonino A. Daplas
2004-06-19 3:16 ` David Eger
2004-06-19 6:13 ` Antonino A. Daplas
2004-06-19 15:59 ` John Zielinski
2004-06-23 18:57 ` jsimmons
2004-06-23 15:55 ` Benjamin Herrenschmidt
2004-06-23 16:08 ` Geert Uytterhoeven
2004-06-23 17:29 ` John Zielinski [this message]
2004-06-23 20:39 ` jsimmons
2004-06-23 21:44 ` John Zielinski
2004-06-23 19:00 ` jsimmons
2004-06-23 19:38 ` Benjamin Herrenschmidt
2004-06-23 20:03 ` jsimmons
2004-06-23 20:12 ` Benjamin Herrenschmidt
2004-06-23 23:50 ` Antonino A. Daplas
2004-06-24 2:17 ` Antonino A. Daplas
2004-06-19 15:50 ` John Zielinski
2004-06-23 18:55 ` jsimmons
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=40D9BDF5.2080603@undead.cc \
--to=grim@undead.cc \
--cc=adaplas@pol.net \
--cc=benh@kernel.crashing.org \
--cc=eger@havoc.gtf.org \
--cc=jsimmons@infradead.org \
--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 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.