@@ -1566,6 +1566,8 @@ int main(int argc, char **argv)
igt_fixture {
drm_fd = drm_open_any();
+ igt_set_vga_connector_state(drm_fd, FORCE_CONNECTOR_ON);
+
igt_set_vt_graphics_mode();
igt_install_exit_handler(kms_flip_exit_handler);
get_timestamp_format();
@@ -1613,6 +1615,11 @@ int main(int argc, char **argv)
}
igt_stop_signal_helper();
+ igt_fixture {
+ igt_set_vga_connector_state(drm_fd,
+ FORCE_CONNECTOR_UNSPECIFIED);
+ }
+
/*
* Let drm_fd leak, since it's needed by the dpms restore
* exit_handler and igt_exit() won't return.
@@ -135,6 +135,8 @@ igt_main
igt_fixture {
data.drm_fd = drm_open_any();
+ igt_set_vga_connector_state(data.drm_fd, FORCE_CONNECTOR_ON);
+
igt_set_vt_graphics_mode();
igt_require_pipe_crc();
@@ -164,5 +166,8 @@ igt_main
igt_fixture {
igt_display_fini(&data.display);
+
+ igt_set_vga_connector_state(data.drm_fd,
+ FORCE_CONNECTOR_UNSPECIFIED);
}
}
Signed-off-by: Thomas Wood <thomas.wood@intel.com> --- tests/kms_flip.c | 7 +++++++ tests/kms_pipe_crc_basic.c | 5 +++++ 2 files changed, 12 insertions(+)