I have tried to start the script and the service published in Reddit but without success, it seems to me a good idea to monitor the changes inside /proc/asound/card1/pcm0p/sub0/status
to automate the silence in pulseaudio.
on the other hand I am trying to create my own script, which I cannot with what someone else built I hope that my own construction of positive results or that at least it helps me to better understand what the other person did.
for those who doubt the operation of:
/etc/pulse/default.pa
load-module module-suspend-on-idle
I want to confirm that it works correctly for some reason the sound card does not obey the total power cut.
to check the correct operation of:
load-module module-suspend-on-idle
just run:
watch pacmd list-sinks
to go out:
ctrl+c
the line to observe is this:
state: RUNNING
suspend cause: (none)
after 5 seconds without using audio it should change to this:
state: SUSPENDED
suspend cause: IDLE