From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: linux-fbdev-devel@lists.sourceforge.net,
Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jon Smirl <jonsmirl@gmail.com>, dri-egl@lists.freedesktop.org
Subject: Re: Reworking sysfs attributes for fbdev
Date: Wed, 16 Mar 2005 04:27:04 +0800 [thread overview]
Message-ID: <200503160427.04940.adaplas@hotpop.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0503150954500.30569@numbat.sonytel.be>
On Tuesday 15 March 2005 16:55, Geert Uytterhoeven wrote:
> On Tue, 15 Mar 2005, Antonino A. Daplas wrote:
> > On Tuesday 15 March 2005 11:43, Jon Smirl wrote:
> > > Some discussion on the dri-egl list points out that the new mode
> > > setting sysfs attributes for fbdev are too limited. Below is a
> > > proposal I made on the dri-egl list.
> > >
> > > To implement this for fbdev I need to know the right set of of
> > > attribute value pairs. Some obvious ones are:
> > >
> > > name=string
> > > width=number
> > > height=number
> > > depth=number
> > > refresh=number
> > > interlace= yes | no | double
> > > type = detailed|standard|vesa|user
> > > sync = horizonatal_high | vertical_high | external | composite |
> > > broadcast | green
> > > left=number
> > > right=number
> > > lower=number
> > > upper=number
> > > hsync=number
> > > vsync=number
> > > pixclock=number
> > >
> > > Right now fb0/modes is set by passing in an array of fb_videomode
> > > structs. To convert this to attribute value pair I needs the full set
> > > so that no info is lost.
> > >
> > > If the mode and depth are independent variables we can end up with a
> > > combo that exceeds monitor or hardware bandwidth. Would it be better
> > > to combine the depth into the modes list? or if you try to set a
> >
> > We can do that, vesa's mode id's are like that. Although I prefer that
> > mode setting should be separated from the framebuffer format setting (ie,
> > depth), it's currently difficult to make this work safely the reason
> > being that not all check_var() functions can be relied upon.
>
> So should we separate into geometry, timings, visual (cfr. fbutils)?
Ideally, yes, but the problem with fbsysfs is that a regular user can change
the mode. Once we do the separation, combinations will exist that can be
illegal.
ie echo 1024x768@60 > fb0/mode
echo 32 > fb0/depth
The second set may not be compatible with the preceeding one. Although
drivers do have a check_var(), I don't think all are robust enough to
screen out illegal combinations.
Tony
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
prev parent reply other threads:[~2005-03-15 20:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200503111331.41352.ajax@nwnk.net>
[not found] ` <9e47339105031114196dbffd88@mail.gmail.com>
[not found] ` <42322050.9070206@tungstengraphics.com>
[not found] ` <9e47339105031115307868b476@mail.gmail.com>
[not found] ` <423230B3.2080202@tungstengraphics.com>
[not found] ` <9e4733910503111708d1e6856@mail.gmail.com>
[not found] ` <4234C39B.1010702@tungstengraphics.com>
[not found] ` <9e473391050313164572435dd4@mail.gmail.com>
[not found] ` <4235B5E1.6080406@tungstengraphics.com>
[not found] ` <9e473391050314091173cfbd0d@mail.gmail.com>
2005-03-15 3:43 ` Reworking sysfs attributes for fbdev Jon Smirl
2005-03-15 6:49 ` Antonino A. Daplas
2005-03-15 8:55 ` Geert Uytterhoeven
2005-03-15 20:27 ` Antonino A. Daplas [this message]
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=200503160427.04940.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=dri-egl@lists.freedesktop.org \
--cc=geert@linux-m68k.org \
--cc=jonsmirl@gmail.com \
--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.