Package: avahi-daemon
Version: 0.6.31-1
Followup-For: Bug #689808

I can confirm this bug. Remote pulse audio sinks always disapear from
the browse list when resuming from suspend, which is very annoying since
I use this feature regularly (sending sound to other machines on my
LAN).

I did not find the root cause, but adding a very simple script in the
post-suspend sequence to restart avahi-daemon does the trick very
nicely.

-- System Information:
Debian Release: 7.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages avahi-daemon depends on:
ii  adduser            3.113+nmu3
ii  bind9-host [host]  1:9.8.4.dfsg.P1-1
ii  dbus               1.6.8-1
ii  libavahi-common3   0.6.31-1
ii  libavahi-core7     0.6.31-1
ii  libc6              2.13-37
ii  libcap2            1:2.22-1.2
ii  libdaemon0         0.14-2
ii  libdbus-1-3        1.6.8-1
ii  libexpat1          2.1.0-1
ii  lsb-base           4.1+Debian8

Versions of packages avahi-daemon recommends:
pn  libnss-mdns  <none>

Versions of packages avahi-daemon suggests:
pn  avahi-autoipd  <none>

-- Configuration Files:
/etc/avahi/avahi-daemon.conf changed [not included]
/etc/network/if-up.d/avahi-daemon changed [not included]

-- no debconf information
#!/bin/sh

# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689808
# Avahi loses some DNS-SD entries upon resume and requires a looong time to
# catch up. Restarting avahi-daemon after resume fixes this annoyance and
# seems to have no painful secondary effect.

case $1 in
    (hibernate|suspend)
        ;;
    (thaw|resume)
        if [ -x /etc/init.d/avahi-daemon ]; then
          /etc/init.d/avahi-daemon restart
        fi
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac

Reply via email to