sound doesn't work until I login
Karl Auer
kauer at biplane.com.au
Tue Sep 6 22:47:43 UTC 2016
An apparently simple problem, but I can't seem to figure it out. And
Uncle Google only has "hints and allegations".
I want sound to play when my GUI-free Ubuntu 16.04 system starts. I
have a script that plays sound, the script starts when my system boots,
each part of the script is working fine, but sound doesn't start
happening until I log in (on a console screen - no GUI, remember).
Until I log in, every invocation of "play" (the program I use to play a
sound file) produces these errors:
shm_open() failed: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error
/usr/bin/play FAIL formats: can't open output file `default': snd_pcm_open error: Connection refused
As soon as I log in, sound starts happening.
Any ideas?
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
More information about the ubuntu-users
mailing list