-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Display Control (Sleep display, CEC Commands, blank display, screensaver time) #19
Comments
Hey thanks for filing the issues (and for using PiOSK)... glad you like it! I'm looking into HDMI/CEC - rather, looking into how to make it use as a trigger to control processes. If I understand this correctly, you want to use a consumer remote control to control (some aspects of) PiOSK, right? |
Did some preliminary research. As this is HDMI-only solution, might have to add this as an optional addon on the dashboard page to enable on demand. Will need This request seems very similar to how chilipie-kiosk have these features implemented. |
Here's a gist on HDMI/CEC: https://gist.github.com/rmtsrc/dc35cd1458cd995631a4f041ab11ff74 |
I used another one that would trigger the display to sleep using the wayfire commands, but it wouldn't have the browser fullscreen when coming back from suspend. If we used this method, it would work with all inputs? Might be a better way? |
It usually lakes less half a minute to start the kiosk mode... isn't it better just to shutdown when not needed and restart when the kiosk mode is needed? Any specific reason or benefit to specifically turn off the display or send device to sleep? I'm trying to ratify the implementation details between this issue and #28, and I think I need some clarity on the requirement. I am not accustomed to using TV/remote as part of my daily life, so I may be missing something obvious here; in that case please let me know. |
Hey @debloper, the reason for the CEC commands is then we can control the TV. Currently one of my signs is running 6 websites, it would be nice to have it turn on and off the TV just with a couple commands. If we have a scheduling type system, we should add 'turn on hdmi 1 display with CEC' and 'turn off hdmi 1 display with CEC' as options. Here's another idea. Use something like the result here? WayfireWM/wayfire#455 |
https://www.raspberrypi.com/documentation/computers/os.html#display_power-0-1-1-display This has some commands we can try with vcgencmd |
Ok, so according to this (raspberrypi/bookworm-feedback#67) I tried the following commands and it worked well. export WAYLAND_DISPLAY=wayland-1 but now we need to the specify the resolution some how. But It's close. |
Ok, this works great, however now I need to trigger pressing F11 after setting the mode. That's the only issue right now. You send the on command and then the mode command wlr-randr --output HDMI-A-1 --mode 1920x1080@60 |
It does go back to full screen but not in F11 mode. I'm thinking of scheduling the turn off the screen at like 10pm and then trigger the reboot to 6 in the morning and see if that does it |
You should be able to use |
This would be super handy! BTW, I love this.
The text was updated successfully, but these errors were encountered: