Read the statement by Michael Teeuw here.
RPI4 Dual Monitor blanking
-
@wishmaster270 Thanks for the suggestion. Unfortunately not a timing issue.
Adding a delay didn’t change the behaviour. ☹️
-
After nearly a week of trying different things, short of removing the KMS driver or reverting to Buster, the only method I could come up with was to use the xset screensaver.
Set the timeout to 3 minutes
xset -display :0 s 180
and do
xset -display :0 s reset
to wake it up on motion.It’s not elegant but without any cec control of the monitor it appears to be my only solution, unless anyone has a method to get xrandr to keep electron on the correct monitor.
-
@grantc66
There are ways to move windows to a specific screen on the bash. But it is complicated.
Maybe one of the solutions in this thread solves your problem. -
For anyone having the same issue:
Another solution is to edit /boot/config.txt & change to the fake kms driver
dtoverlay=vc4-kms-v3d
to
dtoverlay=vc4-fkms-v3d
reboot & then
vcgencmd display_power 0 vcgencmd display_power 1
work as they used to do.
I’ve not noticed any negative effect from using the fake one but I’m not using any 3D effects (your results may vary).
-
For anyone having this issue:
Change the kms driver to the fake one by editing /boot/config.txt
change
dtoverlay=vc4-kms-v3d
to
dtoverlay=vc4-fkms-v3d
Reboot & display will now switch on/off using
vcgencmd display_power 0 vcgencmd display_power 1
I’ve not noticed any problems using the fake driver but I’m not using anything 3D (your results may be different)