[PATCH 12/21] [drm] don't run on non-virtual terminals
Scott James Remnant
scott at ubuntu.com
Wed Mar 17 21:47:23 PDT 2010
We only need support DRM on virtual terminals, those that are not
such as serial consoles, can be trivially skipped.
---
src/plugins/renderers/drm/plugin.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/plugins/renderers/drm/plugin.c b/src/plugins/renderers/drm/plugin.c
index f4e3dde..6d4ce9b 100644
--- a/src/plugins/renderers/drm/plugin.c
+++ b/src/plugins/renderers/drm/plugin.c
@@ -502,6 +502,13 @@ open_device (ply_renderer_backend_t *backend)
return false;
}
+ if (!ply_terminal_is_vt (backend->terminal))
+ {
+ ply_trace ("terminal is not a VT");
+ ply_terminal_close (backend->terminal);
+ return false;
+ }
+
ply_terminal_watch_for_active_vt_change (backend->terminal,
(ply_terminal_active_vt_changed_handler_t)
on_active_vt_changed,
--
1.7.0
More information about the plymouth
mailing list