All of lore.kernel.org
 help / color / mirror / Atom feed
* Mode Setting through libdrm
@ 2016-03-09 13:15 Alberto Simón Francés
  2016-03-09 16:05 ` Ville Syrjälä
  0 siblings, 1 reply; 2+ messages in thread
From: Alberto Simón Francés @ 2016-03-09 13:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1353 bytes --]

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.

Best regards,
Alberto

[-- Attachment #1.2: Type: text/html, Size: 1583 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mode Setting through libdrm
  2016-03-09 13:15 Mode Setting through libdrm Alberto Simón Francés
@ 2016-03-09 16:05 ` Ville Syrjälä
  0 siblings, 0 replies; 2+ messages in thread
From: Ville Syrjälä @ 2016-03-09 16:05 UTC (permalink / raw)
  To: Alberto Simón Francés; +Cc: dri-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-09 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 13:15 Mode Setting through libdrm Alberto Simón Francés
2016-03-09 16:05 ` Ville Syrjälä

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.