From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Sane behavior of fbset
Date: Fri, 18 Jun 2004 09:45:12 +0800 [thread overview]
Message-ID: <200406180945.12444.adaplas@hotpop.com> (raw)
Hi,
Currently, using fbset either corrupts the display, or at worst, hangs the GPU. I consider
this a critical bug. I don't want to discuss the pros/cons of using fbset vs stty to
change the console size, but we need to make sure that using fbset (or any utility
that utilizes the fb_set_var ioctl) does not produce undefined behavior. There are
at least 3 possibilities:
1. Revert to 2.4 behavior. This is easy to add since fbdev already has a notifier
support. (I already have working code for this). Of course, stty will still work.
2. Make the set_var ioctl return immediately if the vc_mode of the current display is
KD_TEXT. Basically, fbset becomes an informational utility only. I don't know the
repercussions of this with userland fb applications though.
3. Modify fbset (and other similar utilities, if there are any) so it also issues an
'stty-like' call after a 'set_var' call.
Note: As mentioned by many people before, it's almost impossible to completely
preserve per-console mode info because of the lack of a per-display var. So even
if we agree to implement #1, it cannot completely match 2.4 behavior. Also, the lack
of per-display var means that drivers must be able to handle mode changes without
any help. James' fb_find_mode support in fbcon_resize does partly alleviate this
limitation.
Comments?
Tony
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
next reply other threads:[~2004-06-18 1:44 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 1:45 Antonino A. Daplas [this message]
2004-06-18 8:24 ` Sane behavior of fbset 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
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=200406180945.12444.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=adaplas@pol.net \
--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.