linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel THOMPSON <daniel.thompson@st.com>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH 2.6.17-rc6-mm2] fbdev: tag	by	scantype in sysfs
Date: Fri, 23 Jun 2006 09:04:41 +0100	[thread overview]
Message-ID: <1151049881.12499.18.camel@butch.bri.st.com> (raw)
In-Reply-To: <4497CE24.7050908@gmail.com>

On Tue, 2006-06-20 at 18:29 +0800, Antonino A. Daplas wrote:
> > I shared this worry which is why my original patch only tagged the,
> > comparatively rare, interlaced modes. However the current approach
> (no
> > optional fields) is slightly cleaner and I took the view that since
> > no-one on fbdev-devel seems to object ...
> > 
>         
> Okay.  But if we are going to break this, let's break it with
> finality.
> Does anyone believe that the above format is final? How about
> including
> sync signals too?
>         
> #define FB_SYNC_HOR_HIGH_ACT    1  /* horizontal sync high active  */
> #define FB_SYNC_VERT_HIGH_ACT   2  /* vertical sync high active    */
> #define FB_SYNC_EXT             4  /* external sync                */
> #define FB_SYNC_COMP_HIGH_ACT   8  /* composite sync high active   */
> #define FB_SYNC_BROADCAST       16 /* broadcast video timings      */

Any suggestions about how these should be added to the mode string?

> Secondly, that attribute 'modes' violate the 'one file, one value'
> rule of
> sysfs (and that includes 'virtual_size', and 'pan').  We need to clean
> these up.  How about something like this?

Strictly speaking so does the mode string. This is, in fact, why adding
information to it has the potential to break existing applications.

Ideally each mode should itself be a directory containing files like
hsize, vsize, scantype, vfreq ...

Given each mode directory would have a unique name we could then use
that to switch display modes (i.e. write an enumerated name rather than
a mode string).

The problem with this approach is I can't think of any way to do the
work currently performed by store_modes(). I would however like to know
if anyone actually uses this?

>  /sys/class/graphics---fb0
>                     :
>                     --fb1
>                     :
>                     --fbn
>                     :
>                     --mode0---640x480@60
>                     :       :
>                     :       --1024x768@60
>                     :  
>                     --mode1

So the directory mode0 contains all the modes that fb0 is capable of
displaying? Can't that go inside fb0?

Presumably fb0's existing mode file is replaced with a soft link to the
currently selected mode and a new file is introduced to change modes?

-- 
Daniel Thompson (STMicroelectronics) <daniel.thompson@st.com>
1000 Aztec West, Almondsbury, Bristol, BS32 4SQ. 01454 462659

If a car is a horseless carriage then is a motorcycle a horseless horse?


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-06-23  8:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-20  7:57 [PATCH 2.6.17-rc6-mm2] fbdev: tag by scantype in sysfs Daniel THOMPSON
2006-06-20  8:42 ` Antonino A. Daplas
2006-06-20  9:40   ` Daniel THOMPSON
2006-06-20 10:29     ` Antonino A. Daplas
2006-06-23  8:04       ` Daniel THOMPSON [this message]
2006-06-23  9:16         ` Geert Uytterhoeven
2006-06-23  9:50           ` Daniel THOMPSON
2006-06-23 12:00             ` Antonino A. Daplas
2006-06-23 20:23         ` Luca

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=1151049881.12499.18.camel@butch.bri.st.com \
    --to=daniel.thompson@st.com \
    --cc=adaplas@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 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).