No sound from my speakers

I can not get any sound from my speakers.

The physical connection is good and the Logitech system is powered up.

I even hooked up my speaker system a second output.(the green plug)

What else can I check?

I found out that sound is coming out of my LG TV that I use as my monitor.

How can I get Ubuntu Mate to use my computer speakers and not my TV speakers?

I installed pulseaudio which is supposed to be able to fix the sound problem, but I get this.

pulseaudio
W: [pulseaudio] pid.c: Stale PID file, overwriting.
E: [pulseaudio] socket-server.c: bind(): Address already in use
E: [pulseaudio] module.c: Failed to load module "module-native-protocol-unix" (argument: ""): initialization failed.
E: [pulseaudio] main.c: D-Bus name org.pulseaudio.Server already taken.

You've not told us your release, which is detailed information about your software stack.

Ubuntu MATE 22.04 LTS was the last release using PulseAudio for sound, so the first command your detail shows applies to 22.04 & earlier, and thus is expected for newer releases.

Modern releases do include some PulseAudio packages, as PipeWire behind the scenes controls the sound, but some Pulse Audio controls can still be used.

What release are you using? and if it was a recent release using PipeWire, what changes you made may also be helpful.

3 Likes

The fact that your speakers are plugged into an audio-out port dictates that the controlling element is the interface board, not the speakers themselves.

So, some details on specific hardware could reveal the nature of the issue.

Also, be sure to select the correct choice (Built-in Audio for the 3.5 mm "sound jack") from the list offered in the tab shown below for "Sound Preferences" (HDMI would likely be the port that is currently selected and directing sound to your TV monitor):

Also, when you choose the Output, since your external speakers have their own power-supply, make sure you chose "Line Out" and not "Headphones", as shown below:

Lastly, maybe some of the pulseaudio settings are affecting your experience. Looking at the output of the following command might give you insight into a setting that is working against you:

pulseaudio --dump-conf

To be sure, let's not overlook the obvious: make sure the "mute" setting is turned off. :slight_smile:

3 Likes
pulseaudio --dump-conf
### Read from configuration file: /etc/pulse/daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
rescue-streams = yes
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-16.1+dfsg1/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = 
log-level = notice
resample-method = auto
avoid-resampling = no
enable-remixing = yes
remixing-use-all-sink-channels = yes
remixing-produce-lfe = no
remixing-consume-lfe = no
lfe-crossover-freq = 0
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
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -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

I am using UM 24.02.

I do not know if this will provide any useful info.

andy@Custom:~$ pipewire
[E][05068.782707] mod.protocol-native | [module-protocol-: 760 lock_socket()] server 0x5d9c79d1d150: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][05068.783250] pw.conf | [ conf.c: 584 load_module()] 0x5d9c79cf6bd0: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][05068.784329] default | [ pipewire.c: 105 main()] failed to create context: Resource temporarily unavailable

That output is identical to what I see on my computer. So nothing to change there.

Which application do you use to play sounds/music?

Also, for Pipewire/Pulseaudio, I have the following processes running on my machine:

If you have pulseaudio running as a daemon, I believe you need to kill that, then start Pipewire as a daemon, but that is only a guess! Notice the PIDs for startup sequencing.

2 Likes

On 24.04.2 the pulseaudio daemon should not be running.

5 Likes

You're likely using Ubuntu 24.04 or the 2024-April release, and your point release is .2, thus 24.04.2. There was no [new] Ubuntu-MATE release in 2024-February (24.02); with the only release that year/month being 22.04.4.

(22.04 used PulseAudio, 24.04 uses PipeWire; release does matter)

7 Likes

Andy this might help you. This is audacious. It is pipewire out. It took me a few months to figure it out when it first went from Pulse audio to pipewire.

6 Likes