Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[somewhat solved] kmix alternative for Plasma/Wayland + Alsa

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

[somewhat solved] kmix alternative for Plasma/Wayland + Alsa

  • Quote

Post by gorg86 » Sun Jan 25, 2026 9:38 pm

Hello,

I'm looking for a kmix alternative that's for a Plasma-Wayland install with just Alsa or Pipewire support.
I'm currently using a workaround for my volume knob on the keyboard that adjusts the volume with amixer and I pipe the current volume percentage to gui-apps/wob.
What I want is just a tray app that shows me current volume and is adjustable with my mouse scroll wheel.
A program that would just run my amixer script would suffice.
Pulseaudio and Libpulse are masked on this system, a hard dependency on those would be a nono.

thanks
Last edited by gorg86 on Mon Jan 26, 2026 7:28 pm, edited 2 times in total.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sun Jan 25, 2026 9:41 pm

kde-plasma/plasma-pa
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Sun Jan 25, 2026 9:49 pm

Sorry, I forgot to mention that I don't want a dependency on libpulse and pulseaudio.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sun Jan 25, 2026 9:51 pm

I'm confused, you considered pipewire support, and pipewire is *the* sound daemon replacement for pulseaudio serving applications with (still, most of the time) libpulse support.
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Sun Jan 25, 2026 10:04 pm

I use pipewire because of Wayland permission issues so I can do screenshots and have window previews etc. and not as a sound server.
But I'd consider activating it's sound-server useflag, maybe.
Top
dmpogo
Advocate
Advocate
Posts: 3717
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Mon Jan 26, 2026 12:33 am

gorg86 wrote:I use pipewire because of Wayland permission issues so I can do screenshots and have window previews etc. and not as a sound server.
But I'd consider activating it's sound-server useflag, maybe.
You mean you want your sound to be pure ALSA ? Not pulseaudio, nor pipewire ?
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Mon Jan 26, 2026 1:09 am

That's what he said.
Which means any applet for ALSA should be fine. Which begs the question: why is it even necessary to replace kmix? Doesn't it work on wayland? I thought the whole KDE ecosystem is moving in that direction.

Besides, I'm actually still using alsamixer to control pipewire. It gets the job done. It did with pure alsa, it does with pipewire, and I think I was using it with jack as well, even though it was more limited.
Make Pipewire a system service
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Jan 26, 2026 5:10 pm

@dmpogo
Yes I'd prefer a pure alsa implementation.

@szatox
The problem with kmix is, it has inconsistent behavior in general and it does not work properly on a pure ALSA system.
On an ALSA system it just picks the first sound card and ignores the rest. In this case there is an HDMI device listed first (which I do not use), which makes it useless to me.
In theory I could change the order of devices by blacklisting drivers etc. but even if it worked I'd have to deal with random crashes and restart it from time to time.

So far I've tried volwheel, volumeicon and mixer_app, but they are unmaintained X11 programs that just do not work on a wayland desktop.

EDIT:
Alright, instead of defining my default device in .asoundrc or masking modules I changed the indexes of the devices in /etc/modprobe.d/alsa.conf like this:

Code: Select all

options snd_hda_intel index=1,0 vid=0x1022,0x1002 pid=0x8814,0x8809

like it's described here https://alsa.opensrc.org/MultipleCards

This solution is DIRTY, because alsa still can't distinguish between those 2 devices when the modules are loaded. Whatever it picks up first just gets switched to to index 1 and the second device to index 0. If I put it like this "options snd_hda_intel index=0,1 ...", then nothing changes.

I got the PIDs and VIDs with these commands:

Code: Select all

udevadm info -a /sys/bus/pci/devices/0000:07:00.6
udevadm info -a /sys/bus/pci/devices/0000:07:00.1
cat /proc/asound/modules:

Code: Select all

 0 snd_hda_intel
 1 snd_hda_intel
cat /proc/asound/cards:

Code: Select all

 0 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfcc80000 irq 85
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfcc88000 irq 84
kmix picks up the right device, but now refuses to select my HDMI device (which I don't need).
I activated the OSD function but it does not work unfortunately.

I'll keep using kmix slop for now, but I'd like to switch to something reliable.
If you know an alternative, please post it.

EDIT 2:
kmix's behavior is the same if I compile pipewire with pipewire-alsa + sound-server.
Apparently it can't connect natively to pipewire at all.
Top
pietinger
Administrator
Administrator
Posts: 6635
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Jan 26, 2026 9:02 pm

gorg86 wrote:[...] Alright, instead of defining my default device in .asoundrc [...]
Why not? IMHO it is the easiest solution. I have also a pure alsa solution and KDE and I am happy with KMix (using PCM). I use a global /etc/asound.conf ->

Code: Select all

# cat /etc/asound.conf 
defaults.pcm.card 0
defaults.pcm.device 3
# 
# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: Generic Analog [Generic Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 1: Generic Digital [Generic Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [Acer ET430K]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 9: HDMI 3 [HDMI 3]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Mon Jan 26, 2026 10:26 pm

pietinger wrote: Why not? IMHO it is the easiest solution. I have also a pure alsa solution and KDE and I am happy with KMix (using PCM). I use a global /etc/asound.conf ->
kmix ignores the default alsa device defined in .asoundrc, only changing the index numbers worked.
I did not try changing /etc/asound.conf though.
Maybe it's because both devices have the exact same name and use the same driver.
They are 2 completely different components though.

Code: Select all

07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir/Cezanne HDMI/DP Audio Controller
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller
my aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Generic_1 [HD-Audio Generic], device 1: ALC897 Digital [ALC897 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 7: HDMI 1 [LG TV]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Also, I don't know why lspci tells me that it's supposedly an AMD device, it's the usual Realtek slop you find on every consumer mainboard.

lsmod | grep -i snd

Code: Select all

snd_hda_codec_alc662    16384  1
snd_hda_codec_realtek_lib    57344  1 snd_hda_codec_alc662
snd_hda_codec_generic   122880  2 snd_hda_codec_alc662,snd_hda_codec_realtek_lib
snd_hda_codec_atihdmi    16384  1
snd_hda_codec_hdmi     57344  1 snd_hda_codec_atihdmi
snd_hda_intel          61440  11
snd_hda_codec         196608  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_alc662,snd_hda_codec_realtek_lib,snd_hda_codec_atihdmi
snd_hda_core          135168  7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_alc662,snd_hda_codec,snd_hda_codec_realtek_lib,snd_hda_codec_atihdmi
snd_intel_dspcfg       45056  1 snd_hda_intel
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
snd_hwdep              20480  1 snd_hda_codec
snd_pcm               188416  7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              49152  4 snd_pcm
snd                   135168  24 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_hda_codec_realtek_lib,snd_pcm
soundcore              12288  1 snd
Top
pietinger
Administrator
Administrator
Posts: 6635
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Jan 26, 2026 11:43 pm

I guess you want use this:

Code: Select all

card 1: Generic [HD-Audio Generic], device 7: HDMI 1 [LG TV]
Have you ever tried to set in /etc/asound.conf this? ->

Code: Select all

defaults.pcm.card 1
defaults.pcm.device 7
(without using a local asound.rc; just delete it; switch in KMix to input PCM)
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Sat Feb 07, 2026 12:20 am

Ok, I'm using /etc/asound.conf and deleted .asoundrc, kmix is still broken, still can't see/select my analog sound output.
Top
steve_v
Guru
Guru
Posts: 445
Joined: Sun Jun 20, 2004 7:39 am
Location: New Zealand

  • Quote

Post by steve_v » Sat Feb 07, 2026 4:53 am

This might be old news as I haven't used it in years, but IIRC getting kmix to behave on a pure-ALSA setup required setting KMIX_PULSEAUDIO_DISABLE=1... YMMV, but thought I should mention it as environment variables kmix uses are almost lost information at this point.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Top
pietinger
Administrator
Administrator
Posts: 6635
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat Feb 07, 2026 10:24 am

steve_v wrote:[...] getting kmix to behave on a pure-ALSA setup required setting KMIX_PULSEAUDIO_DISABLE=1 [...]
Good to know ... thanks a lot for this info. Maybe it is not needed if pulseaudio is disabled via Use-flags (I have disabled it).
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Sat Feb 07, 2026 10:28 pm

@steve_v thanks for that, I had no luck setting that.

I'll try using a soundserver again, the only reason I moved away from Pulseaudio back in the day was, because it created more problems than it solved for me.
After reading the updated wikis, I see that a lot has changed and having libpulse installed for just a few programs won't mess up my sound in all kinds of weird ways.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic