gnome mixer applet and suspend/resume.

Matt Zimmerman mdz at ubuntu.com
Mon Oct 1 10:13:06 BST 2007


On Sun, Sep 30, 2007 at 01:46:57PM +0200, Nick Barcet wrote:
> Tim Gardner wrote:
> > mdz has suggested that I distribute this to a wider audience.
> > 
> > On Wed, Sep 26, 2007 at 01:30:15PM -0600, Tim Gardner wrote:
> >> On platforms where the sound module must be removed prior to suspend or
> >> hibernate, is there an elegant way to stop the Gnome mixer applet? If
> >> you killall prior to suspending, upon resume Gnome pops up an annoying
> >> dialog and asks if you want to restart the mixer applet. I would like to
> >> be able to stash the state of the mixer applet, stop it,
> >> suspend/hibernate, resume, and finally restart the mixer applet.
> >>
> >> Suggestions appreciated.
> 
> I do not know how to fix the mixer itself, but you might want to use
> custom suspend/resume script as the acpi architecture allows for.
> 
> In /etc/acpi/suspend.d add an executable script that stops the mixer
> (killall mixer_applet2 should do the trick), and add a pending script in
> /etc/acpi/resume.d to restart it.
> 
> Hope this helps,

Tim wasn't having trouble running commands on suspend and resume events.
The problem is that randomly killing applets creates a bad experience for
the user (they are prompted with a dialog to restart the applet).  See
above.

-- 
 - mdz



More information about the ubuntu-devel mailing list