You are not logged in.
Pages: 1
Trying to figure out why I can't record or use my microphone with anything (skype, google hangouts, etc).
I'm using a Thinkpad T430 with integrated headset jack and when I try to run
arecord -vv -fdat foo.wavI get
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
arecord: main:788: audio open error: Device or resource busyI've enabled my capture device in alsamixer, and I even get feedback from the mic if i disable loopback but this is all I can do.
I have pulseaudio installed and running (but for some reason pavucontrol hangs on Establishing connection to PulseAudio. Please Wait...
here is the output of
# lspci -vv -s 00:1b.000:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Lenovo Device 21f3
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 30
Region 0: Memory at f2530000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee00318 Data: 0000
Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0
ExtTag- RBE-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
Capabilities: [100 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=01
Status: NegoPending- InProgress-
VC1: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=1 ArbSelect=Fixed TC/VC=22
Status: NegoPending- InProgress-
Capabilities: [130 v1] Root Complex Link
Desc: PortNumber=0f ComponentID=00 EltType=Config
Link0: Desc: TargetPort=00 TargetComponent=00 AssocRCRB- LinkType=MemMapped LinkValid+
Addr: 00000000fed1c000
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intelI'm very confused, is there something I'm missing that wasn't covered in the alsa guide? Thanks.
Last edited by rhenvar (2017-03-29 19:43:32)
Offline
I have pulseaudio installed and running (but for some reason pavucontrol hangs on Establishing connection to PulseAudio. Please Wait...
Ensure to install pulseaudio-alsa and check the condition w/o pulseaudio.
Offline
Ensure to install pulseaudio-alsa and check the condition w/o pulseaudio.
I have pulseaudio-alsa installed, only got the pulseaudio suite because the microphone didn't work on it's own
Last edited by rhenvar (2017-03-28 06:10:46)
Offline
Ok, try to get it to work w/o PA first - which errors do you get then?
Offline
PA can't connect and your own arecord can't connect something is blocking your card for both, check the output of
sudo fuser -v /dev/snd/*Offline
Ok, try to get it to work w/o PA first - which errors do you get then?
Same errors, no change
PA can't connect and your own arecord can't connect something is blocking your card for both, check the output of
sudo fuser -v /dev/snd/*
output is
USER PID ACCESS COMMAND
/dev/snd/controlC0: rhenvar 26892 F.... alsamixer
/dev/snd/pcmC0D0c: rhenvar 2298 F...m pulseaudiokilled alsamixer and just have pulseaudio process runninng now
Last edited by rhenvar (2017-03-28 19:36:54)
Offline
This looks like pulseaudio is hanging on the microphone.
Ensure to *really* stop pulseaudio, check opened files again, ensure there's nothing opened (ie. quit alsamixer first) and then try arecord again, also check "arecord -L" and try eg. "arecord -D sysdefault -t wav test.wav" (use different names than sysdefault, sth. sounding sensible) and check whether the device is really inaccessible.
Check "stat /dev/snd/pcmC0D0c" and "id -a" to see whether you're in the relevant group (maybe this is a red herring for insufficient permissions) and finally run "sudo lsof | grep '/dev/snd'"
Offline
After killing pulseaudio and checking permissions I decided to wipe pulseaudio from my system and try again bottom up. I get no output from sudo fuser -v /dev/snd/* and my microphone is magically working again. I'll look into it some more to see if I could find what was causing the problem.
Offline
Pages: 1