Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2023-12-19 Thread Dylan Aïssi
Control: fixed -1 0.4.13-1

Hi Vincent,

Le lun. 18 déc. 2023 à 23:57, Vincent Lefevre  a écrit :
>
> FYI, I have a new laptop, where I use wireplumber 0.4.13-1
> (Debian stable) with the same Bluetooth devices (speakers and
> headphones), and there are no such problems with it.

That is a good news!

> So either the bug has been fixed in wireplumber 0.4.13-1 or there
> has been something else on the old laptop that broke wireplumber.
>

I don't see any change in the changelog of 0.4.13 that could be related to
this bug. As we have no other clues, I tag this bug as fixed with 0.4.13-1
without closing it.

Best regards,
Dylan



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2023-12-18 Thread Vincent Lefevre
Hi,

On 2022-10-09 02:48:27 +0200, Vincent Lefevre wrote:
> On 2022-10-05 09:45:03 +0200, Dylan Aïssi wrote:
> > Control: fixed -1 0.4.12-1
> [...]
> > I just uploaded the new wireplumber version with this feature in sid.
> > I wait your feedback to close (or not) this bug.
> 
> It is not fixed (same issue as previously), and worse, it appears
> to be rather broken: in VLC, when stopping and playing again, I get
> "Unknown output" and no sound at all! And each time I try, I get a
> new VLC instance in pavucontrol! I've attached a screenshot.
> 
> To reproduce:
>   1. In pavucontrol, while VLC is playing, select the headphones.
>   2. Switch off the headphones.
>  -> The output is now the speakers. OK.
>   3. Switch on the headphones.
>  -> The output is still the speakers. Bad (this is this bug).
>   4. Stop in VLC.
>   5. Play in VLC.
>  -> pavucontrol shows "Unknown output" for VLC. No sound.
>  Still no sound if I select the speakers or the headphones.

FYI, I have a new laptop, where I use wireplumber 0.4.13-1
(Debian stable) with the same Bluetooth devices (speakers and
headphones), and there are no such problems with it.

So either the bug has been fixed in wireplumber 0.4.13-1 or there
has been something else on the old laptop that broke wireplumber.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-10-08 Thread Vincent Lefevre
Control: found -1 0.4.12-1

On 2022-10-05 09:45:03 +0200, Dylan Aïssi wrote:
> Control: fixed -1 0.4.12-1
[...]
> I just uploaded the new wireplumber version with this feature in sid.
> I wait your feedback to close (or not) this bug.

It is not fixed (same issue as previously), and worse, it appears
to be rather broken: in VLC, when stopping and playing again, I get
"Unknown output" and no sound at all! And each time I try, I get a
new VLC instance in pavucontrol! I've attached a screenshot.

To reproduce:
  1. In pavucontrol, while VLC is playing, select the headphones.
  2. Switch off the headphones.
 -> The output is now the speakers. OK.
  3. Switch on the headphones.
 -> The output is still the speakers. Bad (this is this bug).
  4. Stop in VLC.
  5. Play in VLC.
 -> pavucontrol shows "Unknown output" for VLC. No sound.
 Still no sound if I select the speakers or the headphones.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-10-05 Thread Dylan Aïssi
Control: fixed -1 0.4.12-1

Hi Vincent,

Le ven. 30 sept. 2022 à 16:30, Dylan Aïssi  a écrit :
>
> If this module if not loaded, then your autoswitch is done via a behavior of
> pulseaudio which prioritize previous configured defaults. The same logic has
> just been merged in wireplumber and should be available in the next release 
> [3].
>

I just uploaded the new wireplumber version with this feature in sid.
I wait your feedback to close (or not) this bug.

Best,
Dylan



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-30 Thread Dylan Aïssi
Hi Vincent,

Le jeu. 29 sept. 2022 à 12:39, Vincent Lefevre  a écrit :
>
> The problem is still there. The headphones autoconnect as usual but
> the audio is not switched to them automatically. I need to manually
> do the switch from pavucontrol. When I switch off the headphones,
> the audio is switched back to the bluetooth speakers automatically.
> When I switch on the headphones, the audio is still connected to
> the speakers. So the problem is reproducible.

I discussed technical details of this issue on #pipewire.

This autoswitch is not the default behavior of pulseaudio, but it can be
enabled using the module-switch-on-connect pulseaudio module [1] (the same
module is available for pipewire [2]). Usually, this module is not enabled by
default because it is too aggressive, so it might not be loaded in your case.

If this module if not loaded, then your autoswitch is done via a behavior of
pulseaudio which prioritize previous configured defaults. The same logic has
just been merged in wireplumber and should be available in the next release [3].

Dylan

[1] 
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-switch-on-connect
[2] 
https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#module-switch-on-connect
[3] https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/7a1b48b7



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-29 Thread Vincent Lefevre
Control: found -1 0.4.11-5

On 2022-09-27 10:29:15 +0200, Dylan Aïssi wrote:
> Le lun. 30 mai 2022 à 16:57, Vincent Lefevre  a écrit :
> >
> > On 2021-10-29 18:23:03 +0200, Vincent Lefevre wrote:
> > > I use bluetooth speakers by default. When I connect my bluetooth
> > > headphones, I want the system to automatically switch from the
> > > speakers to the headphones. This is how it behaved before the upgrade
> > > and the replacement of pipewire-media-session by pipewire-pulse,
> > > libspa-0.2-bluetooth and wireplumber.
> 
> Is this issue still reproducible with latest wireplumber 0.4.11-5
> available in sid?

The problem is still there. The headphones autoconnect as usual but
the audio is not switched to them automatically. I need to manually
do the switch from pavucontrol. When I switch off the headphones,
the audio is switched back to the bluetooth speakers automatically.
When I switch on the headphones, the audio is still connected to
the speakers. So the problem is reproducible.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-27 Thread Vincent Lefevre
Hi,

On 2022-09-27 10:51:55 +0200, Samuel Thibault wrote:
> Dylan Aïssi, le mar. 27 sept. 2022 10:29:15 +0200, a ecrit:
> > Is this issue still reproducible with latest wireplumber 0.4.11-5
> > available in sid?

I should be able to try tonight (I need to reinstall packages).

> On my system, for the output part the autoswitch has been working for a
> long time already. For the input part it is still not auto-switching
> with version 0.4.11-5.

Note that contrary to output autoswitch, input autoswitch is not done
with pulseaudio.

I'm not sure that input autoswitch is a good idea, at least while input
is being used: while the output level affects only the user, switching
input may have a bad effect in the middle of a video conference as the
new microphone has not been tested yet. If expected, I wonder whether
this is configurable (a tutorial and/or a FAQ would be useful).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-27 Thread Samuel Thibault
Dylan Aïssi, le mar. 27 sept. 2022 11:15:25 +0200, a ecrit:
> @Samuel What are the different input devices you want them autoswitched?

Tools report them as internal microphone vs headset microphone, on the
same internal audio device (the output is reported as speaker output vs
headset output).

Samuel



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-27 Thread Dylan Aïssi
Hi,

Le mar. 27 sept. 2022 à 10:51, Samuel Thibault  a écrit :
>
> Hello,
>
> Dylan Aïssi, le mar. 27 sept. 2022 10:29:15 +0200, a ecrit:
> > Le lun. 30 mai 2022 à 16:57, Vincent Lefevre  a écrit :
> > > On 2021-10-29 18:23:03 +0200, Vincent Lefevre wrote:
> > > > I use bluetooth speakers by default. When I connect my bluetooth
> > > > headphones, I want the system to automatically switch from the
> > > > speakers to the headphones. This is how it behaved before the upgrade
> > > > and the replacement of pipewire-media-session by pipewire-pulse,
> > > > libspa-0.2-bluetooth and wireplumber.
> >
> > Is this issue still reproducible with latest wireplumber 0.4.11-5
> > available in sid?
>
> On my system, for the output part the autoswitch has been working for a
> long time already. For the input part it is still not auto-switching
> with version 0.4.11-5.

I think this is a different issue than the one reported by Vincent that is the
bluetooth speakers route is preferred over the bluetooth headphones route,
thus the autoswitch doesn't work in his case. But, autoswitch works when there
is no bluetooth speakers in the equation.

@Samuel What are the different input devices you want them autoswitched?


Dylan



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-27 Thread Samuel Thibault
Hello,

Dylan Aïssi, le mar. 27 sept. 2022 10:29:15 +0200, a ecrit:
> Le lun. 30 mai 2022 à 16:57, Vincent Lefevre  a écrit :
> > On 2021-10-29 18:23:03 +0200, Vincent Lefevre wrote:
> > > I use bluetooth speakers by default. When I connect my bluetooth
> > > headphones, I want the system to automatically switch from the
> > > speakers to the headphones. This is how it behaved before the upgrade
> > > and the replacement of pipewire-media-session by pipewire-pulse,
> > > libspa-0.2-bluetooth and wireplumber.
> 
> Is this issue still reproducible with latest wireplumber 0.4.11-5
> available in sid?

On my system, for the output part the autoswitch has been working for a
long time already. For the input part it is still not auto-switching
with version 0.4.11-5.

Samuel



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-09-27 Thread Dylan Aïssi
Le lun. 30 mai 2022 à 16:57, Vincent Lefevre  a écrit :
>
> On 2021-10-29 18:23:03 +0200, Vincent Lefevre wrote:
> > I use bluetooth speakers by default. When I connect my bluetooth
> > headphones, I want the system to automatically switch from the
> > speakers to the headphones. This is how it behaved before the upgrade
> > and the replacement of pipewire-media-session by pipewire-pulse,
> > libspa-0.2-bluetooth and wireplumber.

Is this issue still reproducible with latest wireplumber 0.4.11-5
available in sid?
Several improvements have been made that could have fixed this issue.

Best,
Dylan



Bug#998073: wireplumber: fails to automatically switch to headphones when connected

2022-05-30 Thread Vincent Lefevre
Control: reassign -1 wireplumber 0.4.4-1
Control: retitle -1 wireplumber: fails to automatically switch to headphones 
when connected
Control: tags -1 upstream
Control: forwarded -1 
https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/267

On 2021-10-29 18:23:03 +0200, Vincent Lefevre wrote:
> I use bluetooth speakers by default. When I connect my bluetooth
> headphones, I want the system to automatically switch from the
> speakers to the headphones. This is how it behaved before the upgrade
> and the replacement of pipewire-media-session by pipewire-pulse,
> libspa-0.2-bluetooth and wireplumber. Note that this is particularly
> important when one isn't in front of the computer. But just after the
> upgrade, this no longer works.

This is actually a bug in wireplumber (the upstream bug moved to it
4 months ago).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)