All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Sokolovsky <pmiscml@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [RFC] Adding screen dimensions to machine configs
Date: Mon, 9 Jul 2007 15:43:03 +0300	[thread overview]
Message-ID: <128309124.20070709154303@gmail.com> (raw)
In-Reply-To: <f6q30v$s2$1@sea.gmane.org>

Hello openembedded-devel,


      To sum app current discussion:

Sunday, July 8, 2007, 10:16:46 AM, you wrote:


> Paul Sokolovsky schreef:
>> Hello openembedded-devel,
>> 
>>   We already discussed issue of providing more exact device screen
>> properties info than currently available screen classes "smallscreen"
>> and "bigscreen". I for one was proponent of staying with those classes
>> instead of hasting with introducing too many screen parameters without
>> proper way of handling them in OE. However, it's just the matter of
>> fact that at least the most basic of them, like screen dimensions are
>> already in use by more than one package (I can point to opie and
>> fbreader out of top of mind), and so far in adhoc manner, so
>> standardizing them would be beneficial.
>> 
>>   When discussing this on IRC, Marcin Juszkiewicz pointed me to Poky's
>> formfactor package, designed to query various device properties at
>> runtime (including current screen resolution).
>> http://svn.o-hand.com/view/poky/trunk/meta/packages/formfactor/

> Formfactor is a hack that does nothing what our Xserver scripts and HAL+OHM can't do.

  Oh, I guess it's the other way around - it's a simple config and
shell script which can do things for which whole big daemons with
gross dependencies are required ;-).

  More seriously, it makes no sense to ignore the fact that X with
freedesktop.org's novelties is not the only and won't become the only
choice for embedded GUI. Many adhoc toolkits pop up, and some of them
will be leveraged by vendors and it makes no sense to say that OE is
not place for them (though community distros are of course much less
interested in them). It would be nice to anticipate the need for a
lightweight, flexible, and consistent way to query device params for
them.

> And
> we were explicitly asked *not* to merge it into OE by someone from o-hand.

   Pity.

>>   I think that it is great tool, and we should merge and leverage it
>> in OE by all means. But it handles only runtime configuration,

> And we already have sufficient tools inplace to handle that, formfactor just muddies the
> waters.

  Hopefully cleans up, though yes, it opens question that GPE scripts
would be needed converted to it, etc.

> And if you take a closer look at formfactor, you'll notice it's internally
> inconsistent (e.g. dpi = resolution/size, but you need to specify all 3 in formfactor)

  If division is banned from kernel, why not ban it from shell
scripts? ;-)

>>    Now with formfactor around, I guess it would be nice to use
>> consistent variable names for the same info. Marcin still suggested to
>> use MACHINE_ prefix for build-time (i.e. machine config) variables.
>> So, the exact topic of this RFC is adding
>> 
>> MACHINE_DISPLAY_WIDTH_PIXELS=
>> MACHINE_DISPLAY_HEIGHT_PIXELS=
>> 
>> to machine configs.

> We can add those without adding formfactor.

  Sure, and only that is in immediate topic, of course.

> But what will those setting be for e.g. an nslu2 or efika board?

  As was pointed out, interpretation of those vars should depend on
presence of "screen" in machine features. And yes, then we need to set
their bitbake.conf default to 0, so only screen'ed machines specify
them.

  Also a note of exact semantics of those vars - they provide *some
default* screen resolution and orientation. Actually not some, but the
most appropriate after-install default. So, in particular,
notebook-style keyboarded devices would have:

MACHINE_DISPLAY_WIDTH_PIXELS=640
MACHINE_DISPLAY_HEIGHT_PIXELS=480

A device with vertical PDA layout would have

MACHINE_DISPLAY_WIDTH_PIXELS=480
MACHINE_DISPLAY_HEIGHT_PIXELS=640

  Otherwise, I assume the names are OK.

> regards,

> Koen



-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




  parent reply	other threads:[~2007-07-09 12:48 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08  1:11 [RFC] Adding screen dimensions to machine configs Paul Sokolovsky
2007-07-08  7:16 ` Koen Kooi
2007-07-08  8:39   ` Dr. Michael Lauer
2007-07-08  9:26   ` Richard Purdie
2007-07-08 12:00     ` Stanislav Brabec
2007-07-08 14:27       ` Richard Purdie
2007-07-09  0:53   ` Rod Whitby
2007-07-09  5:31     ` Stelios Koroneos
2007-07-09 12:43   ` Paul Sokolovsky [this message]
2007-07-09 13:17     ` Graeme Gregory
2007-07-09 13:35       ` Dr. Michael Lauer
2007-07-09 13:42         ` Graeme Gregory
2007-07-09 13:52           ` Dr. Michael Lauer
2007-07-09 14:03             ` Graeme Gregory
2007-07-09 14:19               ` Dr. Michael Lauer
2007-07-09 14:25                 ` Graeme Gregory
2007-07-09 14:40                   ` Paul Sokolovsky
2007-07-09 15:15                   ` Marcin Juszkiewicz
2007-07-09 20:30                     ` Koen Kooi
2007-07-09 22:03                       ` Richard Purdie
2007-07-09 15:44                 ` Florian Boor
2007-07-09 14:23               ` Marcin Juszkiewicz
2007-07-09 14:25               ` Paul Sokolovsky
2007-07-09 15:11                 ` Marcin Juszkiewicz
2007-07-09 13:57         ` Paul Sokolovsky
2007-07-09 13:41       ` Paul Sokolovsky
2007-07-09 15:55     ` Richard Purdie
2007-07-09 20:01       ` Dr. Michael Lauer
2007-07-09 20:19         ` Graeme Gregory
2007-07-09 20:44           ` Richard Purdie
2007-07-09 20:21         ` Koen Kooi
2007-07-09 21:36           ` Paul Sokolovsky
2007-07-09 21:21         ` Paul Sokolovsky
2007-07-10 10:33           ` Dr. Michael Lauer
2007-07-12 12:36             ` Paul Sokolovsky
2007-07-08 11:36 ` Michael Krelin

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=128309124.20070709154303@gmail.com \
    --to=pmiscml@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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.