linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kronos <kronos@kronoz.cjb.net>
To: Otto Solares <solca@guug.org>
Cc: fb-devel <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: fbdev timings
Date: Mon, 15 Sep 2003 18:07:39 +0200	[thread overview]
Message-ID: <20030915160739.GC1980@dreamland.darkstar.lan> (raw)
In-Reply-To: <20030915073029.GA13799@guug.org>

Il Mon, Sep 15, 2003 at 01:30:29AM -0600, Otto Solares ha scritto: 
> finally i am coding the video part of a "desktop engine",
> but i want something that works profesionally, i'm using
> fbdev and embedded mesa for it, i am trying to get the
> video modes as automagically as posible, in that regard
> my plan is to hack get-edid (cause we don't have a proper
> mechanism from userspace, yea modedb is marked _init
> and the new edid just works in radeons and only usable
> too from kernelspace -end of critic :)

Userspace can access edid block via sysfs and can do its own parsing.

> into my software
> and fallback to a text database like hwdata to obtain
> monitor specs if edid doesn't work, but i have a problem,
> how i am supposed to construct fbdev timings with just
> this info:
> 
> - resolution (width x height, 800x600).
> - hsync range (31-49 Khz)
> - vsync range (48-80 hz)

You can use vesa_modes (in modedb.c) or you can use fb_get_mode (see
fbmon.c).

> i do know that is possible to contruct such timings
> because the monitor specs in windows xp are stored
> in /windows/inf/monitor.inf and contains only that
> variables.  Please any detailed response in how can
> they construct their timings with just this variables
> and how can i use it with fbdevs from userspace in 2.6?

You can get  the whole var usign ioctls. Also, once  the class_dev stuff
is in place  (I'll send patches in few minutes)  every driver can export
its own stuff via sysfs.

Luca
-- 
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
Non capisco tutta questa eccitazione per il Multitasking: 
io sono anni che leggo in bagno.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

      parent reply	other threads:[~2003-09-15 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-15  7:30 fbdev timings Otto Solares
2003-09-15  7:43 ` Geert Uytterhoeven
2003-09-16  6:43   ` Otto Solares
2003-09-15 16:07 ` Kronos [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=20030915160739.GC1980@dreamland.darkstar.lan \
    --to=kronos@kronoz.cjb.net \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=solca@guug.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 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).