Page 1 of 2
Autostart --> pulseaudio --start (antiX) [Solved]
Posted: Sun Mar 08, 2020 6:07 am
by rasat
Some time ago during one of the upgrades (bullseye, Gnome), pulseaudio stopped automatically to start. Didn't mind starting manually "pulseaudio --start" waiting for later upgrade fix. After awhile became annoying. Made one executive file. But in /home there is nowhere which starts the below executive file, including ~/.config/autostart/ . The file itself works fine with manual click. Or does pulseaudo have a config file somewhere?
Code: Select all
#!/bin/bash
/usr/bin/pulseaudio --start
Re: Autostart --> pulseaudio --start
Posted: Sun Mar 08, 2020 8:50 am
by Head_on_a_Stick
rasat wrote: Sun Mar 08, 2020 6:07 am
in /home there is nowhere which starts the below executive file, including ~/.config/autostart/
~/.config/autostart/ only accepts .desktop files, you could try copying the pulseaudio.desktop file to that directory:
Code: Select all
cp /etc/xdg/autostart/pulseaudio.desktop ~/.config/autostart/
But the /etc/xdg/autostart/ files should be run automatically anyway so that might not work.
To run commands every time the X session starts add them to
~/.xsessionrc (without the bash shebang), see
https://wiki.debian.org/Xsession for an overview of the various other methods.
rasat wrote: Sun Mar 08, 2020 6:07 am
bullseye
It looks like the bullseye PA package has gained a sysvinit script at
/etc/init.d/pulseaudio-enable-autospawn — is that enabled?
Use this to check:
Out of interest does it also fail to start if you boot with systemd as PID1? The PA package supplies a systemd user service & socket to ensure autostart, perhaps that is a factor here.
Re: Autostart --> pulseaudio --start
Posted: Sun Mar 08, 2020 9:19 am
by dolphin_oracle
I don't usually supply support for those updating to bullseye...
but can you supply
and
Re: Autostart --> pulseaudio --start
Posted: Sun Mar 08, 2020 10:12 am
by rasat
I am very sorry, I forgot to mention this is in antiX. In MX (bullseye, Gnome) works fine in same /home with antiX.
I tried what you suggested... "pulseaudio-enable-autospawn" is enabled. Also .desktop in .config/autostart/ with "Exec=/usr/bin/pulseaudio --start" does not exe.
Re: Autostart --> pulseaudio --start (antiX)
Posted: Sun Mar 08, 2020 10:25 am
by anticapitalista
Maybe due to a broken policykit upgrade.
Add nosystemd to the antix.list repos to read something like this
Code: Select all
deb http://repo.antixlinux.com/testing testing main nonfree nosystemd
and
Code: Select all
sudo apt update && sudo apt dist-upgrade
Re: Autostart --> pulseaudio --start (antiX)
Posted: Sun Mar 08, 2020 10:39 am
by Jerry3904
<Moved the topic.>
Re: Autostart --> pulseaudio --start
Posted: Sun Mar 08, 2020 10:42 am
by Head_on_a_Stick
rasat wrote: Sun Mar 08, 2020 10:12 am
Also .desktop in .config/autostart/ with "Exec=/usr/bin/pulseaudio --start" does not exe.
Did you not try copying the extant pulseaudio.desktop file over?
That has
Along with
Code: Select all
X-GNOME-Autostart-Phase=Initialization
But anyway it probably wouldn't work because the files in /etc/xdg/autostart/ should be run automatically.
Is this really for the GNOME desktop? Under antiX that would rely on elogind, which might not provide all of the necessary API features (some of them are stubbed out).
And the development branches do have a habit of breaking randomly from time to time.
EDIT: which version of PA is this? The
changelog notes that v13.0-5 includes a fix for the "removal of 00-disable-autospawn.conf", which sounds relevant.
anticapitalista's upgrade suggestion would fix that if you're running an older version.
Re: Autostart --> pulseaudio --start (antiX)
Posted: Sun Mar 08, 2020 11:54 am
by dolphin_oracle
Actualky being antix makes my post more relevant not less.
Debian pulseaudio is not configured to be autostarted by anything but systemd.
Re: Autostart --> pulseaudio --start (antiX)
Posted: Sun Mar 08, 2020 1:22 pm
by Head_on_a_Stick
dolphin_oracle wrote: Sun Mar 08, 2020 11:54 am
Debian pulseaudio is not configured to be autostarted by anything but systemd.
Version 13.0-5 added a sysvinit script for autostart (as I noted above), the changelog says:
* Enable autospawn automatically on sysvinit systems.
Instead of having a default configuration, make pulseaudio default to
disabled, and then have a sysvinit service to reenable the autospawn
setting
(Closes: #923203)
* Allow installing pulseaudio with elogind.
Because we now autospawn with non-systemd, we can use the weaker guarantees
provided by elogind
(Closes: #923201)
See also
https://bugs.debian.org/cgi-bin/bugrepo ... =%23923203 &
https://bugs.debian.org/cgi-bin/bugrepo ... =%23923201
So I reckon the OP just encountered
this bug, which should be fixed by an upgrade.
Re: Autostart --> pulseaudio --start
Posted: Sun Mar 08, 2020 2:21 pm
by rasat
Head_on_a_Stick wrote: Sun Mar 08, 2020 10:42 am
Did you not try copying the extant pulseaudio.desktop file over?
I tried all what were said earlier.
At this stage when running bullseye, I am not much concern about pulseaudio because it runs fine with the manual command "/usr/bin/pulseaudio --start". But where in /home to run a simple script when login.