<div dir="ltr"><div><div><div><div>Hello pulseaudio-discuss,<br><br></div>I am setting up a small linux computer (C.H.I.P.) to be a bluetooth receiver using pulseaudio. The device is not running X so I am working through pactl and configuration files. Everything is working except when my phone connects to the device pulseaudio always sets the sink-input volume to 0.<br><br></div><div>How do I get pulseaudio to set the sink-input and sink volume to 100%? Thanks.<br><br><br></div>I think these are the related pulseaudio debug lines:<br><br>I: [pulseaudio] client.c: Created 26 "Native client (UNIX socket client)"<br>I: [pulseaudio] protocol-native.c: Client authenticated anonymously.<br>D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29<br>D: [pulseaudio] protocol-native.c: SHM possible: no<br>D: [pulseaudio] protocol-native.c: Negotiated SHM: no<br>D: [pulseaudio] protocol-native.c: Client amixer changes volume of sink alsa_output.platform-1c22c00.codec.analog-stereo.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Requested to rewind 524288 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Limited to 18200 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: before: 2275<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: after: 2275<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Rewound 18200 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] sink.c: Processing rewind...<br>D: [alsa-sink-CDC PCM Codec-0] sink-input.c: Have to rewind 18200 bytes on render memblockq.<br>D: [alsa-sink-CDC PCM Codec-0] source.c: Processing rewind...<br>I: [pulseaudio] module-device-restore.c: Storing volume/mute for device+port sink:alsa_output.platform-1c22c00.codec.analog-stereo:analog-output.<br>I: [pulseaudio] client.c: Freed 26 "ALSA plug-in [amixer]"<br>I: [pulseaudio] protocol-native.c: Connection died.<br><br><br></div>Full connection log<br><br>D: [pulseaudio] bluez5-util.c: Properties changed in device /org/bluez/hci0/dev_1C_56_FE_9D_1B_0E<br>D: [pulseaudio] bluez4-util.c: dbus: interface=org.freedesktop.DBus.Properties, path=/org/bluez/hci0/dev_1C_56_FE_9D_1B_0E, member=PropertiesChanged<br>D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Introspectable found, skipping<br>D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.MediaTransport1 found, skipping<br>D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Properties found, skipping<br>D: [pulseaudio] bluez4-util.c: dbus: interface=org.freedesktop.DBus.ObjectManager, path=/, member=InterfacesAdded<br>D: [pulseaudio] bluez4-util.c: dbus: interface=org.bluez.MediaEndpoint1, path=/MediaEndpoint/A2DPSink, member=SetConfiguration<br>D: [pulseaudio] bluez5-util.c: dbus: path=/MediaEndpoint/A2DPSink, interface=org.bluez.MediaEndpoint1, member=SetConfiguration<br>D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_1C_56_FE_9D_1B_0E/fd11 state changed from disconnected to idle<br>D: [pulseaudio] module-bluez5-discover.c: Loading module-bluez5-device path=/org/bluez/hci0/dev_1C_56_FE_9D_1B_0E<br>I: [pulseaudio] card.c: Created 4 "bluez_card.1C_56_FE_9D_1B_0E"<br>D: [pulseaudio] module-bluez5-device.c: Acquiring transport /org/bluez/hci0/dev_1C_56_FE_9D_1B_0E/fd11<br>I: [pulseaudio] bluez5-util.c: Failed optional acquire of unavailable transport /org/bluez/hci0/dev_1C_56_FE_9D_1B_0E/fd11<br>I: [pulseaudio] module-bluez5-device.c: SBC parameters: allocation=0, subbands=1, blocks=3, bitpool=2<br>D: [pulseaudio] module-device-restore.c: Database contains invalid data for key: source:bluez_source.1C_56_FE_9D_1B_0E:null<br>I: [pulseaudio] source.c: Created source 5 "bluez_source.1C_56_FE_9D_1B_0E" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right<br>I: [pulseaudio] source.c: bluetooth.protocol = "a2dp_source"<br>I: [pulseaudio] source.c: device.description = "MotoG3"<br>I: [pulseaudio] source.c: device.string = "1C:56:FE:9D:1B:0E"<br>I: [pulseaudio] source.c: device.api = "bluez"<br>I: [pulseaudio] source.c: device.class = "sound"<br>I: [pulseaudio] source.c: device.bus = "bluetooth"<br>I: [pulseaudio] source.c: device.form_factor = "phone"<br>I: [pulseaudio] source.c: bluez.path = "/org/bluez/hci0/dev_1C_56_FE_9D_1B_0E"<br>I: [pulseaudio] source.c: bluez.class = "0x5a020c"<br>I: [pulseaudio] source.c: bluez.alias = "MotoG3"<br>I: [pulseaudio] source.c: device.icon_name = "audio-card-bluetooth"<br>D: [bluetooth] module-bluez5-device.c: IO Thread starting up<br>D: [pulseaudio] module-suspend-on-idle.c: Source bluez_source.1C_56_FE_9D_1B_0E becomes idle, timeout in 5 seconds.<br>D: [pulseaudio] sink-input.c: Negotiated format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""<br>D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-1c22c00.codec.analog-stereo becomes busy, resuming.<br>D: [pulseaudio] sink.c: Suspend cause of sink alsa_output.platform-1c22c00.codec.analog-stereo is 0x0000, resuming<br>I: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Trying resume...<br>I: [alsa-sink-CDC PCM Codec-0] alsa-util.c: cannot disable ALSA period wakeups<br>D: [alsa-sink-CDC PCM Codec-0] alsa-util.c: Maximum hw buffer size is 1489 ms<br>D: [alsa-sink-CDC PCM Codec-0] alsa-util.c: Set buffer size first (to 65536 samples), period size second (to 8192 samples).<br>I: [alsa-sink-CDC PCM Codec-0] alsa-util.c: ALSA period wakeups were not disabled<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: hwbuf_unused=0<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: setting avail_min=64656<br>I: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Time scheduling watermark is 20.00ms<br>I: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Resumed successfully...<br>D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-1c22c00.codec.analog-stereo becomes idle, timeout in 5 seconds.<br>I: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Starting playback.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Cutting sleep time for the initial iterations by half.<br>D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-1c22c00.codec.analog-stereo becomes idle, timeout in 5 seconds.<br>I: [pulseaudio] resampler.c: Resampler 'ffmpeg' cannot do variable rate, reverting to resampler 'auto'.<br>D: [pulseaudio] resampler.c: Resampler:<br>D: [pulseaudio] resampler.c: rate 44100 -> 44000 (method speex-fixed-1)<br>D: [pulseaudio] resampler.c: format s16le -> s32le (intermediate s16le)<br>D: [pulseaudio] resampler.c: channels 2 -> 2 (resampling 2)<br>I: [pulseaudio] resampler.c: Choosing speex quality setting 1.<br>D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=8, prebuf=0, minreq=1 maxrewind=0<br>D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=8, prebuf=0, minreq=8 maxrewind=0<br>I: [pulseaudio] sink-input.c: Created input 3 "(null)" on alsa_output.platform-1c22c00.codec.analog-stereo with sample spec s16le 2ch 44100Hz and channel map front-left,front-right<br>I: [pulseaudio] sink-input.c: media.role = "music"<br>I: [pulseaudio] sink-input.c: <a href="http://module-stream-restore.id">module-stream-restore.id</a> = "sink-input-by-media-role:music"<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Cutting sleep time for the initial iterations by half.<br>D: [pulseaudio] module-stream-restore.c: Not restoring device for stream source-output-by-media-role:abstract, because already set<br>D: [pulseaudio] source-output.c: Negotiated format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""<br>D: [pulseaudio] module-suspend-on-idle.c: Source bluez_source.1C_56_FE_9D_1B_0E becomes busy, resuming.<br>D: [pulseaudio] module-suspend-on-idle.c: Source bluez_source.1C_56_FE_9D_1B_0E becomes idle, timeout in 5 seconds.<br>D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0<br>D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0<br>I: [pulseaudio] source-output.c: Created output 3 "(null)" on bluez_source.1C_56_FE_9D_1B_0E with sample spec s16le 2ch 44100Hz and channel map front-left,front-right<br>I: [pulseaudio] source-output.c: media.role = "abstract"<br>I: [pulseaudio] source-output.c: <a href="http://module-stream-restore.id">module-stream-restore.id</a> = "source-output-by-media-role:abstract"<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Cutting sleep time for the initial iterations by half.<br>D: [pulseaudio] memblockq.c: memblockq requested: maxlength=16777216, tlength=16777216, base=4, prebuf=0, minreq=0 maxrewind=0<br>D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=16777216, tlength=16777216, base=4, prebuf=0, minreq=4 maxrewind=0<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Cutting sleep time for the initial iterations by half.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Latency set to 66.67ms<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: hwbuf_unused=500824<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: setting avail_min=64657<br>I: [alsa-sink-CDC PCM Codec-0] module-loopback.c: Max request changed<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Requesting rewind due to latency change.<br>I: [alsa-sink-CDC PCM Codec-0] module-loopback.c: Max request changed<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Requested to rewind 524288 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Limited to 518560 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: before: 64820<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: after: 64820<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Rewound 518560 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] sink.c: Processing rewind...<br>D: [alsa-sink-CDC PCM Codec-0] sink-input.c: Have to rewind 518560 bytes on render memblockq.<br>D: [alsa-sink-CDC PCM Codec-0] source.c: Processing rewind...<br>I: [bluetooth] module-loopback.c: Skipping 0 bytes<br>D: [pulseaudio] module-suspend-on-idle.c: Source bluez_source.1C_56_FE_9D_1B_0E becomes busy, resuming.<br>D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.<br>I: [pulseaudio] module.c: Loaded "module-loopback" (index: #22; argument: "source="bluez_source.1C_56_FE_9D_1B_0E" source_dont_move="true" sink_input_properties="media.role=music"").<br>I: [pulseaudio] module.c: Loaded "module-bluez5-device" (index: #21; argument: "path=/org/bluez/hci0/dev_1C_56_FE_9D_1B_0E").<br>D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_1C_56_FE_9D_1B_0E/fd11 available for profile a2dp_source<br>D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Introspectable found, skipping<br>D: [pulseaudio] bluez5-util.c: Unknown interface org.bluez.MediaPlayer1 found, skipping<br>D: [pulseaudio] bluez5-util.c: Unknown interface org.freedesktop.DBus.Properties found, skipping<br>D: [pulseaudio] bluez4-util.c: dbus: interface=org.freedesktop.DBus.ObjectManager, path=/, member=InterfacesAdded<br>D: [pulseaudio] bluez5-util.c: Properties changed in adapter /org/bluez/hci0<br>D: [pulseaudio] bluez4-util.c: dbus: interface=org.freedesktop.DBus.Properties, path=/org/bluez/hci0, member=PropertiesChanged<br>I: [pulseaudio] client.c: Created 25 "Native client (UNIX socket client)"<br>I: [pulseaudio] protocol-native.c: Client authenticated anonymously.<br>I: [pulseaudio] client.c: Freed 25 "Native client (UNIX socket client)"<br>I: [pulseaudio] protocol-native.c: Connection died.<br>I: [pulseaudio] client.c: Created 26 "Native client (UNIX socket client)"<br>I: [pulseaudio] protocol-native.c: Client authenticated anonymously.<br>D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29<br>D: [pulseaudio] protocol-native.c: SHM possible: no<br>D: [pulseaudio] protocol-native.c: Negotiated SHM: no<br>D: [pulseaudio] protocol-native.c: Client amixer changes volume of sink alsa_output.platform-1c22c00.codec.analog-stereo.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Requested to rewind 524288 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Limited to 18200 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: before: 2275<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: after: 2275<br>D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Rewound 18200 bytes.<br>D: [alsa-sink-CDC PCM Codec-0] sink.c: Processing rewind...<br>D: [alsa-sink-CDC PCM Codec-0] sink-input.c: Have to rewind 18200 bytes on render memblockq.<br>D: [alsa-sink-CDC PCM Codec-0] source.c: Processing rewind...<br>I: [pulseaudio] module-device-restore.c: Storing volume/mute for device+port sink:alsa_output.platform-1c22c00.codec.analog-stereo:analog-output.<br>I: [pulseaudio] client.c: Freed 26 "ALSA plug-in [amixer]"<br>I: [pulseaudio] protocol-native.c: Connection died.<br>I: [pulseaudio] client.c: Created 27 "Native client (UNIX socket client)"<br>I: [pulseaudio] protocol-native.c: Client authenticated anonymously.<br>D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29<br>D: [pulseaudio] protocol-native.c: SHM possible: no<br>D: [pulseaudio] protocol-native.c: Negotiated SHM: no<br>I: [pulseaudio] client.c: Freed 27 "ALSA plug-in [amixer]"<br>I: [pulseaudio] protocol-native.c: Connection died.<br>I: [pulseaudio] client.c: Created 28 "Native client (UNIX socket client)"<br>I: [pulseaudio] protocol-native.c: Client authenticated anonymously.<br>D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29<br>D: [pulseaudio] protocol-native.c: SHM possible: no<br>D: [pulseaudio] protocol-native.c: Negotiated SHM: no<br>I: [pulseaudio] client.c: Freed 28 "pactl"<br>I: [pulseaudio] protocol-native.c: Connection died.<br><br></div><br clear="all"><div><div><div><div><div><div><div>0 ol-blue /etc/pulse # pactl list sink-inputs<br>Sink Input #0<br> Driver: module-loopback.c<br> Owner Module: 16<br> Client: n/a<br> Sink: 0<br> Sample Specification: s16le 2ch 44100Hz<br> Channel Map: front-left,front-right<br> Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""<br> Corked: yes<br> Mute: no<br> Volume: front-left: 1 / 0% / -288.99 d, front-right: 1 / 0% / -288.99 d<br> balance 0.00<br> Buffer Latency: 0 usec<br> Sink Latency: 0 usec<br> Resample method: speex-fixed-1<br> Properties:<br> media.role = "music"<br> <a href="http://module-stream-restore.id">module-stream-restore.id</a> = "sink-input-by-media-role:music"<br> <a href="http://media.name">media.name</a> = "Loopback from MotoG3"<br> media.icon_name = "audio-card-bluetooth"<br><br><br>0 ol-blue /etc/pulse # pactl list sinks <br>Sink #0<br> State: SUSPENDED<br> Name: alsa_output.platform-1c22c00.codec.analog-stereo<br> Description: sun4i-codec Analog Stereo<br> Driver: module-alsa-card.c<br> Sample Specification: s32le 2ch 44000Hz<br> Channel Map: front-left,front-right<br> Owner Module: 1<br> Mute: no<br> Volume: front-left: 1 / 0% / -288.99 d, front-right: 1 / 0% / -288.99 d<br> balance 0.00<br> Base Volume: 65536 / 100% / 0.00 dB<br> Monitor Source: alsa_output.platform-1c22c00.codec.analog-stereo.monitor<br> Latency: 0 usec, configured 0 usec<br> Flags: HARDWARE DECIBEL_VOLUME LATENCY <br> Properties:<br> alsa.resolution_bits = "24"<br> device.api = "alsa"<br> device.class = "sound"<br> alsa.class = "generic"<br> alsa.subclass = "generic-mix"<br> <a href="http://alsa.name">alsa.name</a> = ""<br> <a href="http://alsa.id">alsa.id</a> = "CDC PCM Codec-0"<br> alsa.subdevice = "0"<br> alsa.subdevice_name = "subdevice #0"<br> alsa.device = "0"<br> alsa.card = "0"<br> alsa.card_name = "sun4i-codec"<br> alsa.long_card_name = "sun4i-codec"<br> alsa.driver_name = "sun4i_codec"<br> device.bus_path = "platform-1c22c00.codec"<br> sysfs.path = "/devices/platform/soc@01c00000/1c22c00.codec/sound/card0"<br> device.string = "hw:0"<br> device.buffering.buffer_size = "524288"<br> device.buffering.fragment_size = "65536"<br> device.access_mode = "mmap+timer"<br> <a href="http://device.profile.name">device.profile.name</a> = "analog-stereo"<br> device.profile.description = "Analog Stereo"<br> device.description = "sun4i-codec Analog Stereo"<br> module-udev-detect.discovered = "1"<br> device.icon_name = "audio-card"<br> Ports:<br> analog-output: Analog Output (priority: 9900)<br> Active Port: analog-output<br> Formats:<br> pcm<br><br>0 ol-blue /etc/pulse # egrep -v '^#|^;' daemon.conf<br>daemonize = no<br>allow-module-loading = yes<br>allow-exit = no<br>use-pid-file = yes<br>system-instance = yes<br>high-priority = yes<br>realtime-scheduling = no<br>log-target = journal<br>resample-method = ffmpeg<br>enable-remixing = no<br>enable-lfe-remixing = no<br>flat-volumes = yes<br>default-sample-format = s32le<br>default-sample-rate = 44000<br>alternate-sample-rate = 192000<br>default-sample-channels = 2<br>default-fragments = 10<br>default-fragment-size-msec = 50<br><br><br>0 ol-blue /etc/pulse # egrep -v '^#|^;' client.conf <br>extra-arguments = --log-target=syslog --system --disallow-exit -v<br><br><br>0 ol-blue /etc/pulse # egrep -v '^#|^;' <a href="http://system.pa">system.pa</a> <br>.ifexists module-udev-detect.so<br>load-module module-udev-detect<br>.else<br>load-module module-detect<br>.endif<br>.ifexists module-esound-protocol-unix.so<br>load-module module-esound-protocol-unix auth-anonymous=1<br>.endif<br>load-module module-native-protocol-unix auth-anonymous=1<br>load-module module-stream-restore<br>load-module module-device-restore<br>load-module module-default-device-restore<br>load-module module-rescue-streams<br>load-module module-always-sink<br>load-module module-suspend-on-idle<br>load-module module-position-event-sounds<br>load-module module-bluetooth-discover<br>load-module module-bluetooth-policy<br>load-module module-switch-on-connect<br><br>0 ol-blue /etc/pulse # egrep -v '^#|^;' <a href="http://default.pa">default.pa</a> <br>.nofail<br>.fail<br>load-module module-device-restore<br>load-module module-stream-restore<br>load-module module-card-restore<br>load-module module-augment-properties<br>load-module module-switch-on-port-available<br>.ifexists module-udev-detect.so<br>load-module module-udev-detect<br>.else<br>load-module module-detect<br>.endif<br>.ifexists module-jackdbus-detect.so<br>.nofail<br>load-module module-jackdbus-detect channels=2<br>.fail<br>.endif<br>.ifexists module-bluetooth-policy.so<br>load-module module-bluetooth-policy<br>.endif<br>.ifexists module-bluetooth-discover.so<br>load-module module-bluetooth-discover<br>.endif<br>.ifexists module-esound-protocol-unix.so<br>load-module module-esound-protocol-unix<br>.endif<br>load-module module-native-protocol-unix<br>.ifexists module-gconf.so<br>.nofail<br>load-module module-gconf<br>.fail<br>.endif<br>load-module module-default-device-restore<br>load-module module-rescue-streams<br>load-module module-always-sink<br>load-module module-intended-roles<br>load-module module-suspend-on-idle<br>.ifexists module-console-kit.so<br>load-module module-console-kit<br>.endif<br>.ifexists module-systemd-login.so<br>load-module module-systemd-login<br>.endif<br>load-module module-position-event-sounds<br>load-module module-role-cork<br>load-module module-filter-heuristics<br>load-module module-filter-apply<br><br></div><div>Removing module-*-restore does not change the situation.<br><br></div><div>--Dean<br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Unscrambler of Eggs<br>Mobile: <a href="tel:+16508233389" target="_blank">(650) 823-3389</a><br><br></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>