linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Zielinski <grim@undead.cc>
To: adaplas@pol.net
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Sane behavior of fbset
Date: Fri, 18 Jun 2004 09:31:40 -0400	[thread overview]
Message-ID: <40D2EEBC.1040507@undead.cc> (raw)
In-Reply-To: <200406180945.12444.adaplas@hotpop.com>

Antonino A. Daplas wrote:

>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.
>
>  
>
Definitely #1.   The functionality is very easy to add to the kernel as 
most of it is already in place.

>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.
>
>  
>
Several people have already started doing work adding fb mode changing 
to sysfs.  Fbset will most likely become a wrapper around the sysfs 
interface.

>3.  Modify fbset (and other similar utilities, if there are any) so it also issues an 
>'stty-like' call after a 'set_var' call.   
>
>  
>
Ug, please no.  That's just asking for trouble.  Now the app would have 
to figure out what the font size is so that adds a third call.  If the 
app gets the calculation between x-y -> row-col wrong then the screen 
would be messed up at best or we'd get an infinite loop at worse (like 
one of the earlier patches to the kernel did).

>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.
>  
>
Several people on the list are pushing to have per-console var put back 
in.   This is a far as it should go for the 2.6.x series.  There are 
more elaborate solutions proposed for the 2.7 kernel.

John




-------------------------------------------------------
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

  parent reply	other threads:[~2004-06-18 13:31 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 [this message]
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=40D2EEBC.1040507@undead.cc \
    --to=grim@undead.cc \
    --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 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).