I have tried everything I can think of to make this work, but there's a
roadblock at the end of every path.

1.  Scripts in /etc/apm/{resume,suspend}.d do not appear to run at all in 
Oneiric.
2.  Scripts in /etc/pm/sleep.d do run, however...
a.  using alsactl doesn't do anything, perhaps because of a conflict with 
PulseAudio.  However, using alsactl manually, after the system has finished 
resuming, works fine.
b.  Using pactl at suspend time causes suspend to fail completely.  I have no 
idea why--all I know is that if I run "pactl set-sink-mute 0 1" at suspend 
time, suspending doesn't happen.  If I run it only at resume time, suspend 
works, but...
c.  Using pactl at resume time doesn't do anything.  But if I run "pactl 
set-sink-mute 0 1" after I've resumed and logged back in, it works fine.

I even tried removing the executable bit from /sbin/alsactl, just in
case the store/restore was conflicting with PA...but that made no
difference.

It seems like there is just no way to make the system mute itself when
suspending or resuming.  I guess there is some race condition somewhere,
maybe ALSA or PA are not ready yet when the scripts try to control them.
The obvious solution is to mute it when suspending, but as I said, that
causes suspend to completely fail for no apparent reason.

I'd really like to not have to worry about my system making noise when I
open it up in a library, etc because I forgot to mute it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/364973

Title:
  Mute sound on resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/364973/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to