1 Enable local playback with pipewire based distros (Arch Endevearous..)
LordMyschkin edited this page 2023-04-15 14:03:59 +02:00

Pipewire seems to be the future, it emulates Alsa and pulseaudio; setting it up to be used by owntone is easy if you know how.

First, copy the pulse-config to etc:

sudo cp /usr/share/pipewire/pipewire-pulse.conf /etc/pipewire

Then, open the copied file with write access:

sudo xed /etc/pipewire/pipewire-pulse.conf

and change the following lines by removing trailing # so that the blocks look like below

server.address = [   
    "unix:native"  
    #"unix:/tmp/something"              # absolute paths may be used  
    #"tcp:4713"                         # IPv4 and IPv6 on all addresses   
    #"tcp:[::]:9999"                    # IPv6 on all addresses  
    #"tcp:127.0.0.1:8888"               # IPv4 on a single address  
    #  
    { address = "tcp:4713"             # address  
      max-clients = 64                 # maximum number of clients  
      listen-backlog = 32              # backlog in the server listen queue  
      client.access = "restricted"     # permissions for clients  
    }  
]  

In /etc/onwtone.conf, edit output to pulseaudio

audio {  
type="pulseaudio"  
server = "localhost"   
#all other stuff here is ignored when using pulseaudio   
}   

Then just restart the pipewire-pulse service systemctl --user restart pipewire-pulse.service

and now, start owntone sudo systemctl start owntone.service

This should work.

There is a major drawback: You have to start owntone every time AFTER your pulseaudio-session started (by logging in).