[pulseaudio-discuss] module-alsa-sink device

Tadej Panjtar tadej.panjtar at gmail.com
Sat Mar 18 00:05:04 UTC 2017


Thanks!

Unfortunately I have two custom sinks, my system.pa contains:

load-module module-alsa-sink device="hw:0,0" sink_name="seat0"
load-module module-alsa-sink device="hw:2,7" sink_name="seat1"

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack
udev/hal support)
load-module module-detect
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix auth-anonymous=1

### Automatically restore the volume of streams and devices
load-module module-stream-restore
load-module module-device-restore

### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent
modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
-------------------------------------------------------------

If PA is started via command as root it works. But if same command
is run via systemd, happens Got signal SIGTERM.
Here is log.

mar 18 00:14:11 tadejas pulseaudio[8285]: Got org.pulseaudio.Server!
mar 18 00:14:11 tadejas pulseaudio[8285]: Daemon startup complete.
mar 18 00:14:11 tadejas pulseaudio[8285]: /dev/snd/controlC1 is accessible:
yes
mar 18 00:14:11 tadejas pulseaudio[8285]: Resuming all sinks and sources of
card alsa_card.pci-0000_01_00.1.
mar 18 00:14:11 tadejas pulseaudio[8285]: Created 0 "Native client (UNIX
socket client)"
mar 18 00:14:11 tadejas pulseaudio[8285]: Client authenticated anonymously.
mar 18 00:14:11 tadejas pulseaudio[8285]: Protocol version: remote 30,
local 30
mar 18 00:14:11 tadejas pulseaudio[8285]: SHM possible: no
mar 18 00:14:11 tadejas pulseaudio[8285]: Negotiated SHM: no
mar 18 00:14:11 tadejas pulseaudio[8285]: Disabling srbchannel, reason: No
SHM support
mar 18 00:14:11 tadejas pulseaudio[8285]: Got signal SIGTERM.
mar 18 00:14:11 tadejas pulseaudio[8285]: Exiting.
mar 18 00:14:11 tadejas pulseaudio[8285]: Daemon shutdown initiated.
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloading
"module-position-event-sounds" (index: #11).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloaded
"module-position-event-sounds" (index: #11).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloading
"module-suspend-on-idle" (index: #10).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloaded "module-suspend-on-idle"
(index: #10).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloading "module-always-sink"
(index: #9).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloaded "module-always-sink"
(index: #9).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloading "module-rescue-streams"
(index: #8).
mar 18 00:14:11 tadejas pulseaudio[8285]: Unloaded "module-rescue-streams"
(index: #8).

and here is service script:

# systemd service spec for pulseaudio running in system mode -- not
recommended though!
# put it under /etc/systemd/system/pulseaudio.service
# start with: systemctl start pulseaudio.service
# enable on boot: systemctl enable pulseaudio.service

[Unit]
Description=Plseaudio Service
After=network-online.target

[Service]
ExecStart=/usr/bin/pulseaudio -vvvv --system --disallow-exit
--disallow-module-loading
#ExecReload=/bin/kill -HUP $MAINPID
TimeoutSec=13

[Install]
WantedBy=multi-user.target

Best regards,
  Tadej



On Fri, Mar 17, 2017 at 3:16 AM, Arun Raghavan <arun at arunraghavan.net>
wrote:

> On Wed, 15 Mar 2017, at 12:27 PM, Tadej Panjtar wrote:
> > Hi!
> >
> > I Migrated from pulseaudio version 4.0 to 8.0 and the following command
> > does not work anymore:
> > load-module module-alsa-sink device="hw:2,7" sink_name=seat1
> >
> > E: [pulseaudio] module.c: Failed to load module "module-alsa-sink"
> > (argument: "device="hw:2,7" sink_name=seat1"): initialization failed.
> > E: [pulseaudio] main.c: Module load failed.
> >
> > What is wrong?
>
> You need to increase your pulseaudio debug level (or start it with
> -vvvv).
>
> -- Arun
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170318/651aadf5/attachment.html>


More information about the pulseaudio-discuss mailing list