You are not logged in.
I have tried troubleshooting using the provided wiki documentation on ALSA and pulseaudio but given the large number of variables and my limited knowledge in this area, I am unsure as to where to begin in diagnosing my problem. Could someone please point me in the right direction?
Here's my output from alsa-info.sh.
Any help is much appreciated! Thanks.
Last edited by twenty3andaspie (2016-03-26 22:44:29)
Offline
It depends on where you are trying to play from, what are you using to determine if you don't have sound? There's a good chance some of your pulse sinks are set up incorrectly, can you post
pacmd list-cards
pacmd list-sinks
#While playing something
pacmd list-sink-inputs
sudo fuser -v /dev/snd/*Last edited by V1del (2016-03-24 07:43:07)
Offline
Thanks for the reply. I've tried several different applications that produce audio output. For these cases, I'm using Pithos, an open-source client for Pandora radio.
pacmd list-cards
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_03.0>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel HDMI"
alsa.long_card_name = "HDA Intel HDMI at 0xf7c34000 irq 32"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:03.0"
sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "0c0c"
device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: unknown)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: unknown)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo>
sinks:
alsa_output.pci-0000_00_03.0.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_03.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
ports:
analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
properties:
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"pacmd list-cards
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_03.0>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel HDMI"
alsa.long_card_name = "HDA Intel HDMI at 0xf7c34000 irq 32"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:03.0"
sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "0c0c"
device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: unknown)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: unknown)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo>
sinks:
alsa_output.pci-0000_00_03.0.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_03.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
ports:
analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
properties:
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"pacmd list-sink inputs
6 sink input(s) available.
index: 0
driver: <module-combine-sink.c>
flags: VARIABLE_RATE DONT_MOVE NO_CREATE_SUSPEND
state: RUNNING
sink: 0 <alsa_output.pci-0000_00_03.0.analog-stereo>
volume: front-left: 79683 / 122% / 5.09 dB, front-right: 79683 / 122% / 5.09 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 0.50 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: trivial
module: 20
properties:
media.name = "Simultaneous output on Built-in Audio Analog Stereo"
media.role = "filter"
module-stream-restore.id = "sink-input-by-media-role:filter"
index: 1
driver: <module-rtp-recv.c>
flags: VARIABLE_RATE
state: RUNNING
sink: 2 <combined>
volume: front-left: 83572 / 128% / 6.33 dB, front-right: 83572 / 128% / 6.33 dB
balance 0.00
muted: no
current latency: 497.48 ms
requested latency: 200.00 ms
sample spec: s16be 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: speex-float-1
module: 16
properties:
media.role = "stream"
media.name = "RTP Stream (PulseAudio RTP Stream on nick-lenovothinkserver)"
rtp.session = "PulseAudio RTP Stream on nick-lenovothinkserver"
rtp.origin = "nick 3668020552 0 IN IP4 192.168.0.101"
rtp.payload = "10"
module-stream-restore.id = "sink-input-by-media-role:stream"
index: 2
driver: <protocol-native.c>
flags:
state: DRAINED
sink: 2 <combined>
volume: front-left: 86849 / 133% / 7.34 dB, front-right: 86849 / 133% / 7.34 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 19.96 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: (null)
module: 12
client: 9 <NoMachine>
properties:
media.name = "NoMachine"
application.name = "NoMachine"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "1620"
application.process.user = "nick"
application.process.host = "nick-lenovothinkserver"
application.process.binary = "nxclient.bin"
application.language = "en_US.utf8"
window.x11.display = ":0"
application.process.machine_id = "f3e1e41ff53e420d856bff4958fd5520"
module-stream-restore.id = "sink-input-by-application-name:NoMachine"
index: 3
driver: <protocol-native.c>
flags:
state: DRAINED
sink: 2 <combined>
volume: mono: 75358 / 115% / 3.64 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 0.50 ms
sample spec: s16le 1ch 44100Hz
channel map: mono
Mono
resample method: copy
module: 12
client: 11 <speech-dispatcher>
properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "2036"
application.process.user = "nick"
application.process.host = "nick-lenovothinkserver"
application.process.binary = "sd_dummy"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "f3e1e41ff53e420d856bff4958fd5520"
application.process.session_id = "c2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
index: 4
driver: <protocol-native.c>
flags:
state: DRAINED
sink: 2 <combined>
volume: mono: 45874 / 70% / -9.29 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 0.50 ms
sample spec: s16le 1ch 44100Hz
channel map: mono
Mono
resample method: copy
module: 12
client: 12 <speech-dispatcher>
properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "2039"
application.process.user = "nick"
application.process.host = "nick-lenovothinkserver"
application.process.binary = "sd_generic"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "f3e1e41ff53e420d856bff4958fd5520"
application.process.session_id = "c2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
index: 21
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 1 <rtp>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 104.49 ms
requested latency: 90.00 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 12
client: 38 <Pithos>
properties:
media.name = "Playback Stream"
application.name = "Pithos"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
media.role = "music"
application.process.id = "3161"
application.process.user = "nick"
application.process.host = "nick-lenovothinkserver"
application.process.binary = "python3.5"
application.icon_name = "pithos"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "f3e1e41ff53e420d856bff4958fd5520"
application.process.session_id = "c2"
module-stream-restore.id = "sink-input-by-media-role:music"sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: nick 1319 F.... pulseaudio
/dev/snd/pcmC0D3p: nick 1319 F...m pulseaudioLast edited by twenty3andaspie (2016-03-26 22:52:03)
Offline
Please, can anyone help me here with configuring my pulse sinks correctly?
Offline
Your player is playing to the RTP sink, I don't think you want that. You have a combined and a RTP sink, why? go back into paprefs and disable all the checkboxes so you don't add unnecessary complexity if you aren't sure of what they are doing, then go into pavucontrol and move the sink of your player to your analog output or use
pacmd move-sink-input 21 alsa_card.pci-0000_00_03.0 #Given the index of your player is still 21, doublecheck with pacmd list-sink-inputsEdit: But something is still weird here, according to your alsa-info.sh you should have 2 cards, yet pulse only detects one. If the above instructions didn't work out can you post your /etc/pulse/default.pa and an eventual ~/.config/pulse/default.pa
Last edited by V1del (2016-03-27 10:12:04)
Offline
Update: I was able to get my sound working by following the above instructions and by uncommenting the following lines in ~/.config/pulse/default.pa:
### Make some devices default
set-default-sink output
set-default-source inputThanks for everyone who pitched in to help!
Last edited by twenty3andaspie (2016-03-29 02:20:14)
Offline
Neat don't forget to mark the thread as [SOLVED] by editing your intial post
Note that if you uncommented those lines as is they likely didn't have any effect. You should switch that with the actual name from
pacmd list-sinks, but if theres nothing explicitly wrong with that it shouldn't matter.
And it was just me who pitched in, but no problem ![]()
Offline
I actually have one more question before I close this. Audio output is not being forwarded over a NoMachine remote desktop connection. I've checked the logs and it appears to be due to
./nxserver.log:511757:2016-03-29 09:38:53 396.308 6472 NXNODE loadPaModulesForPhysicalSession: Using session ID [1001-340BA716F561E4715623F7265709E7A3], native socket [/usr/NX/var/run/nxdevice/D-1001-340BA716F561E4715623F7265709E7A3/audio/native.socket] and cli socket [/usr/NX/var/run/nxdevice/D-1001-340BA716F561E4715623F7265709E7A3/audio/cli.socket].
./nxserver.log:511758:2016-03-29 09:38:53 396.367 6472 NXNODE PA_ConnectSocketCli: Cli socket [/usr/NX/var/run/nxdevice/D-1001-340BA716F561E4715623F7265709E7A3/audio/cli.socket] does not exist. Skipping connection.Of course, this audio.cli file is not present:
➜ log ls -lh /usr/NX/var/run/nxdevice/D-1001-340BA716F561E4715623F7265709E7A3/audio
total 0Any ideas? Is there another location I could configure NoMachine to point to? For the reference, I have uploaded my full logs here.
Offline
Anyone? I do not understand why this audio.cli socket file does not get created. I have even chmod'ed the directories to 777 and it still does not create that file.
In an Ubuntu VM I tried testing with, it simply creates that file in the audio directory and connecting over NoMachine results in audio being forwarded out.
Offline