Bug 491077 - No headphone microphone available in the PA applet
Summary: No headphone microphone available in the PA applet
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-pa
Classification: Unmaintained
Component: applet (other bugs)
Version First Reported In: 6.1.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-31 18:41 UTC by zvova7890
Modified: 2024-09-30 16:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
SystemSettings and PA applet screenshoot (332.02 KB, image/png)
2024-07-31 18:41 UTC, zvova7890
Details
Sources list (28.77 KB, text/plain)
2024-09-23 14:47 UTC, zvova7890
Details
org.kde.plasma.volume applet stdout/stderr (4.38 KB, text/plain)
2024-09-28 16:50 UTC, zvova7890
Details
Extra logs (226.23 KB, text/x-log)
2024-09-30 12:23 UTC, zvova7890
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zvova7890 2024-07-31 18:41:34 UTC
Created attachment 172155 [details]
SystemSettings and PA applet screenshoot

SUMMARY
Since some Plasma release I lost my headphones microphone in the Plasma PA applet. But systemsettings contains it as well

STEPS TO REPRODUCE
1. Connect BT headphones
2. Switch to "headset" mode
3. Try to find microphone in the Plasma PA applet

OBSERVED RESULT
No Headset microphone in the Plasma PA applet

EXPECTED RESULT
Available Headset microphone in the Plasma PA applet

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
Memory: 58.6 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Micro Computer (HK) Tech Limited
Product Name: Venus series
Comment 1 Harald Sitter 2024-09-23 10:43:10 UTC
Is it listed in `pactl list sources`?
Comment 2 zvova7890 2024-09-23 14:47:14 UTC
Created attachment 173990 [details]
Sources list
Comment 3 zvova7890 2024-09-23 14:47:48 UTC
yes, and it also visible in the systemsettings
Comment 4 Harald Sitter 2024-09-25 11:40:35 UTC
It's very strange, I do not presently see why it would not appear in the applet list.

Can you maybe run `QT_LOGGING_RULES="org.kde.plasma.pulseaudio=true" plasmawindowed org.kde.plasma.volume` and post the output of that
Comment 5 zvova7890 2024-09-28 16:50:03 UTC
Created attachment 174173 [details]
org.kde.plasma.volume applet stdout/stderr

Here the output
Comment 6 zvova7890 2024-09-28 17:40:01 UTC
Hm, I'm checked on Ubuntu Neon, and it works as intended. Probably its because bluez or bluez-qt is older on Neon as it uses Ubuntu 22.04

Here is the output(little different devices because it is another computer, but it is also does not showing headset input on Arch Linux):

kf.plasma.quick: Applet preload policy set to 1
qml: 0
org.kde.plasma.pulseaudio: Changing preferred sink to PulseAudioQt::Sink(0x559d115a3b30) "alsa_output.pci-0000_00_1f.3.iec958-stereo"
org.kde.plasma.pulseaudio: Changing preferred sink to PulseAudioQt::Sink(0x559d115a3b30) "alsa_output.pci-0000_00_1f.3.iec958-stereo"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b7c60) "alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera_SN0001-02.analog-stereo"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b7c60) "alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera_SN0001-02.analog-stereo"
org.kde.plasma.pulseaudio: Changing preferred sink to PulseAudioQt::Sink(0x559d10f3a150) "bluez_output.84_0F_2A_1D_43_AA.headset-head-unit"
org.kde.plasma.pulseaudio: Changing preferred sink to PulseAudioQt::Sink(0x559d10f3a150) "bluez_output.84_0F_2A_1D_43_AA.headset-head-unit"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b5270) "bluez_input.84_0F_2A_1D_43_AA.headset-head-unit"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b5270) "bluez_input.84_0F_2A_1D_43_AA.headset-head-unit"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b7c60) "alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera_SN0001-02.analog-stereo"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b7c60) "alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera_SN0001-02.analog-stereo"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b5270) "bluez_input.84_0F_2A_1D_43_AA.headset-head-unit"
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x559d113b5270) "bluez_input.84_0F_2A_1D_43_AA.headset-head-unit"
Comment 7 Harald Sitter 2024-09-30 10:35:14 UTC
org.kde.plasma.pulseaudio: Changing preferred source to PulseAudioQt::Source(0x55da07465ca0) "bluez_input.84:0F:2A:1D:43:AA"
org.kde.pulseaudio: No object for name "bluez_input.84:0F:2A:1D:43:AA"

What the heck.

How are your compiling skills? I may need to fit in some extra debug output.
Comment 8 zvova7890 2024-09-30 11:30:51 UTC
Not a problem, will patch/built everything you need
Comment 9 Ismael Asensio 2024-09-30 11:39:04 UTC
(In reply to Harald Sitter from comment #7)
> org.kde.plasma.pulseaudio: Changing preferred source to
> PulseAudioQt::Source(0x55da07465ca0) "bluez_input.84:0F:2A:1D:43:AA"
> org.kde.pulseaudio: No object for name "bluez_input.84:0F:2A:1D:43:AA"
> 

Just for your sanity, the log from `qml: undefined` and below happens when closing the applet.

Doesn't explain the bug but hopefully avoids red herrings
Comment 10 Harald Sitter 2024-09-30 12:00:32 UTC
Oh! Perhaps it gets filtered in the UI then. Although since I already wrote the debug code let's look at the backend data first XD

If you could build the branch work/sitter/debugobject from https://invent.kde.org/libraries/pulseaudio-qt and get a log with 

`QT_LOGGING_RULES="org.kde.pulseaudio*=true" plasmawindowed org.kde.plasma.volume`
Comment 11 zvova7890 2024-09-30 12:23:51 UTC
Created attachment 174223 [details]
Extra logs

Extra logging
Comment 12 Harald Sitter 2024-09-30 12:28:05 UTC
Thanks

>    virtualDevice: QVariant(bool, true)

I am 99% certain if you right click the applet and say 'show virtual devices' it will show up. Can you confirm?
Comment 13 zvova7890 2024-09-30 12:52:23 UTC
Wow, I didn't mentioned this toggle... Yes, you're right. It appears after "show virtual devices" enabled
Comment 14 Harald Sitter 2024-09-30 13:04:54 UTC
Best file a bug upstream with wireplumber. I doubt a real source should appear as virtual (even when technically it may be virtual).
Comment 15 zvova7890 2024-09-30 16:35:32 UTC
Ok, thank you very much