Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791889 - kde-plasma/plasma-meta: double volume control in systray
Summary: kde-plasma/plasma-meta: double volume control in systray
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-25 01:40 UTC by Anton Bolshakov
Modified: 2023-06-17 10:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2021-05-25 01:40:05 UTC
Hello,

My KDE WM started two volume controls after recent upgrade:
kde-apps/kmix
kde-plasma/plasma-pa

I installed kmix manually (it is also getting pulled by kde-apps/kdemultimedia-meta if installed), plasma-pa is pulled by kde-plasma/plasma-meta[pulseaudio]

Could you add "either" condition in kde-plasma/plasma-meta, something like:

pulseaudio? ( || ( kde-plasma/plasma-pa kde-apps/kmix[pulseaudio] ) )

Thanks

emerge --info
Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1/hardened, gcc-10.2.0, glibc-2.32-r7, 5.12.0-gentoo x86_64)
=================================================================
System uname: Linux-5.12.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-10750H_CPU_@_2.60GHz-with-glibc2.32
KiB Mem:    16303888 total,   2221628 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Tue, 25 May 2021 00:15:01 +0000
Head commit of repository gentoo: ed61d833e9e2fec25ac860c01305fb5cb703a75a
Head commit of repository pentoo: 72ad2c3d4dd16ba25ac77a6f1f0a7e30f0620638

Timestamp of repository steam-overlay: Sat, 22 May 2021 17:05:20 +0000
Head commit of repository steam-overlay: 8d525a2563602c312708c56bf6cd389ff67f9360

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.4_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync2.au.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

pentoo
    location: /var/db/repos/pentoo-overlay
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.iij.ad.jp/pub/linux/gentoo/"
INSTALL_MASK="*.la"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LINGUAS="en ru"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="https://pentoo.emjay-embedded.co.uk/Packages/amd64_r1-hardened/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda crypt cups dbus declarative dri dri3 dts dvdr elogind emboss encode exif ffmpeg flac gif gtk gui hackrf hardened iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad minipentoo mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pcre pdf phonon pie plasma png policykit ppds pulseaudio qml qt5 readline samba sdl seccomp semantic-desktop spell split-usr ssl ssp startup-notification svg tiff truetype udev udisks unicode upower usb vlc vorbis widgets wxwidgets x264 xattr xcb xinerama xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" UNICORN_TARGETS="x86" USERLAND="GNU" VIDEO_CARDS="vesa intel i965 nvidia" XFCE_PLUGINS="brightness menu logout trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
Comment 1 Andreas Sturmlechner gentoo-dev 2021-05-25 06:22:49 UTC
Possible, but KDE ultimately recommends plasma-pa for pulseaudio and kmix is nothing but a legacy mixer at this point.

kmix is not in your system tray unless you started it manually, once, anyway, you can close it just as well.
Comment 2 Anton Bolshakov 2021-05-25 06:41:57 UTC
Im probably very conservative, but i prefer kmix really. It's not so bulky and  all levels are positioned vertically
Comment 3 Andreas Sturmlechner gentoo-dev 2021-05-30 18:51:14 UTC
The way I see it, $summary describes a minor runtime inconvenience. This is easily solved by setting "Audio Volume" to "Disabled" via System Tray Settings -> Entries.
Comment 4 Andreas Sturmlechner gentoo-dev 2021-05-30 20:57:09 UTC
To elaborate further:

kde-plasma/plasma-meta is bound to favor plasma-pa, as per your example:
|| ( kde-plasma/plasma-pa kde-apps/kmix[pulseaudio] )

When installing kde-apps/kdemultimedia-meta after Plasma, which I would expect is the natural order, kmix still ends up being installed, unless the ebuild would do the same as plasma-meta; but plasma-pa is useless without Plasma, and suddenly we begin blurring the lines.

Existing plasma-pa users who have never started kmix, thus are unaware of the situation, may suddenly end up with no audio volume control in their systray after a --depclean.

So, while the suggested change takes care of your usecase, it leads to other problems.

What else could we do: in kmix' pkg_postinst(), if use pulseaudio && has_version kde-plasma/plasma-pa && elog "do this if you prefer kmix over Plasma's audio volume controls..."
Comment 5 Larry the Git Cow gentoo-dev 2021-10-03 13:48:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=0c0019b88969e7e75249e833343c0384b634a72c

commit 0c0019b88969e7e75249e833343c0384b634a72c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-10-03 13:48:02 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-10-03 13:48:02 +0000

    kde-apps/kmix: Add postinst message in global IUSE=pulseaudio context
    
    Closes: https://bugs.gentoo.org/791889
    Package-Manager: Portage-3.0.26, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/kmix/kmix-21.08.49.9999.ebuild | 12 ++++++++++++
 kde-apps/kmix/kmix-9999.ebuild          | 12 ++++++++++++
 2 files changed, 24 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2023-06-17 10:11:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=27c563e1bb67d0e98ccf07439152b92a79175b94

commit 27c563e1bb67d0e98ccf07439152b92a79175b94
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-06-17 10:07:51 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-06-17 10:08:26 +0000

    kde-apps/kmix: Disable autostart by default, amend postinst msg
    
    Bug: https://bugs.gentoo.org/791889
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/kmix-23.04.2-autostart_disable.patch     | 24 ++++++++++++++++++++++
 kde-apps/kmix/kmix-23.04.49.9999.ebuild            | 12 ++++++++---
 kde-apps/kmix/kmix-9999.ebuild                     | 12 ++++++++---
 3 files changed, 42 insertions(+), 6 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2023-06-17 10:19:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b3dfd12876dfe97da86627ae1d52fb020177e15

commit 6b3dfd12876dfe97da86627ae1d52fb020177e15
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-06-17 10:07:51 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-06-17 10:19:47 +0000

    kde-apps/kmix: Disable autostart by default, amend postinst msg
    
    Bug: https://bugs.gentoo.org/791889
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/kmix-23.04.2-autostart_disable.patch     | 24 ++++++++++++++++++++++
 kde-apps/kmix/kmix-23.04.2.ebuild                  | 12 ++++++++---
 2 files changed, 33 insertions(+), 3 deletions(-)