________________ > pulseaudio_ps_do ubuntu 7936 0.0 0.4 1934096 17708 ? S which pulseaudio /usr/bin/pulseaudio ________________ > pidof pulseaudio 7936 ________________ > pulseaudio --version pulseaudio 14.2 ________________ > pactl info Connection failure: Connection refused pa_context_connect() failed: Connection refused ________________ > pactl list Connection failure: Connection refused pa_context_connect() failed: Connection refused ________________ > cat /etc/pulse/daemon.conf # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, see . ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for ## more information. Default values are commented out. Use either ; or # for ## commenting. ; daemonize = no ; fail = yes ; allow-module-loading = yes ; allow-exit = yes ; use-pid-file = yes ; system-instance = no ; local-server-type = user ; enable-shm = yes ; enable-memfd = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; lock-memory = no ; cpu-limit = no ; high-priority = yes ; nice-level = -11 ; realtime-scheduling = yes ; realtime-priority = 5 ; exit-idle-time = 20 ; scache-idle-time = 20 ; dl-search-path = (depends on architecture) ; load-default-script-file = yes ; default-script-file = /etc/pulse/default.pa ; log-target = auto ; log-level = notice ; log-meta = no ; log-time = no ; log-backtrace = 0 ; resample-method = speex-float-1 ; avoid-resampling = false ; enable-remixing = yes ; remixing-use-all-sink-channels = yes ; remixing-produce-lfe = no ; remixing-consume-lfe = no ; lfe-crossover-freq = 0 ; flat-volumes = no ; rescue-streams = yes ; rlimit-fsize = -1 ; rlimit-data = -1 ; rlimit-stack = -1 ; rlimit-core = -1 ; rlimit-as = -1 ; rlimit-rss = -1 ; rlimit-nproc = -1 ; rlimit-nofile = 256 ; rlimit-memlock = -1 ; rlimit-locks = -1 ; rlimit-sigpending = -1 ; rlimit-msgqueue = -1 ; rlimit-nice = 31 ; rlimit-rtprio = 9 ; rlimit-rttime = 200000 ; default-sample-format = s16le ; default-sample-rate = 44100 ; alternate-sample-rate = 48000 ; default-sample-channels = 2 ; default-channel-map = front-left,front-right ; default-fragments = 4 ; default-fragment-size-msec = 25 ; enable-deferred-volume = yes deferred-volume-safety-margin-usec = 1 ; deferred-volume-extra-delay-usec = 0 ________________ > cat /etc/pulse/client.conf # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, see . ## Configuration file for PulseAudio clients. See pulse-client.conf(5) for ## more information. Default values are commented out. Use either ; or # for ## commenting. ; default-sink = ; default-source = ; default-server = ; default-dbus-server = ; autospawn = yes ; daemon-binary = /usr/bin/pulseaudio ; extra-arguments = --log-target=syslog ; cookie-file = ; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; auto-connect-localhost = no ; auto-connect-display = no ________________ > cat /etc/pulse/default.pa #!/usr/bin/pulseaudio -nF # # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, see . # This startup script is used only if PulseAudio is started per-user # (i.e. not in system mode) .fail ### Automatically restore the volume of streams and devices load-module module-device-restore load-module module-stream-restore load-module module-card-restore ### Automatically augment property information from .desktop files ### stored in /usr/share/application load-module module-augment-properties ### Should be after module-*-restore but before module-*-detect load-module module-switch-on-port-available ### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794) .ifexists module-switch-on-connect.so load-module module-switch-on-connect .endif ### Load audio drivers statically ### (it's probably better to not load these drivers manually, but instead ### use module-udev-detect -- see below -- for doing this automatically) #load-module module-alsa-sink #load-module module-alsa-source device=hw:1,0 #load-module module-oss device="/dev/dsp" sink_name=output source_name=input #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input #load-module module-null-sink #load-module module-pipe-sink ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect tsched=0 .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif ### Automatically connect sink and source if JACK server is present .ifexists module-jackdbus-detect.so .nofail load-module module-jackdbus-detect channels=2 .fail .endif ### Automatically load driver modules for Bluetooth hardware .ifexists module-bluetooth-policy.so load-module module-bluetooth-policy .endif .ifexists module-bluetooth-discover.so load-module module-bluetooth-discover .endif ### Load several protocols .ifexists module-esound-protocol-unix.so load-module module-esound-protocol-unix .endif load-module module-native-protocol-unix ### Network access (may be configured with paprefs, so leave this commented ### here if you plan to use paprefs) #load-module module-esound-protocol-tcp #load-module module-native-protocol-tcp #load-module module-zeroconf-publish ### Load the RTP receiver module (also configured via paprefs, see above) #load-module module-rtp-recv ### Load the RTP sender module (also configured via paprefs, see above) #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'" #load-module module-rtp-send source=rtp.monitor ### Load additional modules from GSettings. This can be configured with the paprefs tool. ### Please keep in mind that the modules configured by paprefs might conflict with manually ### loaded modules. .ifexists module-gsettings.so .nofail load-module module-gsettings .fail .endif ### Automatically restore the default sink/source when changed by the user ### during runtime ### NOTE: This should be loaded as early as possible so that subsequent modules ### that look up the default sink/source get the right value load-module module-default-device-restore ### Make sure we always have a sink around, even if it is a null sink. load-module module-always-sink ### Honour intended role device property load-module module-intended-roles ### Automatically suspend sinks/sources that become idle for too long load-module module-suspend-on-idle ### If autoexit on idle is enabled we want to make sure we only quit ### when no local session needs us anymore. .ifexists module-console-kit.so load-module module-console-kit .endif .ifexists module-systemd-login.so load-module module-systemd-login .endif ### Enable positioned event sounds load-module module-position-event-sounds ### Cork music/video streams when a phone stream is active load-module module-role-cork ### Block audio recording for snap confined packages unless they have ### the "pulseaudio" or "audio-record" interfaces plugged. .ifexists module-snap-policy.so load-module module-snap-policy .endif ### Modules to allow autoloading of filters (such as echo cancellation) ### on demand. module-filter-heuristics tries to determine what filters ### make sense, and module-filter-apply does the heavy-lifting of ### loading modules and rerouting streams. load-module module-filter-heuristics load-module module-filter-apply ### Make some devices default #set-default-sink output #set-default-source input ________________ > cat /etc/pulse/system.pa #!/usr/bin/pulseaudio -nF # # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, see . # This startup script is used only if PulseAudio is started in system # mode. ### Automatically restore the volume of streams and devices load-module module-device-restore load-module module-stream-restore load-module module-card-restore ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev/hal support) load-module module-detect .endif ### Load several protocols .ifexists module-esound-protocol-unix.so load-module module-esound-protocol-unix .endif load-module module-native-protocol-unix ### Automatically restore the default sink/source when changed by the user ### during runtime ### NOTE: This should be loaded as early as possible so that subsequent modules ### that look up the default sink/source get the right value load-module module-default-device-restore ### Make sure we always have a sink around, even if it is a null sink. load-module module-always-sink ### Automatically suspend sinks/sources that become idle for too long load-module module-suspend-on-idle ### Enable positioned event sounds load-module module-position-event-sounds ________________ > ls -alt /dev/snd/* crw-rw----+ 1 root audio 116, 5 Apr 7 18:57 /dev/snd/controlC1 crw-rw----+ 1 root audio 116, 3 Apr 7 18:57 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 2 Apr 7 18:57 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 4 Apr 7 18:57 /dev/snd/pcmC1D0p crw-rw----+ 1 root audio 116, 1 Apr 7 18:57 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Apr 7 18:57 /dev/snd/timer /dev/snd/by-path: total 0 drwxr-xr-x 2 root root 60 Apr 7 18:57 . lrwxrwxrwx 1 root root 12 Apr 7 18:57 platform-bcm2835_audio -> ../controlC1 drwxr-xr-x 3 root root 180 Apr 7 18:57 .. ________________ > lsof /dev/snd/* lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME pulseaudi 7936 ubuntu 27u CHR 116,5 0t0 1935 /dev/snd/controlC1 ________________ > jacks_do card=0 card=1 ________________ > aplay -L null Discard all samples (playback) or generate zero samples (capture) samplerate Rate Converter Plugin Using Samplerate Library speexrate Rate Converter Plugin Using Speex Resampler jack JACK Audio Connection Kit oss Open Sound System pulse PulseAudio Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization hw:CARD=b1,DEV=0 bcm2835 HDMI 1, bcm2835 HDMI 1 Direct hardware device without any conversions plughw:CARD=b1,DEV=0 bcm2835 HDMI 1, bcm2835 HDMI 1 Hardware device with all software conversions default:CARD=b1 bcm2835 HDMI 1, bcm2835 HDMI 1 Default Audio Device sysdefault:CARD=b1 bcm2835 HDMI 1, bcm2835 HDMI 1 Default Audio Device dmix:CARD=b1,DEV=0 bcm2835 HDMI 1, bcm2835 HDMI 1 Direct sample mixing device usbstream:CARD=b1 bcm2835 HDMI 1 USB Stream Output hw:CARD=Headphones,DEV=0 bcm2835 Headphones, bcm2835 Headphones Direct hardware device without any conversions plughw:CARD=Headphones,DEV=0 bcm2835 Headphones, bcm2835 Headphones Hardware device with all software conversions default:CARD=Headphones bcm2835 Headphones, bcm2835 Headphones Default Audio Device sysdefault:CARD=Headphones bcm2835 Headphones, bcm2835 Headphones Default Audio Device dmix:CARD=Headphones,DEV=0 bcm2835 Headphones, bcm2835 Headphones Direct sample mixing device usbstream:CARD=Headphones bcm2835 Headphones USB Stream Output ________________ > arecord -L null Discard all samples (playback) or generate zero samples (capture) samplerate Rate Converter Plugin Using Samplerate Library speexrate Rate Converter Plugin Using Speex Resampler jack JACK Audio Connection Kit oss Open Sound System pulse PulseAudio Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization usbstream:CARD=b1 bcm2835 HDMI 1 USB Stream Output usbstream:CARD=Headphones bcm2835 Headphones USB Stream Output ________________ > alsa_info_do cat: /tmp/alsa-info.YzgHRYiT6r/acpidevicestatus.tmp: No such file or directory upload=true&script=true&cardinfo= !!################################ !!ALSA Information Script v 0.4.65 !!################################ !!Script ran on: Wed May 5 15:20:02 UTC 2021 !!Linux Distribution !!------------------ Ubuntu 21.04 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 21.04" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 21.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=hirsute Ubuntu 20.04 LTS (Focal Fossa) !!DMI Information !!--------------- Manufacturer: Product Name: Product Version: Firmware Version: System SKU: Board Vendor: Board Name: !!ACPI Device Status Information !!--------------- !!Kernel Information !!------------------ Kernel release: 5.11.0-1007-raspi Operating System: GNU/Linux Architecture: aarch64 Processor: aarch64 SMP Enabled: Yes !!ALSA Version !!------------ Driver version: k5.11.0-1007-raspi Library version: 1.2.4 Utilities version: 1.2.4 !!Loaded ALSA modules !!------------------- snd_bcm2835 snd_bcm2835 !!Sound Servers on this system !!---------------------------- Pulseaudio: Installed - Yes (/usr/bin/pulseaudio) Running - Yes !!Soundcards recognised by ALSA !!----------------------------- 0 [b1 ]: bcm2835_hdmi - bcm2835 HDMI 1 bcm2835 HDMI 1 1 [Headphones ]: bcm2835_headpho - bcm2835 Headphones bcm2835 Headphones !!PCI Soundcards installed in the system !!-------------------------------------- !!Modprobe options (Sound related) !!-------------------------------- snd_pcsp: index=-2 snd_usb_audio: index=-2 snd_atiixp_modem: index=-2 snd_intel8x0m: index=-2 snd_via82xx_modem: index=-2 snd_atiixp_modem: index=-2 snd_intel8x0m: index=-2 snd_via82xx_modem: index=-2 snd_usb_audio: index=-2 snd_usb_caiaq: index=-2 snd_usb_ua101: index=-2 snd_usb_us122l: index=-2 snd_usb_usx2y: index=-2 snd_cmipci: mpu_port=0x330 fm_port=0x388 snd_pcsp: index=-2 snd_usb_audio: index=-2 snd_bcm2835: enable_compat_alsa=0 snd_bcm2835: enable_hdmi=1 !!Loaded sound module options !!--------------------------- !!Module: snd_bcm2835 enable_compat_alsa : N enable_hdmi : Y enable_headphones : Y force_bulk : N !!Module: snd_bcm2835 enable_compat_alsa : N enable_hdmi : Y enable_headphones : Y force_bulk : N !!ALSA Device nodes !!----------------- crw-rw----+ 1 root audio 116, 3 Apr 7 18:57 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 5 Apr 7 18:57 /dev/snd/controlC1 crw-rw----+ 1 root audio 116, 2 Apr 7 18:57 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 4 Apr 7 18:57 /dev/snd/pcmC1D0p crw-rw----+ 1 root audio 116, 1 Apr 7 18:57 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Apr 7 18:57 /dev/snd/timer /dev/snd/by-path: total 0 drwxr-xr-x 2 root root 60 Apr 7 18:57 . drwxr-xr-x 3 root root 180 Apr 7 18:57 .. lrwxrwxrwx 1 root root 12 Apr 7 18:57 platform-bcm2835_audio -> ../controlC1 !!Aplay/Arecord output !!-------------------- APLAY **** List of PLAYBACK Hardware Devices **** card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1] Subdevices: 4/4 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones] Subdevices: 4/4 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 ARECORD **** List of CAPTURE Hardware Devices **** !!Amixer output !!------------- !!-------Mixer controls for card b1 Card hw:0 'b1'/'bcm2835 HDMI 1' Mixer name : 'Broadcom Mixer' Components : '' Controls : 2 Simple ctrls : 1 Simple mixer control 'HDMI',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback 0 [96%] [0.00dB] [on] !!-------Mixer controls for card Headphones Card hw:1 'Headphones'/'bcm2835 Headphones' Mixer name : 'Broadcom Mixer' Components : '' Controls : 2 Simple ctrls : 1 Simple mixer control 'Headphone',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback -1543 [82%] [-15.43dB] [off] !!Alsactl output !!-------------- --startcollapse-- state.b1 { control.1 { iface MIXER name 'HDMI Playback Volume' value 0 comment { access 'read write' type INTEGER count 1 range '-10239 - 400' dbmin -9999999 dbmax 400 dbvalue.0 0 } } control.2 { iface MIXER name 'HDMI Playback Switch' value true comment { access 'read write' type BOOLEAN count 1 } } } state.Headphones { control.1 { iface MIXER name 'Headphone Playback Volume' value -1543 comment { access 'read write' type INTEGER count 1 range '-10239 - 400' dbmin -9999999 dbmax 400 dbvalue.0 -1543 } } control.2 { iface MIXER name 'Headphone Playback Switch' value false comment { access 'read write' type BOOLEAN count 1 } } } --endcollapse-- !!All Loaded Modules !!------------------ ac97_bus aes_arm64 af_alg algif_hash algif_skcipher async_memcpy async_pq async_raid6_recov async_tx async_xor autofs4 bcm2835_codec bcm2835_gpiomem bcm2835_isp bcm2835_mmal_vchiq bcm2835_v4l2 blake2b_generic bluetooth bnep brcmfmac brcmutil btbcm btintel btqca btrfs btrtl btsdio cec cfg80211 cmac crct10dif_ce dm_multipath drm drm_kms_helper ecc ecdh_generic fb_sys_fops gpu_sched hci_uart hid_generic hid_logitech_dj hid_logitech_hidpp input_leds ip_tables joydev libcrc32c linear lp mc multipath nvmem_rmem parport phy_generic ppdev raid0 raid1 raid10 raid456 raid6_pq raspberrypi_hwmon rfcomm rpivid_mem sch_fq_codel scsi_dh_alua scsi_dh_emc scsi_dh_rdac snd snd_bcm2835 snd_compress snd_mixer_oss snd_pcm snd_pcm_dmaengine snd_pcm_oss snd_rawmidi snd_seq snd_seq_device snd_seq_dummy snd_seq_midi snd_seq_midi_event snd_seq_oss snd_soc_core snd_timer syscopyarea sysfillrect sysimgblt uio uio_pdrv_genirq usbhid v3d v4l2_mem2mem vc4 vc_sm_cma videobuf2_common videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_vmalloc videodev x_tables xhci_pci xhci_pci_renesas xor xor_neon !!ALSA/HDA dmesg !!-------------- [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 996912 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:3840x2160M@30,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 smsc95xx.macaddr=DC:A6:32:0C:5B:7D vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc quiet splash [ 0.000000] Kernel parameter elevator= does not have any effect anymore. -- [ 1.906181] mmcblk0: p1 p2 [ 2.544684] snd_pcm_dmaengine: Unknown symbol snd_pcm_format_physical_width (err -2) [ 2.544717] snd_pcm_dmaengine: Unknown symbol snd_pcm_hw_constraint_integer (err -2) [ 2.544724] snd_pcm_dmaengine: Unknown symbol snd_pcm_period_elapsed (err -2) [ 2.571108] usb_phy_generic phy: supply vcc not found, using dummy regulator -- [ 11.504713] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 11.581315] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 11.602822] bcm2835_audio bcm2835_audio: card created with 4 channels !!Packages installed !!-------------------- ii alsa-topology-conf 1.2.4-1 all ALSA topology configuration files ii alsa-ucm-conf 1.2.4-2ubuntu1 all ALSA Use Case Manager configuration files ii alsa-utils 1.2.4-1ubuntu3 arm64 Utilities for configuring and using ALSA