On Thu, 2022-02-17 at 17:39 -0800, Mike Wright wrote:
There is a java app that writes directly to the pulseaudio MASTER channel at full volume twice a day. I'm pretty sure the neighbors hear it. My idea is to use crontab to run at 12:59 Monday- Friday. It waits 59 seconds, mutes the audio, waits 6 more seconds and unmutes the audio. From the command line it works. I can't make it work using crontab. It does show up in the syslog.
Is the offending app run in your name, are you logged in all the time? If so, perhaps running your mute function as a personal cron item rather than a system one.
I think any muting would have to be done as the same user as the app.
I presume you can't fix the app, perhaps you can nobble it. Can you replace the sound file it plays? Perhaps you can ban it from pulseaudio.