You are not logged in.

#1 2015-08-24 14:50:12

kalsan
Member
Registered: 2011-10-10
Posts: 119

[solved] Cannot enable pulseaudio in systemd: not found

Hi there!
Maybe I've done too much computer today, but I'm unable to enable pulseaudio on boot:

$ sudo systemctl enable pulseaudio.socket
Failed to execute operation: No such file or directory

Any ideas?
Cheers,
Kalsan

Last edited by kalsan (2015-08-24 20:44:12)

Offline

#2 2015-08-24 15:00:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [solved] Cannot enable pulseaudio in systemd: not found

A) Do you know why you want to do this? If not, don't. Pulseaudio is usually autostarted by your DE/volume manager of choice and there are a few caveats when starting it explicitly with systemctl (it can't use the session dbus unless you set it up which breaks a few things like jack-dbus-detect and programs relying on dbus pulse detection).

B) pulseaudio is a user service, the correct way to start/enable it is using

systemctl --user enable/start pulseaudio.service/socket

Additional reading https://wiki.archlinux.org/index.php/Systemd/User

Last edited by V1del (2015-08-24 15:09:57)

Offline

#3 2015-08-24 20:43:06

kalsan
Member
Registered: 2011-10-10
Posts: 119

Re: [solved] Cannot enable pulseaudio in systemd: not found

Awesome, thanks a lot for thinking for me! :-)
Indeed, I thought the wrong way about pulse. I posted this thread because I disliked pulse firing up only at Skype's start, causing a configuration change. As I use i3, I chose my own commands for volume control and the commands are different when pulseaudio is running or not. Guess that shows my incompetence in this topic - I used the comfort of XFCE before and didn't care too much about things like that at the time, upgrading myself together with my system now :-)
The solution for me is to autostart pulseaudio --start together with i3 (using .i3/config file) and mapping the volume keys to amixer commands.
Thank you V1del!

Offline

#4 2015-08-24 20:54:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [solved] Cannot enable pulseaudio in systemd: not found

That usecase would probably be fine, and instructions on how to setup dbus session is in the page I linked, so you may still go this route if you wish. But if it works this way now that's neat too

Last edited by V1del (2015-08-24 20:54:35)

Offline

Board footer

Powered by FluxBB