Asked in order to provide the answer.


In the LXQt desktop (installed on top of Kubuntu 18.04) I use a bluetooth speaker with a laptop which has volume keys that only control the internal speakers. The volume panel applet does the same.

I can only modify/mute the external speaker's volume with pavucontrol.

Is it possible to control bluetooth speaker volume with keyboard and/or a panel button?

up vote 1 down vote accepted

Short-keys can be assigned to the following commands:

  • Toggle mute: amixer -q -D pulse sset Master toggle

  • Volume up by 5%: amixer -D pulse sset Master 5%+

  • Volume down by 5%: amixer -D pulse sset Master 5%-

For a panel/tray button, install qasmixer.

In Debian, Ubuntu: sudo apt install qasmixer.

enter image description here

To have it in system tray, go to File-Settings-System tray and, in case the tray icon doesn't appear, un-check then check again the "Show tray icon" option. Be sure to check also Mini mixer device - Current so that the tray icon actions like mouse scroll act upon the desired device.

enter image description here

Normally it will control volume of all kind of speakers. In case it stops controlling the bluetooth speaker(s), check File-Settings-Startup and View-Show device selection-Mixer device.

Make it start with the system by adding it to startup application list with an argument for start minimized in tray:

/usr/bin/qasmixer -t


Sources here and here.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.