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:
@@ -132,6 +132,13 @@
|
||||
mode: "0755"
|
||||
notify: Reload systemd and restart getty
|
||||
|
||||
- name: Install kiosk-screen (switches the monitor on and off)
|
||||
# Run by the MusicMouse backend for the IR remote's power key; see the template.
|
||||
ansible.builtin.template:
|
||||
src: kiosk-screen.j2
|
||||
dest: /usr/local/bin/kiosk-screen
|
||||
mode: "0755"
|
||||
|
||||
- name: Ensure the browser policy directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ '/etc/chromium/policies/managed' if pi_kiosk_browser == 'chromium' else '/etc/firefox-esr' }}"
|
||||
|
||||
Reference in New Issue
Block a user