Re: [Alsa-user] how to detect activity or non activity on soundcard

2012-03-25 Thread Robert Bude
Thanks Torsten for your very good and exact answer i now use parallel to the preshutdownscript of mythtv your script in an light edited style if silence is detected your script kills vlc, mythtvfrontend and rhytmbox instances. Then my existing preshutdown script returns 0 so the

[Alsa-user] how to detect activity or non activity on soundcard

2012-03-23 Thread Robert Bude
hi everybody, at home i have a mythbuntu media pc. it will shutdown if no tv recording is sheduled and no user programs like mediaplayers webbrowsers and so on open. this works with an preshutdown script which simply checks if one of the programs i define is still active. this works very good.

Re: [Alsa-user] how to detect activity or non activity on soundcard

2012-03-23 Thread Torsten Schenk
Hello Robert, take a look into the /proc/asound folder, there you find alsa status informations. For example if I do a 'cat' on my PC on the file /proc/asound/card0/pcm0p/sub0/hw_params it returns closed if no sound is running and information about samplerate and so on if sound is running.