Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[SOLVED] Sound Issue (pulseaudio: command not found)

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
rphii
n00b
n00b
Posts: 22
Joined: Sat Jan 08, 2022 10:07 am

[SOLVED] Sound Issue (pulseaudio: command not found)

  • Quote

Post by rphii » Thu Jun 08, 2023 12:42 am

Hi, hopefully you're having a better time than my audio right now :D


I already had similar problems a while back (viewtopic-p-8687951.html) and never managed to fix them, but since then I completely reinstalled the whole system + I have a different behavior altogether.

I have a slight issue in understanding how to setup audio (again), I have more questions than anything else, but I don't know where else to ask so here I am, hoping that this last resort enlightens me. Sadly I'm not that of an experienced linux user yet to see through this... Anways, I tried both alsa and pulseaudio (and pavucontrol).

configuration

Code: Select all

Kernel: 6.3.2-gentoo
Shell: bash 5.2.15
DE: Hyprland

- asound state https://pastebin.com/Bs1UK3DH
- make.conf https://pastebin.com/4xztpcsa
- pa-info https://pastebin.com/47WKywHH
- aplay -L https://pastebin.com/Hy4V2LJx
- speaker-test https://pastebin.com/ZUAYRhE9

Code: Select all

rphii@gent ~ $ groups rphii
wheel audio video users seat rphii

Code: Select all

rphii@gent ~ $ lspci | grep -i audio
1c:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
1e:00.0 Audio device: Creative Labs Device 0010 (rev 01)
20:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller

Code: Select all

rphii@gent ~ $ grep -i codec /proc/asound/*/codec*
/proc/asound/Creative/codec#1:Codec: Creative Sound Blaster AE-7
/proc/asound/Generic/codec#0:Codec: Realtek ALC1220
/proc/asound/NVidia/codec#0:Codec: Nvidia GPU 93 HDMI/DP
/proc/asound/card0/codec#0:Codec: Nvidia GPU 93 HDMI/DP
/proc/asound/card1/codec#1:Codec: Creative Sound Blaster AE-7
/proc/asound/card2/codec#0:Codec: Realtek ALC1220

Code: Select all

rphii@gent ~ $ pa-info > pa_info
which: no pulseaudio in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/16/bin)
/usr/bin/pa-info: line 57: pulseaudio: command not found
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
cat: /etc/pulse/daemon.conf: No such file or directory
cat: /etc/pulse/system.pa: No such file or directory
/usr/bin/pa-info: line 57: lsof: command not found
/usr/sbin/alsa-info.sh: line 464: /proc/asound/modules: No such file or directory
cat: /tmp/alsa-info.sVayOgBST1/alsamodules.tmp: No such file or directory
cat: /proc/asound/modules: No such file or directory
/usr/sbin/alsa-info.sh: line 659: tree: command not found
/usr/sbin/alsa-info.sh: line 659: tree: command not found
/usr/sbin/alsa-info.sh: line 659: tree: command not found
cat: /sys/class/sound/hwC0D0/user_pin_configs: No such file or directory
cat: /sys/class/sound/hwC0D0/init_verbs: No such file or directory
cat: /sys/class/sound/hwC0D0/hints: No such file or directory
cat: /sys/class/sound/hwC1D1/user_pin_configs: No such file or directory
cat: /sys/class/sound/hwC1D1/init_verbs: No such file or directory
cat: /sys/class/sound/hwC1D1/hints: No such file or directory
cat: /sys/class/sound/hwC2D0/user_pin_configs: No such file or directory
cat: /sys/class/sound/hwC2D0/init_verbs: No such file or directory
cat: /sys/class/sound/hwC2D0/hints: No such file or directory

Code: Select all

rphii@gent ~ $ cat /etc/pulse/default.pa
load-module module-oss

Code: Select all

rphii@gent ~ $ cat .asoundrc 
#defaults.pcm.!card Creative # which to use - number or string ?
defaults.pcm.!card 1
defaults.pcm.!device 0
#defaults.ctl.!card Creative
defaults.ctl.!card 1
#defaults.pcm.dmix.rate 96000 # and this ?

questions regarding alsa

Code: Select all

rphii@gent ~ $ alsamixer
cannot open mixer: Host is down
However, if I run:

Code: Select all

alsamixer -c 1
1) It properly opens up. Why?
2) see the last code segment in the config section above... do I use numbers or strings? do I use the dmix.rate or not?

questions regarding pulseaudio

3) I'd like to start pulseaudio, but it just won't do it's thing. What the hell is up with that? (I really wonder how I messed this up)

Code: Select all

rphii@gent ~ $ sudo emerge pulseaudio

 * IMPORTANT: 17 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

[ebuild   R   ] media-sound/pulseaudio-16.1  USE="glib -bluetooth -daemon -jack -ofono-headset" ABI_X86="(64) -32 (-x32)"

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-sound/pulseaudio-16.1::gentoo
>>> Installing (1 of 1) media-sound/pulseaudio-16.1::gentoo
>>> Completed (1 of 1) media-sound/pulseaudio-16.1::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 4.43, 3.61, 1.69

 * IMPORTANT: 17 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

rphii@gent ~ $ pulseaudio
bash: pulseaudio: command not found

questions regarding pavucontrol

Code: Select all

rphii@gent ~ $ pavucontrol
=> window opens, I see a window telling me:
"Connection to PulseAudio failed. [...]"

4) probably because I can't run pulseaudio in the first place...?


Regards and thanks for making it to this post, seriously.
Last edited by rphii on Fri Jun 09, 2023 8:43 am, edited 1 time in total.
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Thu Jun 08, 2023 3:23 am

media-sound/pulseaudio-16.1 USE="glib -bluetooth -daemon -jack -ofono-headset"
"-daemon" says not to install PulseAudio as a sound server, which is what the `pulseaudio` executable is. Instead, what gets installed are Pulse libraries needed by Pulse-based applications; these libraries get used for Pulse compatibility when running PipeWire as a sound server. And yes, "pavucontrol" requires a running sound server.

So, you need to remove the "-daemon" USE flag from your configuration.
Top
stefan11111
Veteran
Veteran
Posts: 1025
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Thu Jun 08, 2023 10:33 am

flexibeast wrote: "-daemon" says not to install PulseAudio as a sound server, which is what the `pulseaudio` executable is. Instead, what gets installed are Pulse libraries needed by Pulse-based applications; these libraries get used for Pulse compatibility when running PipeWire as a sound server. And yes, "pavucontrol" requires a running sound server.
Isn't that what apulse is?
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Thu Jun 08, 2023 10:59 am

stefan11111 wrote:
flexibeast wrote:And yes, "pavucontrol" requires a running sound server.
Isn't that what apulse is?
Not to my understanding (though i might well be wrong); it's a wrapper script, as described by its man page:
apulse wasn't designed to be a drop-in replacement of PulseAudio. It's pointless, since that will be just reimplementation of original PulseAudio, with the same client-daemon architecture, required by the complete feature set. Instead, only parts of the API that are crucial to specific applications are implemented. That's why there is a loader script, named apulse. It updates value of LD_LIBRARY_PATH environment variable to point also to the directory where apulse's libraries are installed, making them available to the application.
That said, i have no idea what would happen if it was applied to pavucontrol (i.e. by running `apulse pavucontrol`).
Top
rphii
n00b
n00b
Posts: 22
Joined: Sat Jan 08, 2022 10:07 am

  • Quote

Post by rphii » Thu Jun 08, 2023 11:26 am

flexibeast wrote:
media-sound/pulseaudio-16.1 USE="glib -bluetooth -daemon -jack -ofono-headset"
"-daemon" says not to install PulseAudio as a sound server, which is what the `pulseaudio` executable is. Instead, what gets installed are Pulse libraries needed by Pulse-based applications; these libraries get used for Pulse compatibility when running PipeWire as a sound server. And yes, "pavucontrol" requires a running sound server.

So, you need to remove the "-daemon" USE flag from your configuration.
I managed to get pulseaudio (daemon) running. When I want to test it, with e.g. vlc, it says

Code: Select all

vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Summary of what I did and more info: https://pastebin.com/tv1hp9ry

I don't know why alsamixer and aplay -L stopped doing anything anymore, forcing me to stop them with ctrl-c...


EDIT THE DAY AFTER

Somehow all works now. alsamixer, aplay -L and pavucontrol (took a while to actually start running but it did work).
Top
Post Reply

5 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic