summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_sysfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
index f7853ca0..817678bc 100644
--- a/lib/igt_sysfs.c
+++ b/lib/igt_sysfs.c
@@ -537,13 +537,14 @@ void kick_fbcon(bool enable)
if (len >= 0)
buf[len] = '\0';
- if (!strstr(buf, "frame buffer device"))
+ if (!strstr(buf, enable ? "dummy device" :
+ "frame buffer device"))
continue;
sprintf(buf, "%s/%s/bind", path, de->d_name);
fd = open(buf, O_WRONLY);
if (fd != -1) {
- igt_ignore_warn(write(fd, enable ? "1\n" : "0\n", 2));
+ igt_ignore_warn(write(fd, "0\n", 2));
close(fd);
}
}