Bug#947908: pulseaudio: sound doesn't play on first launch of pulseaudio at login; restarting it always results in working sound but will reoccur on next boot

2020-01-03 Thread Joshua Hudson
> Is there actually a pulseaudio daemon running?

yup.

> Where?

Not sure what this is supposed to mean.

> Is it managed by systemd?

I dunno how starting it at login is supposed to work.

client.conf:

autospawn = no

Ok this makes absolutely no sense at all. The problem went away when I
took ethernet device configuration away from systemd by masking off
all the networking stuff and sticking ifup -a & into /sbin/init. This
does make system boot a _lot_ faster.



Bug#947908: pulseaudio: sound doesn't play on first launch of pulseaudio at login; restarting it always results in working sound but will reoccur on next boot

2020-01-03 Thread Felipe Sateler
On Fri, Jan 3, 2020 at 12:16 AM Joshua Hudson  wrote:

> > Does `journalctl --user-unit pulseaudio.service` have anything to say?
>
> Says "daemon already running" quite a few times.
>
> > You can set the debug flags on daemon.conf to force it to verbose mode.
>
> Spectacular:
>
> E: [pulseaudio] pid.c: Daemon already running.
> E: [pulseaudio] main.c: pa_pid_file_create() failed.
>

Is there actually a pulseaudio daemon running? Where? Is it managed by
systemd?


You didn't attach your client.conf

-- 

Saludos,
Felipe Sateler


Bug#947908: pulseaudio: sound doesn't play on first launch of pulseaudio at login; restarting it always results in working sound but will reoccur on next boot

2020-01-02 Thread Joshua Hudson
> Does `journalctl --user-unit pulseaudio.service` have anything to say?

Says "daemon already running" quite a few times.

> You can set the debug flags on daemon.conf to force it to verbose mode.

Spectacular:

E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

Must clear the log file every time.

$ grep -v '^$' /etc/pulse/daemon.conf | grep -v '^;' | grep -v '^#'
$ cat ~/.pulse/daemon.conf

exit-idle-time=-1
log-target=file:/home/joshua/.pulse/daemon.log
log-level=info
kill=yes

and aplay reports:

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
aplay: main:828: audio open error: No such file or directory

but writing directly to /dev/audio1 makes some noise



Bug#947908: pulseaudio: sound doesn't play on first launch of pulseaudio at login; restarting it always results in working sound but will reoccur on next boot

2020-01-02 Thread Felipe Sateler
Control: tags -1 moreinfo

On Wed, Jan 1, 2020 at 8:39 PM Joshua  wrote:

> Package: pulseaudio
> Version: 12.2-4+deb10u1
> Severity: normal
>
> After installing systemd, the following problem appeared in pulseaudio:
>

Please attach the entire client.conf (/etc/pulse and ~/.config/pulse).


>
> The first login after boot launches a non-working pulseaudio. Killing and
> restarting pulseaudio results in
> a working pulseaudio. It's not a wait for device to initialize problem. It
> doesn't matter how long I stare
> at the login screen before logging in.
>

Does `journalctl --user-unit pulseaudio.service` have anything to say?


>
> The normal debug steps are useless as the problem won't recur when
> pulseaudio is not restarted.
>

You can set the debug flags on daemon.conf to force it to verbose mode.

-- 

Saludos,
Felipe Sateler


Bug#947908: pulseaudio: sound doesn't play on first launch of pulseaudio at login; restarting it always results in working sound but will reoccur on next boot

2020-01-01 Thread Joshua
Package: pulseaudio
Version: 12.2-4+deb10u1
Severity: normal

After installing systemd, the following problem appeared in pulseaudio:

The first login after boot launches a non-working pulseaudio. Killing and 
restarting pulseaudio results in
a working pulseaudio. It's not a wait for device to initialize problem. It 
doesn't matter how long I stare
at the login screen before logging in.

The normal debug steps are useless as the problem won't recur when pulseaudio 
is not restarted.

-- Package-specific info:
File '/etc/default/pulseaudio' does not exist


-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1), LANGUAGE=en_US 
(charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pulseaudio depends on:
ii  adduser  3.118
ii  libasound2   1.1.8-1
ii  libasound2-plugins   1:1.1.8-dmo1
ii  libc62.28-10
ii  libcap2  1:2.25-2
ii  libdbus-1-3  1.12.16-1
ii  libgcc1  1:8.3.0-6
ii  libice6  2:1.0.9-2
ii  libltdl7 2.4.6-9
ii  liborc-0.4-0 1:0.4.28-3.1
ii  libpulse012.2-4+deb10u1
ii  libsm6   2:1.2.3-1
ii  libsndfile1  1.0.28-6
ii  libsoxr0 0.1.2-3
ii  libspeexdsp1 1.2~rc1.2-1+b2
ii  libstdc++6   8.3.0-6
ii  libsystemd0  241-7~deb10u2
ii  libtdb1  1.3.16-2+b1
ii  libudev1 241-7~deb10u2
ii  libwebrtc-audio-processing1  0.3-1
ii  libx11-6 2:1.6.7-1
ii  libx11-xcb1  2:1.6.7-1
ii  libxcb1  1.13.1-2
ii  libxtst6 2:1.2.3-1
ii  lsb-base 10.2019051400
ii  pulseaudio-utils 12.2-4+deb10u1

Versions of packages pulseaudio recommends:
pn  dbus-user-session  
ii  libpam-systemd 241-7~deb10u2
pn  rtkit  

Versions of packages pulseaudio suggests:
pn  paman
pn  paprefs  
ii  pavucontrol  3.0-4
pn  pavumeter
ii  udev 241-7~deb10u2

-- no debconf information
# 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, see .

## 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
# 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, see .

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 
MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (d