From c15af11534b26d46c2911ee9a52ac934597d8fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 3 Nov 2014 14:35:07 +0000 Subject: [PATCH] drm: When reading connector mode tunables, list connectors ... and their associated tunables. This gives a way to know the list of available connectors, no matter the driver. The problem is that xrandr(1) can list connectors but it uses a different naming. MFC after: 1 week --- sys/dev/drm2/drm_fb_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/drm2/drm_fb_helper.c b/sys/dev/drm2/drm_fb_helper.c index 7803995c0142..2eb41a51dc7f 100644 --- a/sys/dev/drm2/drm_fb_helper.c +++ b/sys/dev/drm2/drm_fb_helper.c @@ -118,6 +118,9 @@ fb_get_options(const char *connector_name, char **option) */ snprintf(tunable, sizeof(tunable), "kern.vt.fb.modes.%s", connector_name); + DRM_INFO("Connector %s: get mode from tunables:\n", connector_name); + DRM_INFO(" - %s\n", tunable); + DRM_INFO(" - kern.vt.fb.default_mode\n"); *option = kern_getenv(tunable); if (*option == NULL) *option = kern_getenv("kern.vt.fb.default_mode");