[PATCH v4 4/6] libweston: fbdev: set fb device info upon the first run.

nerdopolis bluescreen_avenger at verizon.net
Sat Nov 18 18:41:32 UTC 2017


This attempts to wake up secondary framebuffer devices
(/dev/fb1 and up) as usually these devices start powered off, and
the FBIOPUT_VSCREENINFO ioctl turns it on. This was tested on a
qemu system with the options:

-vga none -device VGA,id=video0 -device secondary-vga,id=video1 \
-device secondary-vga,id=video2
---
 libweston/compositor-fbdev.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libweston/compositor-fbdev.c b/libweston/compositor-fbdev.c
index 2756d587..b9be5455 100644
--- a/libweston/compositor-fbdev.c
+++ b/libweston/compositor-fbdev.c
@@ -361,6 +361,14 @@ fbdev_frame_buffer_open(const char *fb_dev,
 		return -1;
 	}
 
+	/* Attempt to correct the framebuffer settings */
+	if (fbdev_set_screen_info(output, fd,
+	                          screen_info) < 0) {
+		weston_log("Failed to set mode settings. "
+		           "Attempting to open output anyway.\n");
+	}
+
+
 	return fd;
 }
 
-- 
2.14.1



More information about the wayland-devel mailing list