You are not logged in.

#1 2025-05-18 22:33

josek
Member
Registered: 2025-02-23
Posts: 91

change the key control for volume? -------->>SOLVED<<--------

The problem is that my keyboard's volume keys are configured to control kmix, which is Trinity's native sound mixer (based on KDE 3). Even though I'm now using PipeWire (and pavucontrol for the graphical interface), pressing those keys still sends commands to kmix (or attempts to launch/control it).

I already searched for Trinity's keyboard shortcuts and accessibility, but I don't know what it is or if it has a technical name.

As always, I'd appreciate any help or suggestions.

Last edited by josek (2025-07-29 13:20)

Offline

#2 2025-05-19 00:47

crosscourt
Banned
Registered: 2017-05-07
Posts: 2,706

Re: change the key control for volume? -------->>SOLVED<<--------

Pipewire is a sound server and in fact will control kmix directly. You dont really need to use pavucontrol as thats involved with Pulseaudio which you dont need if youre using Pipewire. Pipewire maintaining the link to the kmix controls/gui is perfectly normal.

Offline

#3 2025-05-19 09:26

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,958
Website

Re: change the key control for volume? -------->>SOLVED<<--------

@josek
What do you want to achieve exactly ? Please specify.

Offline

#4 2025-05-19 10:00

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

I want PavuControl to take control of the sound and disable Kmix. Why doesn't it respond when I use the volume keys when using HDMI or Bluetooth? 
In the worst case, change the audio mixer

Offline

#5 2025-05-19 18:38

crosscourt
Banned
Registered: 2017-05-07
Posts: 2,706

Re: change the key control for volume? -------->>SOLVED<<--------

Im curious as Pulseaudio is the default in Trinity, so why did you install Pipewire?  Pavucontrol can work with Pulseaudio and kmix(iffy with Pipewire), if Pulseaudio is the main sound server. Pipewire provides an emulation layer for Pulseaudio but there tends to be issues at times.

Offline

#6 2025-05-19 22:24

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

Because pulseaudio sometimes doesn't open correctly, that's why I installed pavucontrol and since I use Bluetooth a lot, pulseaudio didn't manage that technical part well, much less kmix. On the other hand, pavucontrol and pipewire work great for me, that's why

Offline

#7 2025-05-20 00:11

crosscourt
Banned
Registered: 2017-05-07
Posts: 2,706

Re: change the key control for volume? -------->>SOLVED<<--------

Gotcha, thanks for explaining, but Pipewire will continue  to send commands to kmix which is a normal behavior. Replacing the mixer wont change that at least in my experience.

Offline

#8 2025-07-28 22:53

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

There was a time I solved it by changing some settings in pipewire and disabling kmix and using pavucontrol but the error stayed there

bluetoothd[1426]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Jul 28 23:46:18 dx-s550cb bluetoothd[1426]: profiles/audio/avctp.c:uinput_create() Can't open input device: No such file or directory (2)
Jul 28 23:46:18 dx-s550cb bluetoothd[1426]: profiles/audio/avctp.c:init_uinput() AVRCP: failed to init uinput for X08
Jul 28 23:46:19 dx-s550cb bluetoothd[1426]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for AC:04:E1:B6:72:C8: Device or resource busy

I still have the same problem

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

:~$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Mon 2025-07-28 23:55:34 CEST; 13s ago
       Docs: man:bluetoothd(8)
   Main PID: 788 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4526)
     Memory: 2.8M
        CPU: 66ms
     CGroup: /system.slice/bluetooth.service
             └─788 /usr/libexec/bluetooth/bluetoothd

jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSink/op>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSink/op>
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/>
lines 1-22/22 (END)...skipping...
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Mon 2025-07-28 23:55:34 CEST; 13s ago
       Docs: man:bluetoothd(8)
   Main PID: 788 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4526)
     Memory: 2.8M
        CPU: 66ms
     CGroup: /system.slice/bluetooth.service
             └─788 /usr/libexec/bluetooth/bluetoothd

jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/aptx_ll_1
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/aptx_ll_0
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/faststream
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/faststream_duplex
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSink/opus_05
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/opus_05
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSink/opus_05_duplex
jul 28 23:55:34 dx-s550cb bluetoothd[788]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource/opus_05_duplex

~$ lsmod | grep uinput
uinput                 24576  1

I don't know why this module sometimes doesn't load, because I added it to load in etc/modules-load.d/modules.conf but it doesn't read after updating the changes with sudo update-initramfs -u

Last edited by josek (2025-07-28 23:01)

Offline

#9 2025-07-29 13:23

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

I was missing this module to make the volume keys work

Package: pulseaudio-module-bluetooth
Status: install ok installed
Priority: optional
Section: sound
Installed-Size: 352
Maintainer: Pulseaudio maintenance team <pkg-pulseaudio-devel@lists.alioth.debian.org>
Architecture: amd64
Source: pulseaudio (16.1+dfsg1-2)
Version: 16.1+dfsg1-2+b1
Depends: libbluetooth3 (>= 4.91), libc6 (>= 2.14), libdbus-1-3 (>= 1.9.14), libglib2.0-0 (>= 2.12.0), libgstreamer-plugins-base1.0-0 (>= 1.10.0), libgstreamer1.0-0 (>= 1.14), libpulse0 (= 16.1+dfsg1-2+b1), libsbc1 (>= 2.0), pulseaudio (= 16.1+dfsg1-2+b1), bluez (>= 5.23)
Recommends: gstreamer1.0-plugins-bad (>= 1.19)
Description: Bluetooth module for PulseAudio sound server
PulseAudio, previously known as Polypaudio, is a sound server for POSIX and
WIN32 systems. It is a drop in replacement for the ESD sound server with
much better latency, mixing/re-sampling quality and overall architecture.
.
This module enables PulseAudio to work with bluetooth devices, like headset
or audio gateway.
.
The module is called module-bluetooth
Homepage: https://www.pulseaudio.org


and by the way, create a service in systemd to load that uinput module so that it loads and works with Bluetooth

I know it's ridiculous and that it's not clear what I wanted to do, but the reality is that I have several Bluetooth audio devices, like 3 or 4, that connect via Trinity, and kmix is the only audio mixer that handles the key commands to turn up and down, and that didn't work for me before because it was missing that module.

Last edited by josek (2025-07-29 13:37)

Offline

#10 2025-07-29 13:35

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,958
Website

Re: change the key control for volume? -------->>SOLVED<<--------

What desktop profile did you apply upon Q4OS installation ?

Offline

#11 2025-07-29 13:40

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

And I had Trinity, but changing desktop environments so often meant the files would crash.
ya que usaba jwm o icewm pero volvi ahora trinity xD

Last edited by josek (2025-07-29 13:43)

Offline

#12 2025-07-29 13:57

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,958
Website

Re: change the key control for volume? -------->>SOLVED<<--------

Thanks for sharing the solution. What desktop profile have you applied https://www.q4os.org/dqa016.html ?
Full, Basic, Pure, Live, or other profile ?

Last edited by q4osteam (2025-07-29 14:03)

Offline

#13 2025-07-29 14:34

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

basic. why?

Offline

#14 2025-07-29 14:47

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,958
Website

Re: change the key control for volume? -------->>SOLVED<<--------

josek wrote:

I was missing this module to make the volume keys work
Package: pulseaudio-module-bluetooth

We ask because the "pulseaudio-module-bluetooth" package is a part of Basic as well as Full profile. So you had to uninstall it for some reason. Please run in terminal:
$ cat /etc/q4os/q4base.conf
and post the output, so we can check what profile you have applied. It may be related to other issues you are solving.

Offline

#15 2025-07-29 14:57

josek
Member
Registered: 2025-02-23
Posts: 91

Re: change the key control for volume? -------->>SOLVED<<--------

dx@dx-s550cb:~$  cat /etc/q4os/q4base.conf
[DesktopProfiler]
appliedprofile=q4os-desktop-bookworm
defaultdesktopenv=trinity
minimal_kde_memory=99999
needtoapply=0

[General]
default_theme=Debonaire
tdehome_plasma=.trinitykde
xdgcfghome_plasma=.config
xdgcfghome_trinity=.configtde

[OnInstall]
install_type=live
kxkblayout=latam
kxkbmodel=pc105
kxkboptions=
kxkbvariant=
lookswitcher=yes
memory=3800
plasma_de=no
q4osbase_version=4.24.1-a1
trinity_de=yes

Can you see the exact profile? Because I don't remember.

this is my sound profile
dx@dx-s550cb:~$ systemctl --user list-unit-files --type=service --state=enabled
UNIT FILE STATE PRESET
pipewire-pulse.service enabled enabled
pipewire.service enabled enabled
pulseaudio.service enabled enabled
wireplumber.service enabled enabled
bluetooth.service    enabled enabled


everything works great now

Offline

#16 2025-07-29 15:09

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,958
Website

Re: change the key control for volume? -------->>SOLVED<<--------

Yes, you have successfully installed the Full profile, see "appliedprofile=q4os-desktop-bookworm" line. So you had "pulseaudio-module-bluetooth" package installed at the time of profile application and you had to uninstall this package afterwards for some reason. You could re-apply the profile again, but keep in mind, you need to uncheck "Remove superfluous packages" option, see https://www.q4os.org/dqa016.html#instl

Anyway thanks for reporting and sharing the solution.

Offline

Board footer

Powered by FluxBB