tvos - disable autosleep and wake on hdmi

This commit is contained in:
ari committed 2026-09-15 13:04:00 -04:00
1 parent 9824f0474e
commit a89641769b
6 files changed
+67 -2

No files matched your search

+35 -1
View File
@@ -84,15 +84,49 @@
{ name = "libpipewire-module-raop-discover"; }
];
};
wireplumber.extraConfig."51-hdmi-tv" = {
# Stop remembering the analog profile between boots — always prefer HDMI.
"wireplumber.settings" = {
"device.restore-profile" = false;
"device.restore-routes" = false;
};
# ACP ranks analog-stereo (6565) above hdmi-stereo (5900) by default;
# override that so the LG TV (hdmi-output-0, confirmed via ELD) wins.
"device.profile.priority.rules" = [
{
matches = [{ "device.name" = "alsa_card.pci-0000_00_1f.3"; }];
actions.update-props.priorities = [ "output:hdmi-stereo" ];
}
];
# Make the resulting HDMI sink win the default-sink vote too.
"monitor.alsa.rules" = [
{
matches = [{ "node.name" = "~alsa_output.*hdmi.*"; }];
actions.update-props."priority.session" = 2000;
}
];
};
};
security.rtkit.enable = true;
# Let the logged-in session (not just root) open the CEC device, so
# Hyprland can drive the TV without sudo.
services.udev.extraRules = ''
SUBSYSTEM=="cec", MODE="0664", TAG+="uaccess"
'';
# Disable auto-suspend/hibernate — always-on TV box
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
# Send audio to AirPlay speakers
services.avahi.enable = true;
# AirPlay receiver
services.shairport-sync = {
enable = true;
arguments = "-o pw";
arguments = "-o pipewire";
};
}