compositor-fbdev: detect the first fb device in the seat

Graphics / Wayland / Weston - nerdopolis [verizon.net] - 2 July 2018 12:29 EDT

This adds a function to detect the first framebuffer device in the current seat. Instead of hardcoding /dev/fb0, detect the device with udev, favoring the boot_vga device, and falling back to the first framebuffer device in the seat if there is none. This is very similar to what compositor-drm does to find display devices

4381040d compositor-fbdev: detect the first fb device in the seat
libweston/compositor-fbdev.c | 85 ++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 82 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share