Headphones are causing media to randomly pause and play

After running sudo packtl unload-module module-suspend-on-idle
I was met with Connection failure: Connection refused pa_context_connect() failed: Connection refused

Have you tried rebooting?

I assume that’s just a typo in the post, not what you entered?

Yeah just a typo I had the error copied so i just typed that bit

1 Like

Same error after reboot

although now after the reboot I cant multiplex sounds anymore

This suggests that the problem is probably not with pulseaudio, but perhaps with pipewire. :thinking:

And now the original issue is happening again so just commenting out that line hasn’t helped

inxi data shows USB Bluetooh adapter device is using 3 drivers

  Device-4: Bluetrum USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:13
    chip-ID: 3302:29b7 class-ID: 0300

snd-usb-audio for audio playback
hid-generic and usbhid for mutimedia controls (Human Interface Device)

Try using this to unbind the usbhid driver from the device

sudo tee /etc/modprobe.d/usbhid-unbind.conf << 'options usbhid quirks=0x3302:0x29b7:0x04'

[If this does not work the quirk can also be loaded as a boot parameter
usercomp - Apply usbhid quirks
stackexchange - Prevent usbhid from claiming USB device]

If one or more of the onboard audio jacks is malfunctioning they can be disabled

Install alsa-tools and run jack retasking tool with root privileges

sudo hdajackretask 

Select the onboard audio codec (Realtek ALC1150)

Create an Override for the broken jack(s) and change them to Not Connected

Working output jacks (e.g. for surround-sound rear or side channels) can also be re-tasked to replace front channel or headphone jacks

To save the overrides click Install boot override and reboot system to reload ALSA devices

1 Like

Similar thing happens to me with no audio on headphones with Manjaro, when I’ve booted up with the headphones already plugged in. Since it’s such little effort to correct this by unplugging then replug them, I’ve never really bothered to find out the cause.

I have attempted to run the first command, I’m not sure if it worked all that has happened is that any line after is preceded by heredoc>. Currently no issues with media controls have happened but I’ll have to wait for a while to confirm.

When running the second command I was met with
sudo: hdajackretask: command not found

In addition since my last post it now says that connection to the sound service has been lost and I can’t view or edit any of my sound setting. Also I still can’t multiplex sound.

Reboot system and check if the first command worked:

cat /etc/modprobe.d/usbhid-unbind.conf

and check drivers loaded for audio device

inxi -Aaz

Install alsa-tools:

pamac install alsa-tools

and follow previous post for how to create overrides in hdajackretask

I do not understand what you mean by this

I suggest you open a new topic and post more information about system, audio and Bluetooth devices

inxi -SMAEaz
cat: /etc/modprobe.d/usbhid-unbind.conf: No such file or directory
    ~  inxi -Aaz                                                                                                                                                                                        1 ✘ 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403
  Device-2: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f9 class-ID: 0403
  Device-3: Bluetrum USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:2
    chip-ID: 3302:29b7 class-ID: 0300 serial: <filter>
  Device-4: TONOR TC30 Audio Device driver: snd-usb-audio type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:3 chip-ID: 5678:1234
    class-ID: 0300 serial: <filter>
  API: ALSA v: k6.12.39-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: qjackctl
  Server-2: PipeWire v: 1.4.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl

Here is the results of that

previous command was missing a <

sudo tee /etc/modprobe.d/usbhid-unbind.conf <<< 'options usbhid quirks=0x3302:0x29b7:0x04'
options usbhid quirks=0x3302:0x29b7:0x04
    ~  inxi -Aaz                                                                                                                                                                                                                                                                 ✔ 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403
  Device-2: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f9 class-ID: 0403
  Device-3: Bluetrum USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:2
    chip-ID: 3302:29b7 class-ID: 0300 serial: <filter>
  Device-4: TONOR TC30 Audio Device driver: snd-usb-audio type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:3 chip-ID: 5678:1234
    class-ID: 0300 serial: <filter>
  API: ALSA v: k6.12.39-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: qjackctl
  Server-2: PipeWire v: 1.4.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl

Reboot system to ensure the new modprobe option is loaded

That was after the reboot

Delete the modprobe file

sudo rm /etc/modprobe.d/usbhid-unbind.conf

Open GRUB configuration file in a text editor

sudo nano /etc/default/grub

edit the boot options after GRUB_CMDLINE_LINUX_DEFAULT and add the driver quirk
at the end of the quoted list

GRUB_CMDLINE_LINUX_DEFAULT="...     ...usbhid.quirks=0x3302:0x29b7:0x4"

save and exit text editor and update GRUB

sudo update-grub

reboot system

check if boot options inxi -Saz include usbhid quirk

and check usbhid driver is NOT loaded for USB audio device in inxi -Aaz

  ~  inxi -Saz                                                                                                                                                                                          ✔ 
System:
  Kernel: 6.12.39-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.12-x86_64
    root=UUID=5b5a28c0-2e81-4d23-8526-f1b652116452 rw rootflags=subvol=@
    quiet splash udev.log_priority=3 usbhid.quirks=0x29b7:0x4
  Desktop: KDE Plasma v: 6.3.6 tk: Qt v: N/A info: frameworks v: 6.16.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
    ~  inxi -Aaz                                                                                                                                                                                          ✔ 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403
  Device-2: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f9 class-ID: 0403
  Device-3: Bluetrum USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:2
    chip-ID: 3302:29b7 class-ID: 0300 serial: <filter>
  Device-4: TONOR TC30 Audio Device driver: snd-usb-audio type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:3 chip-ID: 5678:1234
    class-ID: 0300 serial: <filter>
  API: ALSA v: k6.12.39-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: qjackctl
  Server-2: PipeWire v: 1.4.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl

Still there for some reason

Quirk is missing Vendor id 0x3302 - Bluetrum USB Audio - USB 3302:29b7

usbhid.quirks=0x3302:0x29b7:0x4