Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDMI signal does not turn off, only screen goes dark #156

Open
DorSusu opened this issue Jan 6, 2025 · 3 comments
Open

HDMI signal does not turn off, only screen goes dark #156

DorSusu opened this issue Jan 6, 2025 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@DorSusu
Copy link

DorSusu commented Jan 6, 2025

Hello, I know it from older modules that the 3.3 Volt hdmi signal is switched off after the set time has elapsed. With this module, however, only the screen goes black but the backlight is still active. It looks like a black screensaver. Apparently the hdmi signal is not switched off. I use vnc viewer to adjust and it's the same that the image turns black. Before it was the case that the monitor was disconnected but you still saw the desktop of the pi via vnc.

my system:

`- my senso: HC-501

  • Raspberry pi4B
  • hdmi mode: "7"
  • raspi-config: wayland settings: i am using W3 Labwc
    (with this settings i got no errors)
  • os-release:
    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
    NAME="Debian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=debian`

there is a solution that works for me:
WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-1 --off
Monitor goes off
WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-1 --on
Monitor goes on

--> However, it must then be set to wayfire with wayland in the raspi config

@bugsounet
Copy link
Owner

Hi,

there is a solution that works for me:
WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-1 --off
Monitor goes off
WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-1 --on
Monitor goes on

if works, it's the command used in Display mode: 3
code for on and code for off

Don't forget to change waylandDisplayName: "wayland-0", to waylandDisplayName: "wayland-1", in Display setting :)

@bugsounet bugsounet added the help wanted Extra attention is needed label Jan 7, 2025
@DorSusu
Copy link
Author

DorSusu commented Jan 7, 2025

i change config in MagicMirror to waylandDisplayName: "wayland-0", the screen turn off. in raspi-config i choose W3 Labwc Labwc windows manager with Wayland backend. with this solution, the hdmi signal switch off.
This setting also solves the error problem that popped up when turning the motion detector on and off.

The problem now is that when I use the Raspberry via VNC, the image is still black. As soon as you click on the image with the mouse, the monitor wakes up again and the HDMI signal is active again.
Previously, the HDMI signal was only active when the motion detector was triggered. The HDMI signal should therefore remain off until it is activated again by the motion detector.

@bugsounet
Copy link
Owner

When using VNC :

  • If monitor is OFF (in sleep mode) -> VNC will turn it on automaticaly on connect (monitor will wake up)
  • If monitor is ON -> monitor can't going in sleep mode

I didn't code this, it's probably directly related to VNC and/or wayland

When you leave VNC session, Monitor can turn on and off as usual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants