You are not logged in.

#1 2025-02-11 11:33:07

saalty
Member
Registered: 2012-04-06
Posts: 88

[SOLVED]Alsa with external USB sound card and external USB bluetooth

Dear all!

I tried a lot of things to solve my sound problem but without any luck. I have pretty old laptop. but Arch is running well on it. Laptop has no built in bluetooth adapter, and the audio jack outoput is also damaged, so I solved it with external USB soundcard and with USB bluetooth adapter. On USB soundcards jack output there is a headphone connected, and as bluetooth  I would like to use my Samsung Galacy Buds Live. I also want to use alsaequal.
As I mentioned I tried a lot of things, even pipewire, but sound was awful on my both headphones. Previosly I installed bluez, bluelasa (and bluez-alsa-git as well), blueman. Now are installed: bluez-git, bluez-alsa-git, bleuman-git, alsaequal.
Here is my asound.conf file (I don't use .asoundrc):

# Alapértelmezett eszköz az EQ-val
pcm.!default {
    type plug
    slave.pcm "bluetooth_or_usb"
}

ctl.!default {
    type hw
    card 0
}

# ALSA equalizer
pcm.eq {
    type plug
    slave.pcm "plugequal"
}

ctl.eq {
    type equal
}

# Alsaequal beállítás
pcm.plugequal {
    type equal
    slave.pcm "bluetooth_or_usb"
}

# Bluetooth prioritásos váltás
pcm.bluetooth_or_usb {
    type multi
    slaves.a {
        pcm "bluetooth"
        channels 2
    }
    slaves.b {
        pcm "usb_or_speaker"
        channels 2
    }
    bindings.0.slave a
    bindings.0.channel 0
    bindings.1.slave a
    bindings.1.channel 1
}

# USB vagy hangszóró kiválasztása
pcm.usb_or_speaker {
    type plug
    slave.pcm "usb"
}

pcm.usb {
    type hw
    card 0
}

pcm.speaker {
    type hw
    card 1
}

# Bluetooth eszköz
pcm.bluetooth {
    type bluealsa
    device "34:82:C5:AE:6F:2B"
    profile "a2dp"
}

ctl.bluetooth {
    type bluealsa
}

I used ChatGPT for this one (and for some other ones). The result is, if bluetooth is connected the  the sound is awful (before, with some other configuration it was not the problem):

aplay -D bluetooth /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
ALSA lib bluealsa-pcm.c:817:(bluealsa_drain) Drain timed out: Possible Bluetooth transport failure

When bluetooth is off, then no sounds on wired headphones or laptop speakers.

Here is my play -l output:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And here is my aplay -L output:

$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault
    Default Audio Device
sysdefault:CARD=Device
    USB Audio Device, USB Audio
    Default Audio Device
front:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    Front output / input
surround21:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
    USB Audio Device, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=MID
    HDA Intel MID, ALC269VB Analog
    Default Audio Device
front:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    Front output / input
surround21:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MID,DEV=0
    HDA Intel MID, ALC269VB Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

Can anybody help to solve my issue. I really spent a lot of hours during the weekend and last week but cannot solve. So what I would like to be the result is that if my Buds Live is connected then the system use bluetooth, if not then the system to use USB, and if no bluetooth or USB then laptop speaker. I want to use alsaequal, and I don't want to use pipewire. Mostly I will listen music with Google Chrome on Plex or Youtube.

Last edited by saalty (2025-02-12 18:14:46)

Offline

#2 2025-02-11 13:06:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,431

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

I strongly suggest you drop all of this, especially if you rely on ChatGPT for config information, and just use pipewire-pulse, pipewire-alsa, wireplumber which will make this correct and trivial and do exactly what you expect. Doing stuff dynamically and reacting to BT headphones appearing or disappearing is nigh impossible with ALSA alone and if so, you need to restart applications before you can switch output devices.

If it doesn't and the issues limit themselves to BT. bluetooth in general is a very flaky protocol, but chances we can properly fix this in pipewire/pulse are much higher than with static ALSA config. Assuming you switched properly, and things are unsatisfactory, post the outputs of

pactl list cards
pactl list sinks
pactl list sink-inputs

If you absolutely don't want to do this, create two distinct config files one dedicated to BT playback and one dedicated to non-BT and swap them whenever you connect/disconnect the BT headset.

Offline

#3 2025-02-11 13:41:07

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

Okay, I'll try again pipewire to solve this. What I have iisues with this that during the weekend I did not have my usb soundcard so I cannot try with that. I cannot setup a2sp profile to bluetooth (this is why I switched to bluez-git) and the sound was awful both on bluetooth and wired headphone.

Here are the outputs:

$ pactl list cards
Card #48
	Name: alsa_card.usb-GeneralPlus_USB_Audio_Device-00
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.card.longname = "GeneralPlus USB Audio Device at usb-0000:00:1a.0-1.6.2, full speed"
		api.alsa.card.name = "USB Audio Device"
		api.alsa.path = "hw:0"
		api.alsa.split-enable = "true"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "usb"
		device.bus-id = "usb-GeneralPlus_USB_Audio_Device-00"
		device.bus_path = "pci-0000:00:1a.0-usb-0:1.6.2:1.0"
		device.description = "USB Audio Device"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-usb"
		device.name = "alsa_card.usb-GeneralPlus_USB_Audio_Device-00"
		device.nick = "USB Audio Device"
		device.plugged.usec = "15352231"
		device.product.id = "0x2008"
		device.product.name = "USB Audio Device"
		device.serial = "GeneralPlus_USB_Audio_Device"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6.2/1-1.6.2:1.0/sound/card0"
		device.vendor.id = "0x1b3f"
		device.vendor.name = "Generalplus Technology Inc."
		media.class = "Audio/Device"
		spa.object.id = "2"
		factory.id = "15"
		client.id = "47"
		object.id = "48"
		object.serial = "48"
		object.path = "alsa:acp:Device"
		alsa.card = "0"
		alsa.card_name = "USB Audio Device"
		alsa.long_card_name = "GeneralPlus USB Audio Device at usb-0000:00:1a.0-1.6.2, full speed"
		alsa.driver_name = "snd_usb_audio"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB1b3f:2008"
		alsa.id = "Device"
		device.string = "0"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		output:analog-stereo+input:mono-fallback: Analog Stereo Output + Mono Input (sinks: 1, sources: 1, priority: 6501, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
		output:iec958-stereo+input:mono-fallback: Digital Stereo (IEC958) Output + Mono Input (sinks: 1, sources: 1, priority: 5501, available: yes)
		output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
		pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
		input:mono-fallback: Mono Input (sinks: 0, sources: 1, priority: 1, available: yes)
	Active Profile: output:analog-stereo+input:mono-fallback
	Ports:
		analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "mic"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "0"
			Part of profile(s): input:mono-fallback, output:analog-stereo+input:mono-fallback, output:iec958-stereo+input:mono-fallback
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "speaker"
				device.icon_name = "audio-speakers"
				card.profile.port = "1"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:mono-fallback
		iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "spdif"
				card.profile.port = "2"
			Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:mono-fallback

Card #49
	Name: alsa_card.pci-0000_00_1b.0
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "1"
		api.alsa.card.longname = "HDA Intel MID at 0xd0600000 irq 27"
		api.alsa.card.name = "HDA Intel MID"
		api.alsa.path = "hw:1"
		api.alsa.split-enable = "true"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio1"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1b.0"
		device.description = "Built-in Audio"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1b.0"
		device.nick = "HDA Intel MID"
		device.plugged.usec = "17165425"
		device.product.id = "0x3b56"
		device.product.name = "5 Series/3400 Series Chipset High Definition Audio"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		media.class = "Audio/Device"
		spa.object.id = "4"
		factory.id = "15"
		client.id = "47"
		object.id = "49"
		object.serial = "49"
		object.path = "alsa:acp:MID"
		alsa.card = "1"
		alsa.card_name = "HDA Intel MID"
		alsa.long_card_name = "HDA Intel MID at 0xd0600000 irq 27"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "Realtek ALC269VB"
		alsa.components = "HDA:10ec0269,10250612,00100100"
		alsa.id = "MID"
		device.string = "1"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
		pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability group: Legacy 1, availability unknown)
			Properties:
				port.type = "mic"
				port.availability-group = "Legacy 1"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "0"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "mic"
				port.availability-group = "Legacy 2"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "1"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 3, availability unknown)
			Properties:
				port.type = "speaker"
				port.availability-group = "Legacy 3"
				device.icon_name = "audio-speakers"
				card.profile.port = "2"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "headphones"
				port.availability-group = "Legacy 4"
				device.icon_name = "audio-headphones"
				card.profile.port = "3"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo

Card #77
	Name: bluez_card.34_82_C5_AE_6F_2B
	Driver: module-bluez5-device.c
	Owner Module: n/a
	Properties:
		api.bluez5.address = "34:82:C5:AE:6F:2B"
		api.bluez5.class = "0x240404"
		api.bluez5.connection = "connected"
		api.bluez5.device = ""
		api.bluez5.icon = "audio-headset"
		api.bluez5.path = "/org/bluez/hci0/dev_34_82_C5_AE_6F_2B"
		bluez5.profile = "off"
		device.alias = "Galaxy Buds Live (6F2B)"
		device.api = "bluez5"
		device.bus = "bluetooth"
		device.description = "Galaxy Buds Live (6F2B)"
		device.form_factor = "headset"
		device.icon_name = "audio-headset-bluetooth"
		device.name = "bluez_card.34_82_C5_AE_6F_2B"
		device.product.id = "0xa013"
		device.string = "34:82:C5:AE:6F:2B"
		device.vendor.id = "bluetooth:0075"
		media.class = "Audio/Device"
		spa.object.id = "0"
		factory.id = "15"
		client.id = "47"
		object.id = "71"
		object.serial = "77"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		headset-head-unit-cvsd: Headset Head Unit (HSP/HFP, codec CVSD) (sinks: 1, sources: 1, priority: 2, available: yes)
		headset-head-unit: Headset Head Unit (HSP/HFP, codec mSBC) (sinks: 1, sources: 1, priority: 3, available: yes)
	Active Profile: headset-head-unit
	Ports:
		headset-input: Headset (type: Headset, priority: 0, latency offset: 0 usec, available)
			Properties:
				port.type = "headset"
			Part of profile(s): headset-head-unit-cvsd, headset-head-unit
		headset-hf-output: Handsfree (type: Headset, priority: 0, latency offset: 0 usec, available)
			Properties:
				port.type = "headset"
			Part of profile(s): headset-head-unit-cvsd, headset-head-unit
$ pactl list sinks
Sink #53
	State: SUSPENDED
	Name: alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo
	Description: USB Audio Device Analog Stereo
	Driver: PipeWire
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	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
	Monitor Source: alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "0"
		alsa.card_name = "USB Audio Device"
		alsa.class = "generic"
		alsa.components = "USB1b3f:2008"
		alsa.device = "0"
		alsa.driver_name = "snd_usb_audio"
		alsa.id = "USB Audio"
		alsa.long_card_name = "GeneralPlus USB Audio Device at usb-0000:00:1a.0-1.6.2, full speed"
		alsa.mixer_name = "USB Mixer"
		alsa.name = "USB Audio"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.sync.id = "00000000:00000000:00000000:00000000"
		api.alsa.card.longname = "GeneralPlus USB Audio Device at usb-0000:00:1a.0-1.6.2, full speed"
		api.alsa.card.name = "USB Audio Device"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "3"
		device.api = "alsa"
		device.class = "sound"
		device.id = "48"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "1"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "USB Audio Device"
		node.name = "alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo"
		node.nick = "USB Audio Device"
		node.pause-on-idle = "false"
		object.path = "alsa:acp:Device:3:playback"
		port.group = "playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "19"
		clock.quantum-limit = "8192"
		client.id = "47"
		node.driver = "true"
		node.loop.name = "data-loop.0"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "53"
		object.serial = "53"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.split-enable = "true"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "usb"
		device.bus-id = "usb-GeneralPlus_USB_Audio_Device-00"
		device.bus_path = "pci-0000:00:1a.0-usb-0:1.6.2:1.0"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-usb"
		device.name = "alsa_card.usb-GeneralPlus_USB_Audio_Device-00"
		device.nick = "USB Audio Device"
		device.plugged.usec = "15352231"
		device.product.id = "0x2008"
		device.product.name = "USB Audio Device"
		device.serial = "GeneralPlus_USB_Audio_Device"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6.2/1-1.6.2:1.0/sound/card0"
		device.vendor.id = "0x1b3f"
		device.vendor.name = "Generalplus Technology Inc."
		spa.object.id = "2"
		device.string = "0"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability unknown)
	Active Port: analog-output-speaker
	Formats:
		pcm

Sink #55
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65401 / 100% / -0.05 dB,   front-right: 65401 / 100% / -0.05 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel MID"
		alsa.class = "generic"
		alsa.components = "HDA:10ec0269,10250612,00100100"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC269VB Analog"
		alsa.long_card_name = "HDA Intel MID at 0xd0600000 irq 27"
		alsa.mixer_name = "Realtek ALC269VB"
		alsa.name = "ALC269VB Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.sync.id = "00000000:00000000:00000000:00000000"
		api.alsa.card.longname = "HDA Intel MID at 0xd0600000 irq 27"
		api.alsa.card.name = "HDA Intel MID"
		api.alsa.path = "front:1"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "3"
		device.api = "alsa"
		device.class = "sound"
		device.id = "49"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1b.0.analog-stereo"
		node.nick = "ALC269VB Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:acp:MID:3:playback"
		port.group = "playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "19"
		clock.quantum-limit = "8192"
		client.id = "47"
		node.driver = "true"
		node.loop.name = "data-loop.0"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "55"
		object.serial = "55"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "1"
		api.alsa.split-enable = "true"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio1"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1b.0"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1b.0"
		device.nick = "HDA Intel MID"
		device.plugged.usec = "17165425"
		device.product.id = "0x3b56"
		device.product.name = "5 Series/3400 Series Chipset High Definition Audio"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		spa.object.id = "4"
		device.string = "1"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 4, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm

Sink #79
	State: SUSPENDED
	Name: bluez_output.34_82_C5_AE_6F_2B.1
	Description: Galaxy Buds Live (6F2B)
	Driver: PipeWire
	Sample Specification: s16le 1ch 16000Hz
	Channel Map: mono
	Owner Module: 4294967295
	Mute: no
	Volume: mono: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: bluez_output.34_82_C5_AE_6F_2B.1.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		api.bluez5.address = "34:82:C5:AE:6F:2B"
		api.bluez5.codec = "msbc"
		api.bluez5.profile = "headset-head-unit"
		api.bluez5.transport = ""
		bluez5.loopback = "false"
		card.profile.device = "1"
		device.id = "71"
		device.intended_roles = "Communication"
		device.routes = "1"
		factory.name = "api.bluez5.sco.sink"
		device.description = "Galaxy Buds Live (6F2B)"
		node.name = "bluez_output.34_82_C5_AE_6F_2B.1"
		node.pause-on-idle = "false"
		priority.driver = "1010"
		priority.session = "1010"
		spa.object.id = "1"
		factory.id = "12"
		clock.quantum-limit = "8192"
		device.api = "bluez5"
		media.class = "Audio/Sink"
		node.driver = "true"
		port.group = "stream.0"
		node.loop.name = "data-loop.0"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "73"
		object.serial = "79"
		client.id = "47"
		api.bluez5.class = "0x240404"
		api.bluez5.connection = "connected"
		api.bluez5.device = ""
		api.bluez5.icon = "audio-headset"
		api.bluez5.path = "/org/bluez/hci0/dev_34_82_C5_AE_6F_2B"
		bluez5.profile = "off"
		device.alias = "Galaxy Buds Live (6F2B)"
		device.bus = "bluetooth"
		device.form_factor = "headset"
		device.icon_name = "audio-headset-bluetooth"
		device.name = "bluez_card.34_82_C5_AE_6F_2B"
		device.product.id = "0xa013"
		device.string = "34:82:C5:AE:6F:2B"
		device.vendor.id = "bluetooth:0075"
	Ports:
		headset-hf-output: Handsfree (type: Headset, priority: 0, available)
	Active Port: headset-hf-output
	Formats:
		pcm
$ pactl list sink-inputs

has no output


I also will need some kind of graphic equaliser, tried easyeffect but got no good result with presets I found on github

Last edited by saalty (2025-02-11 13:42:53)

Offline

#4 2025-02-11 15:04:22

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

With pipewire now I have sound on my headphone connected  to usb soundcard (just eq is necessary, is the jamesdsp good?) but no sound on bluetooth device, even it is connected the sound is through wired headphone

Offline

#5 2025-02-11 15:25:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,431

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

As for switching where something plays back to, I suggest you install pavucontrol or so which gives you a gui where you can freely move around what plays where. (and pactl list sink-inputs will give you output if you actively play something somewhere)

Your main problem is that the Galaxy Buds appear to not advertise an a2dp profile (which leaves you with mono which is simply going to sound like shit), which could be a bug from them, a bug in your own BT dongle, something in the kernel or something in pipewire or something in bluez... you see BT is anything but trivial.

General problems in the last three would make much bigger waves here. so limits us to looking at your system.

Are the galaxy buds connected to anything else, e.g. your phone at the same time? Can you disable BT there and properly reconnect/re-pair the headphones to the Arch host to ensure there's no interference there? Did you use the same buds with the same BT dongle on another system e.g. a dual booted Windows or so? All of these are things that can leave the HW in undefined states and should be avoided if possible.

sudo journalctl -b | grep -iE 'bluez|btusb|Bluetooth'
sudo journalctl -b -u bluetooth
journalctl -b --user-unit pipewire --user-unit wireplumber
lsusb -t

As for EQ, yes I've heard good things about jamesdsp, personally I have only experience with easyeffects which is also quite good.

Last edited by V1del (2025-02-11 18:49:36)

Offline

#6 2025-02-11 20:48:49

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

Bluettoth earplugs are paired with my phone and with my TV but not connected at the same time while it connected to laptop and Arch. Also BT dongle is used only with this laptop, no other usage.

Here are the outputs:

[soosistvan@archlinux ~]$ sudo journalctl -b | grep -iE 'bluez|btusb|Bluetooth'
Feb 11 21:21:18 archlinux kernel: usb 1-1.5: Product: Bluetooth Radio
Feb 11 21:21:30 archlinux kernel: Bluetooth: Core ver 2.22
Feb 11 21:21:30 archlinux kernel: NET: Registered PF_BLUETOOTH protocol family
Feb 11 21:21:30 archlinux kernel: Bluetooth: HCI device and connection manager initialized
Feb 11 21:21:30 archlinux kernel: Bluetooth: HCI socket layer initialized
Feb 11 21:21:30 archlinux kernel: Bluetooth: L2CAP socket layer initialized
Feb 11 21:21:30 archlinux kernel: Bluetooth: SCO socket layer initialized
Feb 11 21:21:30 archlinux kernel: usbcore: registered new interface driver btusb
Feb 11 21:21:30 archlinux kernel: Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Feb 11 21:21:30 archlinux kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
Feb 11 21:21:30 archlinux kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Feb 11 21:21:30 archlinux kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Feb 11 21:21:30 archlinux kernel: Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
Feb 11 21:21:30 archlinux kernel: Bluetooth: hci0: RTL: fw version 0xdfc6d922
Feb 11 21:21:32 archlinux systemd[1]: Starting Bluetooth service...
Feb 11 21:21:32 archlinux (uetoothd)[413]: bluetooth.service: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
Feb 11 21:21:32 archlinux bluetoothd[413]: Bluetooth daemon 5.79
Feb 11 21:21:32 archlinux systemd[1]: Started Bluetooth service.
Feb 11 21:21:32 archlinux bluetoothd[413]: Starting SDP server
Feb 11 21:21:32 archlinux kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Feb 11 21:21:32 archlinux kernel: Bluetooth: BNEP filters: protocol multicast
Feb 11 21:21:32 archlinux kernel: Bluetooth: BNEP socket layer initialized
Feb 11 21:21:32 archlinux kernel: Bluetooth: MGMT ver 1.23
Feb 11 21:21:32 archlinux bluetoothd[413]: Bluetooth management interface 1.23 initialized
Feb 11 21:21:32 archlinux bluetoothd[413]: Battery Provider Manager created
Feb 11 21:21:33 archlinux systemd[1]: Reached target Bluetooth Support.
Feb 11 21:21:33 archlinux bluealsad[437]: ../glib/gio/gdbusobjectmanagerserver.c:1125: Error registering manager at /org/bluez/hci0: An object is already exported for the interface org.freedesktop.DBus.ObjectManager at /org/bluez/hci0
Feb 11 21:21:33 archlinux bluealsad[437]: Couldn't register media application: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/sink/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/sink/1
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/source/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/sink/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/source/1
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/sink/1
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/source/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/source/1
Feb 11 21:30:33 archlinux wireplumber[1398]: wireplumber: Old configuration file detected: /home/soosistvan/.config/wireplumber/main.lua.d/bluez.lua
Feb 11 21:30:48 archlinux kernel: Bluetooth: RFCOMM TTY layer initialized
Feb 11 21:30:48 archlinux kernel: Bluetooth: RFCOMM socket layer initialized
Feb 11 21:30:48 archlinux kernel: Bluetooth: RFCOMM ver 1.11
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/ldac
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/aptx_hd
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_hd
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/aptx
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/aac
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aac
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/opus_g
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/opus_g
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/sbc
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/sbc
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/faststream
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/faststream_duplex
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/opus_05
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/opus_05
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Feb 11 21:31:48 archlinux systemd[583]: Starting Bluetooth OBEX service...
Feb 11 21:31:48 archlinux systemd[583]: Started Bluetooth OBEX service.
Feb 11 21:32:12 archlinux systemd[583]: Reached target Bluetooth.
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5: Properties changed in unknown transport '/org/bluez/hci0/dev_34_82_C5_AE_6F_2B/fd0'. Multiple sound server instances (PipeWire/Pulseaudio/bluez-alsa) are probably trying to use Bluetooth audio at the same time, which can cause problems. The system configuration likely should be fixed to have only one sound server that manages Bluetooth audio.
Feb 11 21:32:13 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/source/3
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5: Properties changed in unknown transport '/org/bluez/hci0/dev_34_82_C5_AE_6F_2B/fd0'. Multiple sound server instances (PipeWire/Pulseaudio/bluez-alsa) are probably trying to use Bluetooth audio at the same time, which can cause problems. The system configuration likely should be fixed to have only one sound server that manages Bluetooth audio.
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5.native: RFCOMM receive command but modem not available: AT+SAMSUNG=VID,117,PID,40979,BTVER,R180XXU0AVC2
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5.native: RFCOMM receive command but modem not available: AT+SAMSUNG=VR_BTN,0
[soosistvan@archlinux ~]$ sudo journalctl -b -u bluetooth
Feb 11 21:21:32 archlinux systemd[1]: Starting Bluetooth service...
Feb 11 21:21:32 archlinux (uetoothd)[413]: bluetooth.service: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 Configurat>
Feb 11 21:21:32 archlinux bluetoothd[413]: Bluetooth daemon 5.79
Feb 11 21:21:32 archlinux systemd[1]: Started Bluetooth service.
Feb 11 21:21:32 archlinux bluetoothd[413]: Starting SDP server
Feb 11 21:21:32 archlinux bluetoothd[413]: Bluetooth management interface 1.23 initialized
Feb 11 21:21:32 archlinux bluetoothd[413]: Battery Provider Manager created
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/sink/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/sink/1
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/source/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/sink/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/SBC/source/1
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/sink/1
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/source/2
Feb 11 21:21:33 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/source/1
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/ldac
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/aptx_hd
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_hd
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/aptx
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/aac
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aac
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/opus_g
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/opus_g
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/sbc
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/sbc
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/faststream
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/faststream_duplex
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/opus_05
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/opus_05
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Feb 11 21:30:49 archlinux bluetoothd[413]: Endpoint registered: sender=:1.24 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Feb 11 21:32:13 archlinux bluetoothd[413]: Endpoint registered: sender=:1.6 path=/org/bluez/hci0/A2DP/AAC/source/3
[soosistvan@archlinux ~]$ journalctl -b --user-unit pipewire --user-unit wireplumber
Feb 11 21:30:31 archlinux systemd[583]: Started PipeWire Multimedia Service.
Feb 11 21:30:31 archlinux systemd[583]: Started Multimedia Service Session Manager.
Feb 11 21:30:33 archlinux wireplumber[1398]: wireplumber: Old configuration file detected: /home/soosistvan/.config/wireplumber/main.lua.d/bluez.lua
Feb 11 21:30:33 archlinux wireplumber[1398]: wireplumber: Lua configuration files are NOT supported in WirePlumber 0.5. You need to port them to the new format if you >
                                             -> See https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/migration.html
Feb 11 21:30:33 archlinux wireplumber[1398]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Feb 11 21:30:33 archlinux wireplumber[1398]: mod.rt: RTKit does not give us MaxRealtimePriority, using 1
Feb 11 21:30:33 archlinux wireplumber[1398]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Feb 11 21:30:33 archlinux wireplumber[1398]: mod.rt: RTKit does not give us MinNiceLevel, using 0
Feb 11 21:30:33 archlinux pipewire[1397]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Feb 11 21:30:33 archlinux pipewire[1397]: mod.rt: RTKit does not give us MaxRealtimePriority, using 1
Feb 11 21:30:33 archlinux wireplumber[1398]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Feb 11 21:30:33 archlinux wireplumber[1398]: mod.rt: RTKit does not give us RTTimeUSecMax, using -1
Feb 11 21:30:33 archlinux pipewire[1397]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Feb 11 21:30:33 archlinux pipewire[1397]: mod.rt: RTKit does not give us MinNiceLevel, using 0
Feb 11 21:30:33 archlinux pipewire[1397]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Feb 11 21:30:33 archlinux pipewire[1397]: mod.rt: RTKit does not give us RTTimeUSecMax, using -1
Feb 11 21:30:34 archlinux wireplumber[1398]: wp-internal-comp-loader: Loading profile 'main'
Feb 11 21:30:46 archlinux wireplumber[1398]: default: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
Feb 11 21:30:49 archlinux wireplumber[1398]: wp-device: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
Feb 11 21:30:49 archlinux wireplumber[1398]: s-monitors-libcamera: PipeWire's libcamera SPA plugin is missing or broken. Some camera types may not be supported.
Feb 11 21:30:51 archlinux wireplumber[1398]: m-portal-permissionstore: <WpPortalPermissionStorePlugin:0x563502d375f0> Lookup: The name is not activatable (org.freedesk>
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5: Properties changed in unknown transport '/org/bluez/hci0/dev_34_82_C5_AE_6F_2B/fd0'. Multiple sound server ins>
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5: Properties changed in unknown transport '/org/bluez/hci0/dev_34_82_C5_AE_6F_2B/fd0'. Multiple sound server ins>
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5.native: RFCOMM receive command but modem not available: AT+SAMSUNG=VID,117,PID,40979,BTVER,R180XXU0AVC2
Feb 11 21:32:13 archlinux wireplumber[1398]: spa.bluez5.native: RFCOMM receive command but modem not available: AT+SAMSUNG=VR_BTN,0
[soosistvan@archlinux ~]$ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 003: Dev 003, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 003: Dev 003, If 1, Class=Video, Driver=uvcvideo, 480M
        |__ Port 005: Dev 004, If 0, Class=Wireless, Driver=btusb, 12M
        |__ Port 005: Dev 004, If 1, Class=Wireless, Driver=btusb, 12M
        |__ Port 006: Dev 005, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 002: Dev 006, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 002: Dev 006, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 002: Dev 006, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 002: Dev 006, If 3, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 003: Dev 007, If 0, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 003: Dev 007, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 001: Dev 003, If 0, Class=Mass Storage, Driver=ums-realtek, 480M

Offline

#7 2025-02-12 00:36:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,431

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

Try getting the conflicting daemons out of the way, make sure bluez-alsa is  not interfering.

Offline

#8 2025-02-12 05:47:42

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

Can you please help me how to do that? Can I find some wiki pages about this?
Should I change bluez.lua to new format? Now it is looks like:

bluez_monitor = {
    properties = {
        ["bluez5.enable-hw-volume"] = true,
        ["bluez5.roles"] = "[ a2dp_sink, headset_audio_gateway ]"
    }
} 

May I remove bluez-alsa-git package if I use pipewire instead of alsa?

Last edited by saalty (2025-02-12 06:20:45)

Offline

#9 2025-02-12 18:13:40

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

Okay, I'm going to mark this topik as solved. Dont know which step solved but now I have a2dp profile for my bluettoth earplugs. So what I did:

1. Changed bluez.lua akkordin to this

#bluez_monitor = {
#    properties = {
#        ["bluez5.enable-hw-volume"] = true,
#        ["bluez5.roles"] = "[ a2dp_sink, headset_audio_gateway ]"
#    }
#}

 monitor.bluez.properties = {
   bluez5.enable-hw-volume = true
   bluez5.roles = [ a2dp_sink, headset_audio_gateway ]
 }

2. Solved "archlinux (uetoothd)[413]: bluetooth.service: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)" according to this

3. finally I removed bluez-alsa-git

Thanks to V1del for help!

Last edited by saalty (2025-02-12 18:15:41)

Offline

#10 2025-02-12 18:19:51

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

I have two more, not too important questions:
1. Is it possible to make change automatically between bluetooth, usb, and speaker (in this order)?
2. I founf that link file for bluealsa.service still exist even I removed bluez-alsa-git with yay -Rns....

[soosistvan@archlinux ~]$ ls -l /etc/systemd/system/bluetooth.target.wants/
total 0
lrwxrwxrwx 1 root root 40 Feb  6 09:13 bluealsa.service -> /usr/lib/systemd/system/bluealsa.service
lrwxrwxrwx 1 root root 41 May 27  2018 bluetooth.service -> /usr/lib/systemd/system/bluetooth.service
[soosistvan@archlinux ~]$ cat /etc/systemd/system/bluetooth.target.wants/bluealsa.service 
cat: /etc/systemd/system/bluetooth.target.wants/bluealsa.service: No such file or directory

Should I remove manually?

Offline

#11 2025-02-12 20:48:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,431

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

Not sure how well the "order" part of that can be done, but what you can generally do is enable "module-switch-on-connect" which will switch to whichever "new" device you're connecting by creating an /etc/pipewire/pipewire-pulse.d/10-loadConnectModule.conf

pulse.cmd = [
    { cmd = "load-module" args = "module-always-sink" flags = [ ] }
    { cmd = "load-module" args = "module-device-manager" flags = [ ] }
    { cmd = "load-module" args = "module-device-restore" flags = [ ] }
    { cmd = "load-module" args = "module-stream-restore" flags = [ ] }
    { cmd = "load-module" args = "module-switch-on-connect" }
]

As for the bluealsa leftover symlinks, yes you can just remove those.

Also for posterity's sake, since you're using pipewire now, get rid of the original asound.conf and install pipewire-alsa instead as you otherwise don't have proper integration should you encounter an application that's ALSA only (though those really aren't that widespread anymore)

Last edited by V1del (2025-02-12 20:54:57)

Offline

#12 2025-02-14 20:19:21

saalty
Member
Registered: 2012-04-06
Posts: 88

Re: [SOLVED]Alsa with external USB sound card and external USB bluetooth

V1del wrote:

/etc/pipewire/pipewire-pulse.d/10-loadConnectModule.conf

pulse.cmd = [
    { cmd = "load-module" args = "module-always-sink" flags = [ ] }
    { cmd = "load-module" args = "module-device-manager" flags = [ ] }
    { cmd = "load-module" args = "module-device-restore" flags = [ ] }
    { cmd = "load-module" args = "module-stream-restore" flags = [ ] }
    { cmd = "load-module" args = "module-switch-on-connect" }
]

Sadly this not working

Offline

Board footer

Powered by FluxBB