You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the screen is not powered on then flutter-pi fails with this:
[flutter-pi] Device "/dev/dri/card0" doesn't have a display connected. Skipping.
[flutter-pi] Could not find a connected connector!
In my case I can't guarantee that the screen will be on by the time flutter-pi is ran so how can I make flutter-pi run headless if no screen is connected/powered on and then maybe adjust after a screen is on?
Previously my app was written in pyqt and the pi was using the old framebuffer driver where I had to force a specific HDMI mode so that it works if the screen is connected or not, now I have rewritten my app in flutter and I'm stuck
The text was updated successfully, but these errors were encountered:
Using fkms driver and setting hdmi_force_hotplug=1 seems to work and the app is able to start at boot even when no screen is connected.and apparently adjust the resolution automatically when a screen is later connected.
But does this have any drawback?
Is the fkms driver well supported by flutter-pi?
Is it possible to achieve the same results with kms driver?
The fkms driver showed some flickering in the past (even though vsync is enabled), at least on DSI. Not sure that's still the case
Is the fkms driver well supported by flutter-pi?
Yep, same as the KMS one
Is it possible to achieve the same results with kms driver?
Don't think so I'm afraid, flutter itself doesn't support display hotplugging or multi-display, so any solution would require flutter-pi to fake a display itself. That's quite hacky and also requires some fundamental modesetting changes but the benefit is pretty small. I'll rather wait till flutter has true multi-display & display hotplugging support (that's WIP at the moment, but you can already see some of the work in flutter stable) and then implement it using that
If the screen is not powered on then flutter-pi fails with this:
In my case I can't guarantee that the screen will be on by the time
flutter-pi
is ran so how can I make flutter-pi run headless if no screen is connected/powered on and then maybe adjust after a screen is on?Previously my app was written in
pyqt
and the pi was using the old framebuffer driver where I had to force a specific HDMI mode so that it works if the screen is connected or not, now I have rewritten my app in flutter and I'm stuckThe text was updated successfully, but these errors were encountered: