Autostart --> pulseaudio --start (antiX) [Solved]

Message
Author
User avatar
rasat
Posts: 652
Joined: Tue Dec 19, 2017 12:19 pm

Autostart --> pulseaudio --start (antiX) [Solved]

#1 Post 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
Last edited by rasat on Sun Mar 08, 2020 4:20 pm, edited 2 times in total.

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Autostart --> pulseaudio --start

#2 Post 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:

Code: Select all

sudo sysv-rc-conf
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.
mod note: Signature removed, please read the forum rules

User avatar
dolphin_oracle
Developer
Posts: 22646
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autostart --> pulseaudio --start

#3 Post by dolphin_oracle »

I don't usually supply support for those updating to bullseye...

but can you supply

Code: Select all

ls -l /etc/pulse/client.conf.d
and

Code: Select all

cat /etc/pulse/client.conf.d/*
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
rasat
Posts: 652
Joined: Tue Dec 19, 2017 12:19 pm

Re: Autostart --> pulseaudio --start

#4 Post 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.

User avatar
anticapitalista
Developer
Posts: 4314
Joined: Sat Jul 15, 2006 10:40 am

Re: Autostart --> pulseaudio --start (antiX)

#5 Post 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
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
Jerry3904
Administrator
Posts: 23450
Joined: Wed Jul 19, 2006 6:13 am

Re: Autostart --> pulseaudio --start (antiX)

#6 Post by Jerry3904 »

<Moved the topic.>
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Autostart --> pulseaudio --start

#7 Post 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

Code: Select all

Exec=start-pulseaudio-x11
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.
mod note: Signature removed, please read the forum rules

User avatar
dolphin_oracle
Developer
Posts: 22646
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autostart --> pulseaudio --start (antiX)

#8 Post 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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Autostart --> pulseaudio --start (antiX)

#9 Post 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.
mod note: Signature removed, please read the forum rules

User avatar
rasat
Posts: 652
Joined: Tue Dec 19, 2017 12:19 pm

Re: Autostart --> pulseaudio --start

#10 Post 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.

Post Reply

Return to “antiX”