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
This commit is contained in:
parent
00915f067f
commit
c15af11534
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user