Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Testing - Trixie]How to automatically start pulseaudio.service

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
User avatar
PsychoHermit
Posts: 68
Joined: 2022-08-16 04:17
Location: Carson City, Nv
Has thanked: 6 times
Been thanked: 2 times

[Testing - Trixie]How to automatically start pulseaudio.service

#1 Post by PsychoHermit »

Greetings folks,

I want to automatically start the pulseaudio service.

What I have done:

created sound.sh

Code: Select all

 #!/bin/bash
 
 systemctl --user restart pulseaudio.service
created lib/systemd/system/sound.service

Code: Select all

[Unit]
After=network.service

[Service]
ExecStart=/usr/local/bin/sound.sh

[Install]
WantedBy=default.target
But it doesn't work, any ideas how to accomplish automating it would be much appreciated.

Thanks in advance,
--glenn
Last edited by PsychoHermit on 2024-01-09 13:51, edited 2 times in total.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1412
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: [Testing - Bookworm] How to automatically start pulseaudio.service

#2 Post by None1975 »

Hello.

Pulse audio uses socket activation, which means Pulseaudio will start automatically when an application tries to use it. PulseAudio on Debian has

Code: Select all

pulseaudio.socket 
enabled by default for the systemd/User instance. This means that PulseAudio will automatically start when needed.

Also check this:
https://www.freedesktop.org/wiki/Softwa ... r/Running/
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
PsychoHermit
Posts: 68
Joined: 2022-08-16 04:17
Location: Carson City, Nv
Has thanked: 6 times
Been thanked: 2 times

Re: [Testing - Bookworm] How to automatically start pulseaudio.service

#3 Post by PsychoHermit »

It's not starting automatically when I open rhythmbox. Good info in the link you provided, thank you. I'm having a hard time trying to set it to autostart.

Thanks,
--glenn

Post Reply