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

Wayland; Screen not turning off RPI 5 Bookworm #219

Closed
1liminal1 opened this issue Feb 26, 2024 · 9 comments
Closed

Wayland; Screen not turning off RPI 5 Bookworm #219

1liminal1 opened this issue Feb 26, 2024 · 9 comments

Comments

@1liminal1
Copy link

Hi guys,

I am trying to turn off a display for a Kiosk with a command

vc_gencmd_read_response does not work with Wayland

SO I tried WAYLAND_DISPLAY="wayland-1" wlr-randr --output HDMI-A-1 --off

And I get this same issue where it just logs the user out.

https://forums.raspberrypi.com/viewtopic.php?p=2196846&hilit=wlr+randr#p2196846

When can we get a fix for this?

Thanks

@lurch
Copy link
Collaborator

lurch commented Feb 26, 2024

I've just asked @spl237 about this, and he says that wlr-randr is the "wrong command" to be using to power screens off. He suggests setting a short DPMS time in .config/wayfire.ini instead, e.g.

[idle]
dpms_timeout = 10

will cause display to power-down after 10 seconds of inactivity.

@1liminal1
Copy link
Author

Thanks so much for that, but I want a command to turn off the screen. I want to do it based on presence passed from Home Assistant.

Thanks

@lurch
Copy link
Collaborator

lurch commented Feb 27, 2024

Any changes to .config/wayfire.ini get picked up immediately, so I guess you could write a script to change the value of dpms_timeout (or comment / uncomment it) ?

@1liminal1
Copy link
Author

Thats interesting, how would I turn the screen back on though?

Thanks :)

@lurch
Copy link
Collaborator

lurch commented Feb 27, 2024

I've just been testing on a Pi4 (running Wayfire) that I'm connected to over SSH - if I comment out the dpms_timeout value entirely, then the screen comes back on again 🙂

@1liminal1
Copy link
Author

Awesome, So I have a script and MQTT all set up, just need to get home to test.

Thanks for the ideas, ill let you know how I go :)

@1liminal1
Copy link
Author

No good :( It just logs me out whenever I add the dpms_timeout :(

Have you seen that?

@JamesH65
Copy link

Have you done a recent apt update? There was a recent fix for unexpected log outs that might be relevant.

@1liminal1
Copy link
Author

Thanks guys, I ditched native Raspian and went with DakOS. Maybe one day then can get it working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants