Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Raspberry pi hdmi standby



  • I'm using Qt on my raspberry (paltform eglfs), and would like to have ability to put display to sleep, and later turn it on (CEC will not work with some of monitors). Turning monitor off work fine with "tvservice -o", however after turning it back on ("tvservice -p" )) application needs to be restarted to restore EGL, otherwise screen is black. This command works if only console is displayed.
    Is there a option to re-initialize EGL in Qt5 to restore screen?



  • You can use vcgencmd display_power 0 to turn off HDMI and vcgencmd display_power 1 to turn it back on.



  • @Andrei
    Sorry for delay. Your solution works perfect :). Thanks for help ;).