This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[User Edition] Audio issues: Can't connect to PulseAudio?

Tags: None
(comma "," separated)
AppAraat
Registered Member
Posts
1
Karma
0
Hello everyone,

This thread is basically a copy of a Reddit thread here.

When I run
Code: Select all
play -n synth whitenoise gain -6
(requires sox to be installed and it might be loud), I get this error:

Code: Select all
└─$ play -n synth whitenoise gain -6
shm_open() failed: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error

play FAIL formats: can't open output file `default': snd_pcm_open error: Connection refused


So then I tried this:
Code: Select all
└─$  speaker-test

speaker-test 1.1.0

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
shm_open() failed: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error

Playback open error: -111,Connection refused


So I thought hmm... this might be a PA issue, so then:
Code: Select all
└─$  pactl list
shm_open() failed: No such file or directory
Connection failure: Protocol error


I've also tried what this user was suggesting with the following results.

Further info:
Code: Select all
└─$  sudo lspci -vvv -s '00:1b.0'
[sudo] password for me:
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
        Subsystem: Lenovo 7 Series/C210 Series Chipset Family High Definition Audio Controller
        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 f1530000 (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: 00000000fee002f8  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_intel


Code: Select all
└─$  lsmod |grep snd
snd_hda_codec_realtek    86016  0
snd_hda_codec_hdmi     45056  0
snd_hda_codec_generic    73728  3 snd_hda_codec_realtek
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_hda_intel          36864  3
snd_hda_codec         135168  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_rawmidi            32768  1 snd_seq_midi
snd_hda_core           86016  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               110592  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_seq,snd_pcm
snd                    86016  18 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,thinkpad_acpi,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd


Meanwhile, VLC together with Chromium and Firefox do have audio. However, I can't play sound through mpv for example.
Hardware: Lenovo x230 with i5-3360
NoNameNoBlame
Karma
0
Try doing it as superuser/root
by prepending 'sudo …'.

If it works, check which groups exist
on Your system and which groups You are in.

Add Yourself to audio-related group(s).

ReadWrite-permissions for Your account
should normally be auto-configured:

Example:

$ cd /

$ getfacl dev/snd/controlC0
# file: dev/snd/controlC0
# owner: root
# group: audio
user::rw-
user:<Your-UserAccount-Name>:rw-
group::rw-
mask::rw-
other::---
NoNameNoBlame
Karma
0
Another reason could be that this file either is missing
or has wrong permissions:

$ ls -l ${HOME}/.pulse-cookie
1 -rw------- 1 You You 1 2016-11-24T15:58:22+0100 /home/You/.pulse-cookie


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]