11.03.2015 21:18, Alexander E. Patrakov wrote: > 11.03.2015 00:42, Alexander E. Patrakov wrote: >> So it may be a good idea to retest the new module without >> module-stream-restore. I will do that tomorrow. > > Done. Result: it moves the streams from mpv (including active ones) > between headphones and HDMI, approximately as expected. So I suggest > either adding a patch to the series that prohibits module-stream-restore > from restoring the device, or adding an explicit "follow the default > sink" target for moving playback streams to. > > And VLC does its own selection of playback device, so the module has no > effect on it. > One more annoyance found. To support the "use HDMI if the TV is on" logic, I have made the HDMI sink the default. However, this has an unfortunate side effect: now MATE volume control applet controls HDMI volume. I would like it to control the volume of my headphones if HDMI is not available, but, to do so, I would need to make the analog output the default - which breaks the "prefer HDMI" logic. So I am not sure whether I like the idea of reading the user's mind about port priorities from his actions. -- Alexander E. Patrakov