Bug 474711 - Muting Elisa mutes other apps too
Summary: Muting Elisa mutes other apps too
Status: CONFIRMED
Alias: None
Product: Elisa
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-20 01:14 UTC by ksso
Modified: 2025-04-29 17:29 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ksso 2023-09-20 01:14:30 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
If you mute Elisa (music player) and the open a video file (haruna), it is already muted, you need to unmute it through sound apps

STEPS TO REPRODUCE
1. mute elisa
2. now any video file you open is already muted (haruna or other media player)
3. need to unmute elisa or work with sound app settings

OBSERVED RESULT
entangled muting

EXPECTED RESULT
independent muting

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-33-generic (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 3.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: HP
Product Name: HP Laptop 15-ef2xxx
Comment 1 Nate Graham 2023-09-20 19:15:53 UTC
For step 1, how did you Mute Elisa?

Are Elisa as well as the other apps that get undesirably muted all installed from Flatpak?
Comment 2 ksso 2023-09-20 20:23:17 UTC
elisa and haruna are pre-installed with the distro (kubuntu)
smplayer also affected, is installed with apt get
Comment 3 ksso 2023-09-20 20:26:41 UTC
in order to mute elisa you clic on the speaker so that a slash line appear over that icon
if the video is already open, it will not be muted, it affects the open video files after muting elisa
Comment 4 Nate Graham 2023-09-20 20:27:35 UTC
Which exact speaker icon are you clicking on to mute Elisa? Where exactly is it? I ask because there are several.
Comment 5 ksso 2023-09-20 20:31:45 UTC
the speaker icon of the main window of elisa, also the speaker icon of elisa app on the panel
Comment 6 Nate Graham 2023-09-21 15:20:39 UTC
Thanks for the info.

How exactly are you launching these apps?

Can you launch all affected apps, reproduce the problem, and then paste the output of `pstree` run in a terminal window?
Comment 7 Nate Graham 2023-09-21 16:05:21 UTC
Proooobably the same root cause as Bug 467125.
Comment 8 ksso 2023-09-23 23:48:41 UTC
entagled muting, happens with elisa and vlc, not with smplayer


ksso@ksso:~$ pstree
systemd─┬─ModemManager───3*[{ModemManager}]
        ├─NetworkManager───3*[{NetworkManager}]
        ├─accounts-daemon───3*[{accounts-daemon}]
        ├─avahi-daemon───avahi-daemon
        ├─bluetoothd
        ├─cron
        ├─cups-browsed───3*[{cups-browsed}]
        ├─cupsd───7*[dbus]
        ├─dbus-daemon
        ├─fwupd───5*[{fwupd}]
        ├─haveged
        ├─irqbalance───{irqbalance}
        ├─2*[kerneloops]
        ├─polkitd───3*[{polkitd}]
        ├─power-profiles-───3*[{power-profiles-}]
        ├─rsyslogd───3*[{rsyslogd}]
        ├─rtkit-daemon───2*[{rtkit-daemon}]
        ├─run-cups-browse───run-cups-browse───sleep
        ├─run-cupsd───cupsd
        ├─sddm─┬─Xorg───9*[{Xorg}]
        │      ├─sddm-helper───startplasma-x11─┬─ssh-agent
        │      │                               └─{startplasma-x11}
        │      └─{sddm}
        ├─smartd
        ├─snapd───17*[{snapd}]
        ├─systemd─┬─(sd-pam)
        │         ├─agent───3*[{agent}]
        │         ├─at-spi-bus-laun─┬─dbus-daemon
        │         │                 └─4*[{at-spi-bus-laun}]
        │         ├─at-spi2-registr───3*[{at-spi2-registr}]
        │         ├─dbus-daemon
        │         ├─dconf-service───3*[{dconf-service}]
        │         ├─gmenudbusmenupr───2*[{gmenudbusmenupr}]
        │         ├─kaccess───6*[{kaccess}]
        │         ├─kactivitymanage───5*[{kactivitymanage}]
        │         ├─kdeconnectd───7*[{kdeconnectd}]
        │         ├─kded5───14*[{kded5}]
        │         ├─kglobalaccel5───2*[{kglobalaccel5}]
        │         ├─kioslave5
        │         ├─kioslave5───7*[{kioslave5}]
        │         ├─kscreen_backend───2*[{kscreen_backend}]
        │         ├─ksmserver─┬─DiscoverNotifie───7*[{DiscoverNotifie}]
        │         │           ├─dolphin───10*[{dolphin}]
        │         │           ├─qbittorrent───25*[{qbittorrent}]
        │         │           ├─thunderbird─┬─Isolated Web Co───24*[{Isolated Web Co}]
        │         │           │             ├─Web Content───24*[{Web Content}]
        │         │           │             └─123*[{thunderbird}]
        │         │           └─6*[{ksmserver}]
        │         ├─ksystemstats───2*[{ksystemstats}]
        │         ├─kwalletd5───6*[{kwalletd5}]
        │         ├─kwin_x11───11*[{kwin_x11}]
        │         ├─obexd
        │         ├─org_kde_powerde───6*[{org_kde_powerde}]
        │         ├─pipewire───{pipewire}
        │         ├─pipewire-pulse───{pipewire-pulse}
        │         ├─plasmashell─┬─dolphin───8*[{dolphin}]
        │         │             ├─haruna───36*[{haruna}]
        │         │             ├─kazam───19*[{kazam}]
        │         │             ├─konsole─┬─bash───pstree
        │         │             │         └─10*[{konsole}]
        │         │             ├─smplayer─┬─mpv───30*[{mpv}]
        │         │             │          └─7*[{smplayer}]
        │         │             ├─vlc───36*[{vlc}]
        │         │             └─29*[{plasmashell}]
        │         ├─polkit-kde-auth───9*[{polkit-kde-auth}]
        │         ├─snap───16*[{snap}]
        │         ├─wireplumber───4*[{wireplumber}]
        │         ├─xdg-desktop-por───7*[{xdg-desktop-por}]
        │         ├─xdg-desktop-por───4*[{xdg-desktop-por}]
        │         ├─xdg-desktop-por───6*[{xdg-desktop-por}]
        │         ├─xdg-document-po─┬─fusermount3
        │         │                 └─7*[{xdg-document-po}]
        │         ├─xdg-permission-───3*[{xdg-permission-}]
        │         ├─xembedsniproxy───2*[{xembedsniproxy}]
        │         └─xsettingsd
        ├─systemd-journal
        ├─systemd-logind
        ├─systemd-resolve
        ├─systemd-timesyn───{systemd-timesyn}
        ├─systemd-udevd
        ├─udisksd───5*[{udisksd}]
        ├─unattended-upgr───{unattended-upgr}
        ├─upowerd───3*[{upowerd}]
        └─wpa_supplicant
ksso@ksso:~$ pstree
systemd─┬─ModemManager───3*[{ModemManager}]
        ├─NetworkManager───3*[{NetworkManager}]
        ├─accounts-daemon───3*[{accounts-daemon}]
        ├─avahi-daemon───avahi-daemon
        ├─bluetoothd
        ├─cron
        ├─cups-browsed───3*[{cups-browsed}]
        ├─cupsd───7*[dbus]
        ├─dbus-daemon
        ├─fwupd───5*[{fwupd}]
        ├─haveged
        ├─irqbalance───{irqbalance}
        ├─2*[kerneloops]
        ├─polkitd───3*[{polkitd}]
        ├─power-profiles-───3*[{power-profiles-}]
        ├─rsyslogd───3*[{rsyslogd}]
        ├─rtkit-daemon───2*[{rtkit-daemon}]
        ├─run-cups-browse───run-cups-browse───sleep
        ├─run-cupsd───cupsd
        ├─sddm─┬─Xorg───9*[{Xorg}]
        │      ├─sddm-helper───startplasma-x11─┬─ssh-agent
        │      │                               └─{startplasma-x11}
        │      └─{sddm}
        ├─smartd
        ├─snapd───17*[{snapd}]
        ├─systemd─┬─(sd-pam)
        │         ├─agent───3*[{agent}]
        │         ├─at-spi-bus-laun─┬─dbus-daemon
        │         │                 └─4*[{at-spi-bus-laun}]
        │         ├─at-spi2-registr───3*[{at-spi2-registr}]
        │         ├─dbus-daemon
        │         ├─dconf-service───3*[{dconf-service}]
        │         ├─gmenudbusmenupr───2*[{gmenudbusmenupr}]
        │         ├─kaccess───6*[{kaccess}]
        │         ├─kactivitymanage───5*[{kactivitymanage}]
        │         ├─kdeconnectd───7*[{kdeconnectd}]
        │         ├─kded5───14*[{kded5}]
        │         ├─kglobalaccel5───2*[{kglobalaccel5}]
        │         ├─kioslave5
        │         ├─kscreen_backend───2*[{kscreen_backend}]
        │         ├─ksmserver─┬─DiscoverNotifie───7*[{DiscoverNotifie}]
        │         │           ├─dolphin───10*[{dolphin}]
        │         │           ├─qbittorrent───25*[{qbittorrent}]
        │         │           ├─thunderbird─┬─Isolated Web Co───24*[{Isolated Web Co}]
        │         │           │             ├─Web Content───24*[{Web Content}]
        │         │           │             └─123*[{thunderbird}]
        │         │           └─6*[{ksmserver}]
        │         ├─ksystemstats───2*[{ksystemstats}]
        │         ├─kwalletd5───6*[{kwalletd5}]
        │         ├─kwin_x11───11*[{kwin_x11}]
        │         ├─obexd
        │         ├─org_kde_powerde───6*[{org_kde_powerde}]
        │         ├─pipewire───{pipewire}
        │         ├─pipewire-pulse───{pipewire-pulse}
        │         ├─plasmashell─┬─dolphin───8*[{dolphin}]
        │         │             ├─kazam───19*[{kazam}]
        │         │             ├─konsole─┬─bash───pstree
        │         │             │         └─6*[{konsole}]
        │         │             └─29*[{plasmashell}]
        │         ├─polkit-kde-auth───9*[{polkit-kde-auth}]
        │         ├─snap───16*[{snap}]
        │         ├─wireplumber───4*[{wireplumber}]
        │         ├─xdg-desktop-por───7*[{xdg-desktop-por}]
        │         ├─xdg-desktop-por───4*[{xdg-desktop-por}]
        │         ├─xdg-desktop-por───6*[{xdg-desktop-por}]
        │         ├─xdg-document-po─┬─fusermount3
        │         │                 └─7*[{xdg-document-po}]
        │         ├─xdg-permission-───3*[{xdg-permission-}]
        │         ├─xembedsniproxy───2*[{xembedsniproxy}]
        │         └─xsettingsd
        ├─systemd-journal
        ├─systemd-logind
        ├─systemd-resolve
        ├─systemd-timesyn───{systemd-timesyn}
        ├─systemd-udevd
        ├─udisksd───5*[{udisksd}]
        ├─unattended-upgr───{unattended-upgr}
        ├─upowerd───3*[{upowerd}]
        └─wpa_supplicant
ksso@ksso:~$ 

https://www.vidlii.com/watch?v=DIiXvgVGElj
Comment 9 Nate Graham 2023-09-25 20:19:33 UTC
Thanks. But now I'm a bit confused, as you said:
> smplayer also affected
But then later you said
> entagled muting, happens with elisa and vlc, not with smplayer


Can you clarify which one is true?
Comment 10 ksso 2023-09-25 21:21:15 UTC
smplayer muting doesn't cause any other programs to mute (it seems)
however, vlc and elisa muting affects and mutes smplayer
hope that in the video could be useful explaining that
Comment 11 Nate Graham 2023-09-28 16:16:31 UTC
Thanks for the video, it was extremely helpful.

It looks like the mute buttons in the individual apps are triggering some kind of synchronized mute behavior in PulseAudio or PipeWire. Have you manually changed anything about your system's audio configuration away from its default settings?
Comment 12 ksso 2023-09-29 02:50:09 UTC
not that I remember...
Comment 13 Nate Graham 2023-09-29 17:54:45 UTC
Ok, thanks.
Comment 14 Harald Sitter 2024-02-02 12:06:32 UTC
Looking at the pulseaudio code that is exactly what is supposed to happen with module-stream-restore.

module-stream-restore calls a variant of 

        if (!(n = pa_proplist_get_stream_group(si->proplist, "sink-input", IDENTIFICATION_PROPERTY)))

which returns

        t = pa_sprintf_malloc("%s-by-media-role:%s", prefix, r);

if a media role is set. in the outlined case they all share the role video (because elisa doesn't correctly set up libvlc with libvlc_media_player_set_role)

and this return value is then used to restore the mute state on *all* new video streams. e.g. if you then open vlc

smplayer doesn't set a suitable media.role so its restoration behavior is bound to the application only (        t = pa_sprintf_malloc("%s-by-application-id:%s", prefix, r);)
Comment 15 Nate Graham 2025-04-29 17:29:58 UTC
Sounds like this is a series of app bugs. Moving this one to Elisa.