[pulseaudio-tickets] [PulseAudio] #26: Support for nice suspend

PulseAudio trac-noreply at tango.0pointer.de
Wed Sep 27 03:30:22 PDT 2006


#26: Support for nice suspend
---------------------------+------------------------------------------------
  Reporter:  art at ified.ca  |       Owner:  lennart
      Type:  enhancement   |      Status:  new    
  Priority:  low           |   Milestone:         
 Component:  daemon        |    Severity:  minor  
Resolution:                |    Keywords:         
---------------------------+------------------------------------------------
Comment (by cjvdb):

 I've experimented with suspend and pulseaudio quite a bit. I'm using
 s2disk from the new uswsusp package. This is basically what works for me:

 before suspend:
 {{{
 load-module module-null-sink
 set-default-sink {null-sink-id}
 }}}

 Now I suspend, and sometime later resume. During the suspend/resume cycle
 the alsa devices are forced closed by the kernel (or perhaps the
 temorarily disappear, not sure) and pa reacts by unloading the modules.
 When this happens pa rescues all streams to the null sink. This works
 great.

 after resume:
 {{{
 load-module module-hal-detect
 set-default-sink {id-of-first-alsa-sink}
 unload-module {id-of-module-null-sink}
 }}}

 This all works very well and gives me seamless audio output across
 suspends (at least from the application's perspective) the only tricky bit
 is figuring out the ids from scripts.

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/26>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list