mirror of
https://github.com/debloper/xiosk.git
synced 2026-04-26 21:35:51 +03:00
[GH-ISSUE #19] Add Display Remote Control #18
Labels
No labels
bug
bug
documentation
enhancement
enhancement
feature request
good first issue
good first issue
help wanted
invalid
priority: high
priority: low
priority: medium
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/xiosk#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andiohn on GitHub (Jul 18, 2024).
Original GitHub issue: https://github.com/debloper/xiosk/issues/19
Add sleep display, CEC Commands, blank display, screensaver time etc.
This would be super handy! BTW, I love this.
@debloper commented on GitHub (Jul 19, 2024):
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?
@debloper commented on GitHub (Jul 20, 2024):
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
cec-utilsfor thecec-clienttool.This request seems very similar to how chilipie-kiosk have these features implemented.
@debloper commented on GitHub (Jul 28, 2024):
Here's a gist on HDMI/CEC: https://gist.github.com/rmtsrc/dc35cd1458cd995631a4f041ab11ff74
And an excellent 'playground' to simulate HDMI/CEC commands: https://www.cec-o-matic.com/
@andiohn commented on GitHub (Jul 30, 2024):
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?
@debloper commented on GitHub (Aug 1, 2024):
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.
@andiohn commented on GitHub (Oct 3, 2024):
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? https://github.com/WayfireWM/wayfire/issues/455
@andiohn commented on GitHub (Oct 9, 2024):
https://www.raspberrypi.com/documentation/computers/os.html#display_power-0-1-1-display
This has some commands we can try with vcgencmd
https://forum.magicmirror.builders/topic/16865/mmm-remotecontrol-or-vcgencmd-issue/16?lang=en-GB&page=2
@andiohn commented on GitHub (Oct 9, 2024):
https://github.com/jareware/chilipie-kiosk/blob/master/home/display-on.sh
@andiohn commented on GitHub (Oct 9, 2024):
Ok, so according to this (https://github.com/raspberrypi/bookworm-feedback/issues/67) I tried the following commands and it worked well.
export WAYLAND_DISPLAY=wayland-1
wlr-randr --output HDMI-A-1 --off
wlr-randr --output HDMI-A-1 --on
but now we need to the specify the resolution some how. But It's close.
@andiohn commented on GitHub (Oct 9, 2024):
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
@andiohn commented on GitHub (Oct 9, 2024):
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
@debloper commented on GitHub (Oct 12, 2024):
You should be able to use
wtypeto sendFK11(iirc, not entirely sure about the key name & their documentation is weak) to go back to F11 fullscreen mode.