I don't know DLNA, but the following may be useful: - checking for a known path with lsof to detect opened files - looking at the amount of packets coming in/out of the network card (a weak hint, and the counter rolls over at 4GB in a 32bit OS) - using a firewall rule (or opening a raw/divert socket) on a known port on the local host to get hit when traffic occurs on the port (the idea is to transparently mirror traffic, the way to do this is OS dependent AFAIK)
Also I am using FIFO pipes to keep a window of a few recent activity hints and only vote for idle when the pipe is totally empty. This allows giving more or less slack time according to the item being measured and also compensating for temporary glitches in the detection. Hence it potentially improves comfort and/or reliability compared to a single measure leading to a vote. In the logs I use a representation such as this, I think it will carry the idea: "SMB server: [ 0 0 1 1 0 1 ] -> 1 (active)" (when all ones have shifted to the right and the pipe is only filled with zeros, the vote is 0 idle). -- epoch1970 Daily dose delivered by: 2 SB Classic (fw 130), 1 SB Boom (fw 50) SqueezeCenter 7.3.4 (Debian 5.0) with plugins: ContextMenu, SaverSwitcher by Peter Watkins Server Power Control by Gordon Harris WeatherTime by Martin Rehfeld IRBlaster by Gwendesign (Felix) FindArt, CDplayer by bpa BBC iPlayer, SwitchPlayer by Triode PowerSave by Jason Holtzapple TrackStat by Erland Isaksson. ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=49028
_______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
