This morning I have spent 5 hours trying to setup pulseaudio without
any success.
mplayer works using:
/usr/bin/mplayer -alang en -fs -ao alsa:device=plughw=1.3 ...
I run chrome as root, and here is my invocation for fluxbox:
On 15.01.2025 17:08 Uhr root wrote:
This morning I have spent 5 hours trying to setup pulseaudio without
any success.
IIRC pulseaudio runs under the user itself, not as a system service. pulseaudio --check should return $?=0.
Check pavucontrol. It must show outputs etc. and it must show the applications playing sound.
mplayer works using:
/usr/bin/mplayer -alang en -fs -ao alsa:device=plughw=1.3 ...
I run chrome as root, and here is my invocation for fluxbox:
Why on hell are you doing this?
Regardless of whether I run as root, or get sound on chrome, rc.alsa
should install something that can be seen by ps aux.
It does not.
On Wed, 15 Jan 2025 20:21:16 +0000, root wrote:
Regardless of whether I run as root, or get sound on chrome, rc.alsa
should install something that can be seen by ps aux.
It does not.
rc.alsa simply loads some kernel modules and calls some tools which using ioctls makes some settings like mixer levels. Alsa is basically a set of drivers for your sound hardware, alsa in itself does not provide any kind
of daemon and no running daemon is needed to use your sound hardware. However, without a daemon mixing sound from different applications, you might have sound devices like /dev/audio which only is usable by one application at a time.
I must admit that I am not very familiar with the sound mechanisms of pulsaudio. Did you try the advice from Marco to check the return value
from "pulseaudio --check"?
Chrome is a third party software in Slackware, not included in stock Slackware. Do you get sound from any stock browser like Firefox,
Konqueror or Seamonkey?
I agree with Marco that running a web browser as the root user is a
recipe for disaster. Any security hole in the browser will give a
malicous web site complete access to your entire system.
regards Henrik
As far as pulseaudio, I can get sound on the machine I am writing
now. I only ventured into pulseaudio in hopes that it might
solve the sound problem on the other machine. After 5 hours
I know I never want anything to do with pulseaudio, or as
I believe its relative systemd.
On 16.01.2025 13:45 Uhr root wrote:
As far as pulseaudio, I can get sound on the machine I am writing
now. I only ventured into pulseaudio in hopes that it might
solve the sound problem on the other machine. After 5 hours
I know I never want anything to do with pulseaudio, or as
I believe its relative systemd.
Alsa has several restrictions. IIRC only one sound output to one
device, so they can block each other. I use Pulseaudio and it works
fine.
Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
On 16.01.2025 13:45 Uhr root wrote:
As far as pulseaudio, I can get sound on the machine I am writing now.
I only ventured into pulseaudio in hopes that it might solve the sound
problem on the other machine. After 5 hours I know I never want
anything to do with pulseaudio, or as I believe its relative systemd.
Alsa has several restrictions. IIRC only one sound output to one
device, so they can block each other. I use Pulseaudio and it works
fine.
ALSA has no such restriction.
Some hardware has that restriction, in which case unless one configures
Alsa to do mixing in the driver, multiple simultaneous outputs will
block each other.
But on hardware that provides a hardware mixer, ALSA will not block simultaneous outputs, they just get mixed together.
As far as pulseaudio, I can get sound on the machine I am writing
now. I only ventured into pulseaudio in hopes that it might
solve the sound problem on the other machine. After 5 hours
I know I never want anything to do with pulseaudio, or as
I believe its relative systemd.
Alsa has several restrictions. IIRC only one sound output to one
device, so they can block each other. I use Pulseaudio and it works
fine.
ALSA has no such restriction.
Some hardware has that restriction, in which case unless one configures
Alsa to do mixing in the driver, multiple simultaneous outputs will
block each other.
But on hardware that provides a hardware mixer, ALSA will not block simultaneous outputs, they just get mixed together.
In all likelihood he just has to revert the changes to asound.conf and
then set the default output device in pavucontrol.. and remove the command line parameters from mpv, chrome, et al.
Ever since I switched from 14.2 to 15.0 I have not had sound
under the chrome browser.
This morning I have spent 5 hours trying to setup pulseaudio without
any success.
mplayer works using:
/usr/bin/mplayer -alang en -fs -ao alsa:device=plughw=1.3 ...
mpv works without specifying any audio
Going back to alsa, the Gemini AI tells me to invoke chrome as:
google-chrome --alsa-output-device=plughw:1,3 ....
I run chrome as root, and here is my invocation for fluxbox:
exec /usr/bin/google-chrome-stable --alsa-output-device=plughw:1,3 --window-size=1875,1050+0+0 --window-position=0,25 >/dev/null &
I have created the file /etc/asound.conf:
pcm.!default {
type plug
slave.pcm "hw:1,3"
}
ctl.!default {
type hw
card 1
}
according to Gemini.
I look at alsamixer, use F6 to set the NVIDIA card and
it is there and unmuted.
I then do:
alsactl store
When I try to start rc.alsa I get:
Loading ALSA mixer settings: /usr/sbin/alsactl restore
alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HDA Intel PCH at 0xf7720000 irq 46)
alsa-lib main.c:1405:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HDA NVidia at 0xf7080000 irq 17)
alsa-lib main.c:1405:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -6
First off, the HDS Intel stuff is for the onboard hdmi, not the NVidia.
What is happening?
Again, thanks for any help.
Alexander Grotewohl <alexm0n@gmail.com> wrote:
In all likelihood he just has to revert the changes to asound.conf and
then set the default output device in pavucontrol.. and remove the
command line parameters from mpv, chrome, et al.
Thanks for responding. I have tried all the things you have mentioned. asound.conf has no effect. I have set the default device using pactl
instead of pavucontrol, and also set it in default.pa Again no effect.
mpv plays videos without any command line parameter defining audio.
I would like to get the thing to work, but I have set up a KVM switch
and I can play through a PI4b running chrome and get sound.
root <NoEMail@home.org> wrote:
As far as pulseaudio, I can get sound on the machine I am writing
now. I only ventured into pulseaudio in hopes that it might
solve the sound problem on the other machine. After 5 hours
I know I never want anything to do with pulseaudio, or as
I believe its relative systemd.
In spite of the above, I went back and tried pulseadio again.
Briefly, I did:
pactl list short
and found two sinks.
I tried each one and neither gave me sound.
I tried other things suggested by Perplexity, but still
nothing works.
First just kill off everything in
/home/you/.config/pulse
Now run pulseaudio -k to restart it. Now everything should be baseline for the next bits..
In pavucontrol, on the Output Devices tab, is your device show there? Is
the check mark to the right of it selected?
When you attempt to play audio with something like chrome, (or whatever isn't working) .. in the Playback tab, does it show up and display
movement on the little VU meter? What if you force it with something like
"mpv --ao=pulse <some test file>" ?
In the configuration tab, what is the Profile dropdown set to?
For the contents of asound.conf are they:
pcm.default pulse
ctl.default pulse
These are what route programs that would normally use ALSA over through PulseAudio instead.
Nothing in /etc/pulse has been adjusted? PulseAudio is supposed to start
on it's own automatically without the rc.d script.. you haven't done chmod +x /etc/rc.d/rc.pulseaudio right?
The next step after that would be to check the logs to see what pulseaudio is doing.. there are some steps to set it to be fairly verbose so you can watch what's going on:--- Synchronet 3.21d-Linux NewsLink 1.2
https://wiki.ubuntu.com/PulseAudio/Log
I ignore alsa. I had a problem with pulseaudio in that if the HDMI
device (an Enigma Fire TV here) wasn't on when I booted, or had gone to sleep from non use, pulseaudio output would not find it.
My solution was a $ killall pulseaudio and the device would be found and activated.
Only problem was with the smplayer frontend with MPV or MPlayer.
VLC had no problems.
$ pavucontrol might be helpful/informational.
Rinaldi
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 00:51:03 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,186 |