Switch musicdolphin's screen from the IR remote's power key

pi_kiosk installs kiosk-screen on|off|toggle|status, which switches the monitor via
DPMS on the kiosk's X display (the Dell P2419H has no HDMI-CEC). Turning it back on
also turns DPMS off again, as .xinitrc does, so the screen never blanks by itself.

musicdolphin's backend config runs `kiosk-screen toggle` for the power key (the new
screen: section, MusicMouse 2d0caeb). config.yml is install-once, so the running host
is changed by hand the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-03 16:13:29 +02:00
parent 84b0470b49
commit ea00e045f9
4 changed files with 65 additions and 0 deletions

View File

@@ -78,6 +78,11 @@ general:
port: 8765
remote_name: "hauppauge"
# The remote's power key switches the monitor off and on. kiosk-screen is pi_kiosk's:
# it asks X whether the monitor is on and flips it, so nothing here tracks the state.
screen:
toggle_command: /usr/local/bin/kiosk-screen toggle
# Backlight of the prev/next buttons while a figure is playing, 0..1. Inert here
# (no mouse), kept so the file reads the same as the other hosts'.
button_leds_brightness: 0.5