Right now I have to execute
Code: Select all
pulseaudio -D
Code: Select all
pulseaudio -D
I found that article before I posted. I looked in that file and didn't see those options at all.pcmanbob wrote:Hi.
A quick google search suggest this may be the required.
/etc/pulse/client.conf change "autospawn=no" to "autospawn=yes."
Code: Select all
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
## more information. Default values are commented out. Use either ; or # for
## commenting.
; default-sink =
; default-source =
; default-server =
; default-dbus-server =
autospawn = yes
; daemon-binary = /usr/bin/pulseaudio
; extra-arguments = --log-target=syslog
; cookie-file =
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; auto-connect-localhost = no
; auto-connect-display = no
I know this is old, but the problem still exists and there is no solution here, but I have found it. Since the service file code provided was not in a 'code' block, the double '-'s were converted to the special double hyphen character. You probably received a 'Too many arguments' error like I did. Edit your own file and convert the leading hyphens to two regular ones, or copy the pre-formatted code below:
Code: Select all
[Unit]
Description=PulseAudio Daemon
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
PrivateTmp=true
ExecStart=/usr/bin/pulseaudio --system --realtime --disallow-exit --no-cpu-limit
Code: Select all
#!/bin/bash
sudo -u pi pulseaudio --start << EOF
raspberry
EOF
sudo -u pi bluetoothctl << EOF
raspberry
connect 54:14:8E:38:A8:28
EOF
Code: Select all
@reboot sleep 15 && /home/pi/autoConnect.sh