[GH-ISSUE #19] Add Display Remote Control #18

Open
opened 2026-03-03 11:13:22 +03:00 by kerem · 12 comments
Owner

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.

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.
Author
Owner

@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?

<!-- gh-comment-id:2240385988 --> @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?
Author
Owner

@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-utils for the cec-client tool.

This request seems very similar to how chilipie-kiosk have these features implemented.

<!-- gh-comment-id:2241336367 --> @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-utils` for the `cec-client` tool. This request seems very similar to how [chilipie-kiosk](https://github.com/jareware/chilipie-kiosk/blob/master/home/crontab.example) have these features implemented.
Author
Owner

@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/

<!-- gh-comment-id:2254678723 --> @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/
Author
Owner

@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?

<!-- gh-comment-id:2259320387 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:2261977453 --> @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? <sub>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.</sub>
Author
Owner

@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

<!-- gh-comment-id:2392442539 --> @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
Author
Owner
<!-- gh-comment-id:2401136574 --> @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
Author
Owner
<!-- gh-comment-id:2401136860 --> @andiohn commented on GitHub (Oct 9, 2024): https://github.com/jareware/chilipie-kiosk/blob/master/home/display-on.sh
Author
Owner

@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.

<!-- gh-comment-id:2402820551 --> @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.
Author
Owner

@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

<!-- gh-comment-id:2402835271 --> @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
Author
Owner

@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

<!-- gh-comment-id:2402836874 --> @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
Author
Owner

@debloper commented on GitHub (Oct 12, 2024):

however now I need to trigger pressing F11 after setting the mode
It does go back to full screen but not in F11 mode

You should be able to use wtype to send FK11 (iirc, not entirely sure about the key name & their documentation is weak) to go back to F11 fullscreen mode.

<!-- gh-comment-id:2408697175 --> @debloper commented on GitHub (Oct 12, 2024): > however now I need to trigger pressing F11 after setting the mode > It does go back to full screen but not in F11 mode You should be able to use `wtype` to send `FK11` (iirc, not entirely sure about the key name & their documentation is weak) to go back to F11 fullscreen mode.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/xiosk#18
No description provided.