Audio problems

[Peppermint 3 on a Dell D505 laptop]

The topic http://linuxforums.org.uk/index.php?topic=12318.0 was about getting a midi keyboard to work - which I did thanks to this Forum. I left that for a while but when I tried today the keyboard did not work.
So for simplicity I tried the following series of commands to play a test WAV file, that used to work well:

Terminal 1:
keith@D505 ~ $ more .config/pulse/client.conf
autospawn = no
keith@D505 ~ $ pulseaudio --kill
keith@D505 ~ $ jackd -d alsa --device hw:0 --rate 44100 --period 128

Terminal 2:
keith@D505 ~ $ export JACK_PLAY_CONNECT_TO=system:playback_%d
keith@D505 ~ $ fluidsynth --server --audio-driver=jack --connect-jack-outputs /usr/share/sounds/sf2/FluidR3_GM.sf2

Terminal 3:
keith@D505 ~ $ jack.play test.wav (a known, good, test file)
jack.play: test.wav

But even this yielded no sound output.
At this point I noticed that the sound icon was visible. The command pulseaudio --kill kills the sound icon but pulseaudio auto-spawns and the icon reappears, despite “autospawn” being set to “no” in client.conf.

I noticed also that I could no longer get sound out of the BBC iPlayer and when I looked in Settings/Sound I found that there are no devices listed for Input or Hardware, and under Output is listed “Dummy Output”.
I tried pulseaudio --start --log-target=syslog to no avail. Unloading then reloading alsa then rebooting got basic sound back again - a useful thing to remember.

Still can’t play WAV files with jack.

What’s the output from:

cat ~/.config/pulse/client.conf

and

ps aux | grep [p]ulseaudio

keith@D505 ~ $ cat ~/.config/pulse/client.conf
cat: /home/keith/.config/pulse/client.conf: No such file or directory
(This file was there because I created it - see the first line in the previous post above)

keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 1773 2.7 0.6 165316 6380 ? S<l 17:56 0:37 /usr/bin/pulseaudio --start --log-target=syslog

run:

touch ~/.config/pulse/client.conf

then

echo autospawn = no > ~/.config/pulse/client.conf

then

pulseaudio --kill

then what’s the output (if any) from:

ps aux | grep [p]ulseaudio

keith@D505 ~ $ touch ~/.config/pulse/client.conf
keith@D505 ~ $ echo autospawn = no > ~/.config/pulse/client.conf
keith@D505 ~ $ pulseaudio --kill
keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 2410 1.7 0.4 99324 4720 ? S<l 18:31 0:00 /usr/bin/pulseaudio --start --log-target=syslog

I note that “pulseaudio --kill” kills the sound, but “pulseaudio --start” does not restart it

OK, sommats wrong here … run:

mv -vr ~/.config/pulse ~/.config/pulse-broken

then log off/on again
then run:

pulseaudio --start --log-target=syslog

the try my last posting again

keith@D505 ~ $ touch ~/.config/pulse/client.conf
touch: cannot touch `/home/keith/.config/pulse/client.conf’: No such file or directory

keith@D505 ~ $ echo autospawn = no > ~/.config/pulse/client.conf
bash: /home/keith/.config/pulse/client.conf: No such file or directory

keith@D505 ~ $ mkdir .config/pulse
keith@D505 ~ $ echo autospawn = no > ~/.config/pulse/client.conf
keith@D505 ~ $ ls .config/pulse/
client.conf
keith@D505 ~ $ pulseaudio --kill
keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 3049 0.5 0.4 99324 4712 ? S<l 18:49 0:00 /usr/bin/pulseaudio --start --log-target=syslog

(iPlayer working despite “pulseaudio --kill”)

run

sudo killall pulseaudio

then

sudo service pulseaudo stop

then

pulseaudio --start --log-target=syslog

then try again

Sorry, Mark: try which bit?

I forgot to mention:
keith@D505 ~ $ sudo service pulseaudo stop
pulseaudo: unrecognized service

pulseaudio --kill

then what’s the output (if any) from:

ps aux | grep [p]ulseaudio

keith@D505 ~ $ pulseaudio --kill
keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 3201 1.2 0.4 99324 4712 ? S<l 19:10 0:00 /usr/bin/pulseaudio --start --log-target=syslog

Run:

sudo killall pulseaudio

then

rm -rv ~/.config/pulse

then REBOOT
now post the output from:

ls ~/.config/pulse

and

ps aux | grep [p]ulseaudio

Sorry - forgot to reboot!

keith@D505 ~ $ ls ~/.config/pulse
ls: cannot access /home/keith/.config/pulse: No such file or directory
keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 3277 1.1 0.5 165320 5648 ? S<l 19:23 0:01 /usr/bin/pulseaudio --start --log-target=syslog

run
sudo killall pulseaudio
now what’s the output from:
ps aux | grep [p]ulseaudio

keith@D505 ~ $ sudo killall pulseaudio
[sudo] password for keith:
keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 3947 1.3 0.4 99324 4716 ? S<l 19:31 0:00 /usr/bin/pulseaudio --start --log-target=syslog

run:

mkdir ~/.config/pulse

then

touch ~/.config/pulse/client.conf

hen

echo autospawn = no > ~/.config/pulse/client.conf

then

sudo killall pulseaudio

now what’s the output from:

ps aux | grep [p]ulseaudio

keith@D505 ~ $ ps aux | grep [p]ulseaudio
keith 4321 1.1 0.4 99328 4688 ? S<l 19:54 0:00 /usr/bin/pulseaudio --start --log-target=syslog

OK, dunno what’s going on here, but maybe you should just remove pulseaudio altogether:

sudo apt-get remove --purge pulseaudio pulseaudio-utils pavucontrol

then reboot.