You are not logged in.
As i hate to waste anyone's time, I tried out everything i could find before posting here, but i feel I'm getting closer to a solution, just no quite enough.
About a week, as i watched Typecraft's guide to Archlinux, btw, i decided to try it out. Everything worked perfectly and as a newbie programmer i could figure things out with just enough persistence. There's only one thing that has been haunting me: the audio setup
Here's the deal: since day one i couldn't make the audio from my wireless headset work (the microphone works fine tho)
I was running pipewire, so i tried switching the connections, but that was not the problem. When i switched to pulsewave, i saw my first hope. When i started pacmixer, switched from mono to stereo and cracked up the headset volume, the sound worked!
There's just one problem, tho
If i start a video or stream while the headset configured as stereo in pulsewave, said video or stream just won't load.
I've tried this Browsers (firefox) load videos but do no play but it didn't really worked. Tried going back to pipewire and apply what i've learned, but nothing.
The only workaround i found was switching my headset configs back to mono and then back to stereo, but i have to do this every time i start a spotify song, for exemple, from a "quiet enviroment"
Thanks for reading and any help is appreciated!
Last edited by Modest (2024-06-04 17:48:39)
Offline
What's pulsewave? Are you talking about pulseaudio? You probably want to install pipewire-pulse instead.
In doubt post the outputs of
sudo fuser -v /dev/snd/*
aplay -lL
systemctl --user status pipewire|{,-pulse} wireplumber
pacman -Qs 'pulse|wire'
pactl list-sinks
Offline
the pulsewave was a brainfart, sorry about it. I was talking about pulseaudio.
❯ sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: dumbdev 1330 F.... pulseaudio
dumbdev 1512 F.... wireplumber
/dev/snd/controlC1: dumbdev 1330 F.... pulseaudio
dumbdev 1512 F.... wireplumber
/dev/snd/controlC2: dumbdev 1512 F.... wireplumber
/dev/snd/controlC3: dumbdev 1330 F.... pulseaudio
dumbdev 1512 F.... wireplumber
/dev/snd/seq: dumbdev 1511 F.... pipewire
aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pipewire
PipeWire Sound Server
pulse
PulseAudio Sound Server
speex
Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
default
Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=NVidia,DEV=0
HDA NVidia, Acer V226HQL
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 1
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 2
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 3
HDMI Audio Output
usbstream:CARD=NVidia
HDA NVidia
USB Stream Output
sysdefault:CARD=Generic
HD-Audio Generic, ALC887-VD Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
Front output / input
surround21:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Generic
HD-Audio Generic
USB Stream Output
usbstream:CARD=CAM720p
Microfone(Intelbras CAM-720p)
USB Stream Output
sysdefault:CARD=headset
2.4G Wireless headset, USB Audio
Default Audio Device
front:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
Front output / input
surround21:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=headset,DEV=0
2.4G Wireless headset, USB Audio
IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=headset
2.4G Wireless headset
USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [Acer V226HQL]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: headset [2.4G Wireless headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
systemctl --user status pipewire|{,-pulse} wireplumber
fish: The expanded command was empty.
systemctl --user status pipewire|{,-pulse} wireplumber
pacman -Qs 'pulse|wire'
local/coppwr 1.6.0-1
Low level PipeWire control GUI
local/gst-plugin-pipewire 1:1.0.7-2
Multimedia graph framework - pipewire plugin
local/gtk-vnc 1.3.1-1
VNC viewer widget for GTK
local/libcanberra 1:0.30+r2+gc0620e4-3
A small and lightweight implementation of the XDG Sound Theme Specification
local/libpipewire 1:1.0.7-2
Low-latency audio/video router and processor - client library
local/libpulse 17.0-3
A featureful, general-purpose sound server (client library)
local/libraw1394 2.1.2-3
Provides an API to the Linux IEEE1394 (FireWire) driver
local/libwireplumber 0.5.2-2
Session / policy manager implementation for PipeWire - client library
local/linux 6.9.2.arch1-1
The Linux kernel and modules
local/pacmixer 0.6.4-1
alsamixer alike for PulseAudio.
local/pamixer 1.6-3
Pulseaudio command-line mixer like amixer
local/pipewire 1:1.0.7-2
Low-latency audio/video router and processor
local/pipewire-audio 1:1.0.7-2
Low-latency audio/video router and processor - Audio support
local/pipewire-jack 1:1.0.7-2
Low-latency audio/video router and processor - JACK replacement
local/pulseaudio 17.0-3
A featureful, general-purpose sound server
local/pulseaudio-alsa 1:1.2.7.1-2
ALSA Configuration for PulseAudio
local/pulseaudio-bluetooth 17.0-3
Bluetooth support for PulseAudio
local/pulseaudio-jack 17.0-3
Jack support for PulseAudio
local/pulseaudio-lirc 17.0-3
IR (lirc) support for PulseAudio
local/pulseaudio-zeroconf 17.0-3
Zeroconf support for PulseAudio
local/qemu-audio-pa 9.0.0-1
QEMU PulseAudio audio driver
local/qemu-audio-pipewire 9.0.0-1
QEMU PipeWire audio driver
local/wireplumber 0.5.2-2
Session / policy manager implementation for PipeWire
local/wpa_supplicant 2:2.10-8
A utility providing key negotiation for WPA wireless networks
pactl list-sinks outputed a "no valid command" error, so I tried the closest thing
pactl list sinks
Sink #0
State: SUSPENDED
Name: alsa_output.usb-XiiSound_Technology_Corporation_2.4G_Wireless_headset-00.iec958-stereo
Description: 2.4G Wireless headset Digital Stereo (IEC958)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 8
Mute: no
Volume: front-left: 41970 / 64% / -11,61 dB, front-right: 41970 / 64% / -11,61 dB
balance 0,00
Base Volume: 65536 / 100% / 0,00 dB
Monitor Source: alsa_output.usb-XiiSound_Technology_Corporation_2.4G_Wireless_headset-00.iec958-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "3"
alsa.card_name = "2.4G Wireless headset"
alsa.long_card_name = "XiiSound Technology Corporation 2.4G Wireless headset at usb-0000:0a:00.3-4, fu"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:0a:00.3-usb-0:4:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-4/3-4:1.0/sound/card3"
udev.id = "usb-XiiSound_Technology_Corporation_2.4G_Wireless_headset-00"
device.bus = "usb"
device.vendor.id = "040b"
device.vendor.name = "Weltrend Semiconductor"
device.product.id = "0802"
device.product.name = "2.4G Wireless headset"
device.serial = "XiiSound_Technology_Corporation_2.4G_Wireless_headset"
device.form_factor = "headset"
device.string = "iec958:3"
device.buffering.buffer_size = "384000"
device.buffering.fragment_size = "192000"
device.access_mode = "mmap+timer"
device.profile.name = "iec958-stereo"
device.profile.description = "Digital Stereo (IEC958)"
device.description = "2.4G Wireless headset Digital Stereo (IEC958)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-headset-usb"
device.intended_roles = "phone"
Ports:
iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, availability unknown)
Active Port: iec958-stereo-output
Formats:
pcm
Offline
Sorry the systemctl command would be
systemctl --user status pipewire{,-pulse} wireplumber #without a random pipe
am writing from an unfamiliar keyboard so I might introduce some typos here and there.
In any case the fuser output tells us everything I wanted to know. You are producing logical conflicts between wireplumber and pulseaudio (iirc the newest wireplumber 0.5.3 includes a "video only" mode you could configure to break that conflict, but didn't yet get around to checking how one would enable that). The general suggestion I have here is to get rid of pulseaudio and move everything to pipewire properly. The majority of that process should be doable by simply installing pipewire-pulse and pipewire-alsa instead of the corresponding pulseaudio packages.
Offline
The general suggestion I have here is to get rid of pulseaudio and move everything to pipewire properly.
I did that before following this tip by WorMzy and indeed the video problem was solved but i just couldn't get the headset audio working.
As I'm kinda scared of touching things now that i got they working (barely. i need to change profiles every time an audio starts), but i'll try.
Offline
Yep. Returning to pipewire solved the video freezing problem and changing the profiles with pavucontrol solved the headset audio thing. thank you so much!
Last edited by Modest (2024-06-04 18:05:34)
Offline