dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Alberto Simón Francés" <alberto@simon.ph>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: Mode Setting through libdrm
Date: Wed, 9 Mar 2016 18:05:59 +0200	[thread overview]
Message-ID: <20160309160559.GY10446@intel.com> (raw)
In-Reply-To: <CAGxbNKc4LgfodiZnPEApe4jEmbOuqJvcm5ciTCUR5s_-oCBnYw@mail.gmail.com>

On Wed, Mar 09, 2016 at 10:15:17AM -0300, Alberto Simón Francés wrote:
> Hello,
> 
> I have a question with regards to the libdrm library. I'm currently working
> on an app that relies on KMS, DRM and EGL to output accelerated graphics
> without a display server in between. It does so to reduce input latency.
> The system this app will run is connected to a CRT monitor and I'd like to
> be able to switch resolutions in order to use the best resolution depending
> on the input of the user and do so as fast as possible. I understand that
> this might pose problems to the user but it will run on a custom
> installation of Linux devoted just to this application. It doesn't need to
> interact with other apps at all.
> 
> The problem I have is that I haven't found info on how I would go about
> doing this with libdrm. I need to be able to set custom timings to drive
> the display, since it's not just about driving the monitor with standard
> resolutions. This monitor doesn't report correct EDID info and won't report
> it either. Currently it's using a single default resolution I baked in, but
> the idea is to be able to switch between them.
> 
> I know that this is possible by drivers, I've seen examples in the drivers
> themselves, but I still haven't been able to make the connection since the
> documentation on the specific calls, functions and structures is sparse.
> 
> I'd appreciate any help you could give me or any pointers.

Just populate a drmModeModeInfo with whatever custom timings you want,
and then feed it to drmModeSetCrtc().

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2016-03-09 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09 13:15 Mode Setting through libdrm Alberto Simón Francés
2016-03-09 16:05 ` Ville Syrjälä [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=20160309160559.GY10446@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=alberto@simon.ph \
    --cc=dri-devel@lists.freedesktop.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