[SOLVED] Control Bluetooth Speaker Volume  [Solved]

Post Reply
Message
Author
CiaraRSeeley
Posts: 14
Joined: Sat Dec 01, 2018 12:05 pm

[SOLVED] Control Bluetooth Speaker Volume  [Solved]

#1 Post by CiaraRSeeley »

Hello,

just installed MX 17.1 (and updated everything) for the first time and it's my first posting, please be kind :-) So far I love it and things are awesome. Just some minor tweaks needed.

I use a BS-3 Bluetooth speaker. Connecting works fine, sound is good. Now I would like to control the sound and adjust the volume. I have volume keys on my keyboard, and also the scroll wheel on the volume icon should do the job. However, I just adjust the previous volume of the, well, I don't really know.

When I open the mixer, I see "Intern Audio Analog Stereo". This volume I can control with the keyboard and scroll wheel. But the sound goes through the second entry "BS-3". There I can adjust the volume with the mouse pointer.

I mainly use my BS-3 Bluetooth Speaker, thus it would be awesome be be able to control it directly, instead of always open the mixer for every small adjustment.

In the settings of the Volume Icon I can change Channels, under ALSA I see device and channel. But whatever I change, it has no effect.

I don't have the xfce4-mixer, perhaps this could help? I did not try to install it yet.

Thank you for your help!

Here some random code, not sure if it's of any help and if it leads to the solution. I change the active sink to 1, but then I did not hear any sound.

Code: Select all

$ pacmd
Welcome to PulseAudio 10.0! Use "help" for usage information.
>>> list-sinks               
2 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9959
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x2fff020000 irq 130"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9d71"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Internes Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC269VC"
		alsa.components = "HDA:10ec0269,19910269,00100203 HDA:8086280b,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Lautsprecher (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Kopfhörer (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
    index: 1
	name: <bluez_sink.17_01_16_19_16_B4.a2dp_sink>
	driver: <module-bluez5-device.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME 
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9030
	volume: front-left: 68813 / 105% / 1,27 dB,   front-right: 68813 / 105% / 1,27 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 2 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 1
	fixed latency: 39,51 ms
	card: 1 <bluez_card.17_01_16_19_16_B4>
	module: 25
	properties:
		bluetooth.protocol = "a2dp_sink"
		device.description = "BS-3"
		device.string = "17:01:16:19:16:B4"
		device.api = "bluez"
		device.class = "sound"
		device.bus = "bluetooth"
		device.form_factor = "headset"
		bluez.path = "/org/bluez/hci0/dev_17_01_16_19_16_B4"
		bluez.class = "0x240404"
		bluez.alias = "BS-3"
		device.icon_name = "audio-headset-bluetooth"
		device.intended_roles = "phone"
	ports:
		headset-output: Headset (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <headset-output>
Last edited by CiaraRSeeley on Mon Feb 18, 2019 10:18 pm, edited 1 time in total.

User avatar
Jerry3904
Administrator
Posts: 21939
Joined: Wed Jul 19, 2006 6:13 am

Re: Control Bluetooth Speaker Volume

#2 Post by Jerry3904 »

Welcome to the Forum!

Not sure I understand the situation exactly, but you can control volume by using the scroll wheel when the cursor is over the speaker icon in the Notification Area. Or do you know all that already and I have totally missed the point (not the first time...)?
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

CiaraRSeeley
Posts: 14
Joined: Sat Dec 01, 2018 12:05 pm

Re: Control Bluetooth Speaker Volume

#3 Post by CiaraRSeeley »

Sorry for posting so much text, so the point was a bit hidden :-D

When I don't use Bluetooth, everything is perfect. With the scroll wheel I can control the volume over the speaker icon.

When I use Bluetooth, the scroll wheel control the volume of "Intern Audio Analog Stereo", just as before. But now the sound goes through BS-3 (Bluetooth). Thus the scroll wheel became useless. I see that the volume goes up and down, but actually it does not change the volume that I hear.

CiaraRSeeley
Posts: 14
Joined: Sat Dec 01, 2018 12:05 pm

Re: Control Bluetooth Speaker Volume

#4 Post by CiaraRSeeley »

Image

Here on the screenshot you see my two devices. Internal Audio Analog Stereo is access with the scroll wheel and with the keyboard shortcuts. But the sounds is actually coming from BS-3.

alelondon
Posts: 2
Joined: Wed Jan 18, 2017 12:14 pm

Re: Control Bluetooth Speaker Volume

#5 Post by alelondon »

This is how I've got audio switching AND volume control automagically to the last connected device (Bluetooth, HDMI, USB)

*Edit pulseaudio default settings.

On a Terminal you could type:

Code: Select all

sudo featherpad /etc/pulse/default.pa 
*Add this two lines at the end of the /etc/pulse/default.pa file:

Code: Select all

###Switch audio automatically to the device just added (Bluetooth, HDMI, USB)
load-module module-switch-on-connect
*Add Pulseaudio Plugin to the xfce Panel

right-click on empty part of the panel, Add New Items...,
select PulseAudio Plugin, click Add, Close.

*Switch Pulseaudiostart(with volumeicon) for Pulseaudio Sound System

open Session and Startup (from mx menu)
select the Application Autostart tab
deselect (untick) Pulseaudiostart (starts volumeicon aft....
select (tick) PulseAudio Sound System (Start the PulseAudio So....
Close.

Enjoy!

CiaraRSeeley
Posts: 14
Joined: Sat Dec 01, 2018 12:05 pm

Re: Control Bluetooth Speaker Volume

#6 Post by CiaraRSeeley »

Sorry for the late answer, did caught up with some distro hopping and now I'm back at MX :-D

Did everything as you wrote it and it work 100% perfectly! Thank you so much! So awesome!!!

User avatar
jeffniska
Posts: 1
Joined: Sat Dec 12, 2020 8:20 am

Re: [SOLVED] Control Bluetooth Speaker Volume

#7 Post by jeffniska »

man...genial..it works to me...thanks

User avatar
Pakos
Posts: 32
Joined: Sat Feb 13, 2021 2:10 pm

Re: [SOLVED] Control Bluetooth Speaker Volume

#8 Post by Pakos »

alelondon wrote: Sat Dec 29, 2018 10:18 am This is how I've got audio switching AND volume control automatically to the last connected device (Bluetooth, HDMI, USB)
(i know it's an old post)
But...
Thanks for the solution man, this makes listening to music a lot easier. Thanks again

User avatar
aledotino
Posts: 1
Joined: Sun Nov 21, 2021 12:26 pm

Re: [SOLVED] Control Bluetooth Speaker Volume

#9 Post by aledotino »

;) :happy: :number1: :popcorn: :clap: :clap: :clap: :celebrate: :spinning:

Post Reply

Return to “Older Versions”