You are not logged in.

#1 2018-02-06 04:50:27

miversen33
Member
Registered: 2018-02-06
Posts: 6

Pulseaudio Error Showing "No Output or Input Devices Found"

Reference https://bbs.archlinux.org/viewtopic.php?id=154002

I am not able to get pulse working correctly on my server. Its driving me nuts. I am not sure what all is needed, but I have tried most of the things referenced in the above link. Alsamixer works, and after finding out that I wasn't part of the audio group, I corrected that as well. The odd thing is, I do have output, programs can play out my speaker just fine. I just cannot control the volume and such via pulse.

Offline

#2 2018-02-06 07:47:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

Which programs? Is pulse running? Don't add yourself to the audio group, it isn't necessary and will mask  potential issues. What's your output for

sudo fuser -v /dev/snd/*
aplay -lL
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs

during attempted playback.

Offline

#3 2018-02-08 00:52:15

miversen33
Member
Registered: 2018-02-06
Posts: 6

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

How would I go about removing myself from the audio group if it has already been done?

Secondly, via the archlinux IRC, I believe I found a potential lead as to where the problem stems from.

I access my arch box via VNC. The device is local, but everything is done via the Remote Desktop I have created. My end goal is to be able to stream music from the arch box to a bluetooth speaker in the room.

I used to run Manjaro and had no issues doing this via the VNC so I did not see a problem with it. I dont know if that helps at all.

Back to your post.

sudo fuser -v /dev/snd/*

/dev/snd/controlC0:  mike       8023 F.... pulseaudio
                     mike      19525 F.... Google Play Mus
                     mike      32078 F.... pidgin
/dev/snd/pcmC0D0p:   mike      19525 F...m Google Play Mus
                     mike      32078 F...m pidgin
/dev/snd/timer:      mike      19525 f.... Google Play Mus
                     mike      32078 f.... pidgin

aplay -lL

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, 92HD91BXX Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: 92HD91BXX Analog [92HD91BXX Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

pacmd list-cards

1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 23
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0x50810000 irq 30"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C216 Chipset Family High Definition 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:
                input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
                output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, availab
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
                output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo I
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
                output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog 
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: n
                output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analo
                off: Off (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#1: Monitor of Built-in Audio Analo
                alsa_input.pci-0000_00_1b.0.analog-stereo/#2: Built-in Audio Analog Stereo
        ports:
                analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, 
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unk
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available:
                        properties:
                                device.icon_name = "audio-headphones"
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no
                        properties:
                                device.icon_name = "video-display"

pacmnd list-sinks

2 sink(s) available.
    index: 0
	name: <rtp>
	driver: <module-null-sink.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: 
	priority: 1000
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.37 ms
	max request: 1 KiB
	max rewind: 1 KiB
	monitor source: 0
	sample spec: s16be 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 1
	configured latency: 7.26 ms; range is 0.50 .. 2000.00 ms
	module: 9
	properties:
		device.description = "RTP Multicast Sink"
		device.class = "abstract"
		device.icon_name = "audio-card"
  * index: 1
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9039
	volume: front-left: 46396 /  71% / -9.00 dB,   front-right: 46396 /  71% / -9.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 1
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_1b.0>
	module: 23
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "92HD91BXX Analog"
		alsa.id = "92HD91BXX Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x50810000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "IDT 92HD91BXX"
		alsa.components = "HDA:111d76e0,103c18ee,00100303 HDA:80862806,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>

pacmd list-sink-inputs

0 sink input(s) available.

Offline

#4 2018-02-08 08:37:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

your google play music as well as your pidgin are accessing ALSA directly instead of being routed through pulseaudio. Configure them to use pulseaudio and or if they only show you ALSA devices, make sure that they are set to play back via the 'default' as opposed to an explicitly named device.

From pulse's side your card is properly detected, your output programs are misconfigured.

Offline

#5 2018-02-08 16:00:52

miversen33
Member
Registered: 2018-02-06
Posts: 6

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

V1del wrote:

your google play music as well as your pidgin are accessing ALSA directly instead of being routed through pulseaudio. Configure them to use pulseaudio and or if they only show you ALSA devices, make sure that they are set to play back via the 'default' as opposed to an explicitly named device.

From pulse's side your card is properly detected, your output programs are misconfigured.

Sorry for being dense here but I'm not terribly sure how that would be done, or how that would resolve the larger issue of me not being able to actually use pulse.

Offline

#6 2018-02-08 17:29:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

For the "why this resolves the larger issue": https://bbs.archlinux.org/viewtopic.php … 8#p1639728

And FWIW post the output of

alsa-info.sh
systemctl --user status pulseaudio

should the alsa-info.sh not reveal your configuration, do you have any ALSA config files in /etc/asound.conf or ~/.asoundrc and as for removing yourself from a group https://wiki.archlinux.org/index.php/Us … management ...

How did you install Arch?

Last edited by V1del (2018-02-08 17:38:26)

Offline

#7 2018-02-08 20:39:08

miversen33
Member
Registered: 2018-02-06
Posts: 6

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

V1del wrote:

For the "why this resolves the larger issue": https://bbs.archlinux.org/viewtopic.php … 8#p1639728

And FWIW post the output of

alsa-info.sh
systemctl --user status pulseaudio

should the alsa-info.sh not reveal your configuration, do you have any ALSA config files in /etc/asound.conf or ~/.asoundrc and as for removing yourself from a group https://wiki.archlinux.org/index.php/Us … management ...

How did you install Arch?


alsa-info.sh provided me with this

http://www.alsa-project.org/db/?f=d63d9 … 5ba16cbd4a

systemctl --user status pulseaudio gives me

● pulseaudio.service - Sound Service
   Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

cat /etc/asound.conf gives me the following file

cat /etc/asound.conf 
# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

I installed arch via the iso and following the wiki https://wiki.archlinux.org/index.php/installation_guide

And finally, I have removed myself from the audio group (my apologies, this was one of the steps I found that someone in the thread I mentioned earlier followed to remedy the issue. I was hoping it was something simple for me lol).

Thank you for you help and time on this! Hopefully I can get this thing resolved smile

EDIT: I Just read through your posted thread on why Pulse wont work if something else is running. That is great insight! Thank you so much for that!

Last edited by miversen33 (2018-02-08 20:43:46)

Offline

#8 2018-02-08 21:23:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

If pulse is not started by it's service how do you start it? after you've started everything else? Anyway you should be able to use

systemctl --user enable pulseaudio --now

to register it as part of your user session setup. Where are you starting pidgin and google music respectively? from autostart files for your environment? How do you log in?

Offline

#9 2018-02-09 03:23:44

miversen33
Member
Registered: 2018-02-06
Posts: 6

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

V1del wrote:

If pulse is not started by it's service how do you start it? after you've started everything else? Anyway you should be able to use

systemctl --user enable pulseaudio --now

to register it as part of your user session setup. Where are you starting pidgin and google music respectively? from autostart files for your environment? How do you log in?

Right I noticed that it wasn't running and ran

systemctl --user enable pulseaudio 
systemctl --user start pulseaudio

both ran without issue. I have not rebooted yet (I have been at work, and after sending this I will reboot the machine and see if it has any effect).

I login via a VNC that is started on boot via a systemd service I have created. Below is that file

[Unit]  
Description=Plasma VNC Server
After=network.target

[Service]
#Type=forked
PIDFile=/home/mike/.vnc/Iversen-Main-Server:1.pid
User=mike
Group=mike
ExecStart=/usr/bin/vncserver -geometry 1920x1280 -geometry 1280x1024 -geometry 1360x768
StandardOutput=null

[Install]
WantedBy=multi-user.target

I have never started pulseaudio as I was under the impression that it auto started on its own. Though obviously that has not been the case. I will edit this after restarting the machine and we will see if we have success!

Pidgin and Google Play Music are started in the xvncserver script that is called by the vncserver program. Below is that (just for giggles I guess)?

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

startkde &
Android-Studio &
vivaldi-snapshot &

EDIT:
Still no dice sadly. Using Google Play Music, it will play directly through the computer, but pulseaudio (the applet for KDE) will not allow display any output devices.

Last edited by miversen33 (2018-02-09 04:10:50)

Offline

#10 2018-02-09 10:03:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

Not entirely sure on how VNC setups handle their logins, but if you unset the session bus it will mean that the pulseaudio that is being started will be unable  to advertise itself over DBUS and not be found by applications anymore.You might want to look into the networking set up part https://wiki.archlinux.org/index.php/Pu … rked_audio it looks like you tried to do something with that already as you have an RTP sink.

If you still have that manjaro install somewhere, you might want to compare pulse configurations, if you need networked audio you will also have to make sure to have e.g. pulseaudio-zeroconf installed.

You might also want to post that pulse configuration, since it seems you already adjusted something.

Another thing that might help, move the startup of vivaldy from that startup file, to the KDE autostart directives. There's a good chance that pulse is ultimately started by the KDE setup, but your vivaldy process launches before KDE has finished initializing and hence before pulse is running. (Given that the fact you are using & to start these processes which will essentially lead to the situation that the separate programs are started in parallel as opposed to in sequence.)

Alternatively make sure that pulse is started before anything else by adding it before the kdestart call, I'd guess.

Last edited by V1del (2018-02-09 11:51:30)

Offline

#11 2018-02-10 01:59:05

miversen33
Member
Registered: 2018-02-06
Posts: 6

Re: Pulseaudio Error Showing "No Output or Input Devices Found"

V1del wrote:

Not entirely sure on how VNC setups handle their logins, but if you unset the session bus it will mean that the pulseaudio that is being started will be unable  to advertise itself over DBUS and not be found by applications anymore.You might want to look into the networking set up part https://wiki.archlinux.org/index.php/Pu … rked_audio it looks like you tried to do something with that already as you have an RTP sink.

If you still have that manjaro install somewhere, you might want to compare pulse configurations, if you need networked audio you will also have to make sure to have e.g. pulseaudio-zeroconf installed.

You might also want to post that pulse configuration, since it seems you already adjusted something.

Another thing that might help, move the startup of vivaldy from that startup file, to the KDE autostart directives. There's a good chance that pulse is ultimately started by the KDE setup, but your vivaldy process launches before KDE has finished initializing and hence before pulse is running. (Given that the fact you are using & to start these processes which will essentially lead to the situation that the separate programs are started in parallel as opposed to in sequence.)

Alternatively make sure that pulse is started before anything else by adding it before the kdestart call, I'd guess.


The link seems more about if I want to use my server speakers from a remote network device. The issue here is that I am logged into the device itself and trying to play sound on the device through the device. So not quite networked audio.

I did remove vivaldi from the xstartup. I did not know that KDE had its own autostart thing. That is super helpful smile

Just because I was curious, I did disable the vnc on reboot and pulse starts up with the following message.

Feb 09 19:43:07 Iversen-Main-Server systemd[2558]: Starting Sound Service...
Feb 09 19:43:14 Iversen-Main-Server systemd[2558]: Started Sound Service.
Feb 09 19:43:14 Iversen-Main-Server pulseaudio[2566]: E: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono:org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files

Any idea what that is? After starting the vnc manually, still no access to pulse (even after commenting out the DBUS line)

Offline

Board footer

Powered by FluxBB