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
I'm just wondering whether there is any way of disabling the display when using the DRM embedder? I guess in DRM terms, that means disabling the CRTC, which will have the knock-on effect of disabling the display further down the chain.
If not, it's a problem I'm prepared to tackle myself (and contribute, if it's a useful feature). However I'm not an expert in flutter. Do you have any recommendation around how to signal down from the flutter app to the embedded to indicate that the display must be turned off? Could it be as simple as just detecting a frame that contains only black pixels?
The text was updated successfully, but these errors were encountered:
I'm just wondering whether there is any way of disabling the display when using the DRM embedder?
No, there isn't.
Do you have any recommendation around how to signal down from the flutter app to the embedded to indicate that the display must be turned off? Could it be as simple as just detecting a frame that contains only black pixels?
If my understanding is correct, official flutter doesn't support screen controls (on/off) including platform specific functions as it's just UI framework. Instead, flutter provides plugin interface.
As this issue still opened, I'm going to answer anyway.
Do you have any recommendation around how to signal down from the flutter app to the embedded to indicate that the display must be turned off? Could it be as simple as just detecting a frame that contains only black pixels?
Thankfully, Flutter on Linux is now supporting Unix Socket. Thus, you can create a daemon program that listen signal from Flutter via Unix Socket then switch off the display backlight, as example. To conserve power, you could either use systemd to do sleep procedure or use SIGSTOP and SIGCONT to temporarily pause the Flutter.
I'm just wondering whether there is any way of disabling the display when using the DRM embedder? I guess in DRM terms, that means disabling the CRTC, which will have the knock-on effect of disabling the display further down the chain.
If not, it's a problem I'm prepared to tackle myself (and contribute, if it's a useful feature). However I'm not an expert in flutter. Do you have any recommendation around how to signal down from the flutter app to the embedded to indicate that the display must be turned off? Could it be as simple as just detecting a frame that contains only black pixels?
The text was updated successfully, but these errors were encountered: