Files

20 lines
1006 B
Desktop File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 周期性verify严格退出码失败则 PCI reset + doctor --fix再 verify。
# 需1) 桌面用户登录会话 2) sudoers NOPASSWD 指向 reset-sof-hdmi-pci.sh 绝对路径
#
# 安装(将 @REPO@ 换成仓库路径):
# mkdir -p ~/.config/systemd/user
# sed "s|@REPO@|$HOME/文档/chromebox_10th_audio_driver|g" kaisa-hdmi-watchdog.service > ~/.config/systemd/user/kaisa-hdmi-watchdog.service
# chmod +x @REPO@/scripts/kaisa-audio-hdmi-watchdog.sh @REPO@/scripts/kaisa-audio-doctor.sh @REPO@/scripts/reset-sof-hdmi-pci.sh
# systemctl --user daemon-reload
# systemctl --user enable --now kaisa-hdmi-watchdog.timer
#
[Unit]
Description=Kaisa HDMI: verify then reset+fix on failure (watchdog one-shot)
After=wireplumber.service pipewire-pulse.service pipewire.service
Wants=wireplumber.service
[Service]
Type=oneshot
# 单次周期;间隔由 .timer 控制。默认仅测已连接 HDMI--only-connected
ExecStart=@REPO@/scripts/kaisa-audio-hdmi-watchdog.sh --loops 1