summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm2/drm_fb_helper.c
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2014-11-03 14:35:07 +0000
committerdumbbell <dumbbell@FreeBSD.org>2014-11-03 14:35:07 +0000
commit439cae53d1c00749b980feeda1c530da1f483561 (patch)
treef5a388b21e658e7cf7ffc33ac5c9659a6d8810cf /sys/dev/drm2/drm_fb_helper.c
parent8969e775550978c1c5fed290d41cf9bcb171e735 (diff)
downloadFreeBSD-src-439cae53d1c00749b980feeda1c530da1f483561.zip
FreeBSD-src-439cae53d1c00749b980feeda1c530da1f483561.tar.gz
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
Diffstat (limited to 'sys/dev/drm2/drm_fb_helper.c')
-rw-r--r--sys/dev/drm2/drm_fb_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/drm2/drm_fb_helper.c b/sys/dev/drm2/drm_fb_helper.c
index 7803995..2eb41a5 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");
OpenPOWER on IntegriCloud