The officially official Devuan Forum!

You are not logged in.

#1 2019-02-18 23:11:34

inukaze
Member
Registered: 2018-01-28
Posts: 84  

[100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

Hi there right now i am trying to start pulseaudio but i got this output

$ pulseaudio 
E: [pulseaudio] module-protocol-stub.c: Failed to parse module arguments
E: [pulseaudio] module.c: Failed to load module "module-esound-protocol-unix" 
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Fallo al intentar iniciar el demonio. 

well i had installed esound and roap from synaptic

but i commented the line :

load-module module-esound-protocol-unix

on the file -> /etc/pulse/default.pa

and try again :

$ pulseaudio 
E: [avahi-ml] module-zeroconf-publish.c: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.hostname1 was not provided by any .service files

Well on the "pavucontrol" i just got "dummy output"

well i don't have idea why i can't start pulseaudio

Last edited by inukaze (2019-03-03 09:08:36)

Offline

#2 2019-02-18 23:20:51

inukaze
Member
Registered: 2018-01-28
Posts: 84  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

well trying to solve it :

$ sudo gpasswd -a $USER audio

sudo apt-get purge -y paprefs pulseaudio-module-raop pulseaudio-module-zeroconf libcanberra-pulse* pulseaudio* pulseaudio-esound-compat* pulseaudio-module-gconf* pulseaudio-module-jack*

sudo rm -r /tmp/pulse-* /etc/pulse/client.conf ~/.esd_auth ~/.config/pulse

$ start-pulseaudio-x11 
Error en la conexión: Conexión negada
pa_context_connect() falló: Conexión negada

$ pulseaudio 
E: [pulseaudio] socket-server.c: bind(): La dirección ya se está usando
E: [pulseaudio] module.c: Failed to load module "module-esound-protocol-unix" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Fallo al intentar iniciar el demonio.

$ sudo nano /etc/pulse/default.pa #Commented the line -> load-module module-esound-protocol-unix

$ pulseaudio 
E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-zeroconf-publish.so: module-zeroconf-publish.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
E: [pulseaudio] module.c: Failed to open module "module-zeroconf-publish".
E: [pulseaudio] module-gconf.c: pa_module_load() failed
E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-zeroconf-discover.so: module-zeroconf-discover.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
E: [pulseaudio] module.c: Failed to open module "module-zeroconf-discover".
E: [pulseaudio] module-gconf.c: pa_module_load() failed
E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-raop-discover.so: module-raop-discover.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
E: [pulseaudio] module.c: Failed to open module "module-raop-discover".
E: [pulseaudio] module-gconf.c: pa_module_load() failed
E: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken.

$ sudo apt-get install -y pulseaudio-module-raop

$ pulseaudio 
E: [avahi-ml] module-zeroconf-publish.c: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.hostname1 was not provided by any .service files
E: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken.
$ sudo service avahi-daemon stop
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.

$ pulseaudio 
E: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken.
$ pulseaudio -vvv
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operación no permitida
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 10.0
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-ZMrhzG/pulseaudio-10.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-02)
D: [pulseaudio] main.c: Found 2 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 7ed0846550a954a18024d71d5a738d95.
I: [pulseaudio] main.c: Using runtime directory /home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-runtime.
I: [pulseaudio] main.c: Using state directory /home/inukaze/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-10.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: System supports high resolution timers
D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64,0 KiB each, total size is 64,0 MiB, maximum usable slot size is 65472
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 MMXEXT 3DNOW 3DNOWEXT 
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
D: [pulseaudio] database-tdb.c: Opened TDB database '/home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-device-volumes.tdb'
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: [pulseaudio] database-tdb.c: Opened TDB database '/home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-stream-volumes.tdb'
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-stream-volumes'.
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added for object /org/pulseaudio/stream_restore1
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1.RestoreEntry added for object /org/pulseaudio/stream_restore1/entry0
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: [pulseaudio] database-tdb.c: Opened TDB database '/home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-card-database.tdb'
I: [pulseaudio] module-card-restore.c: Successfully opened database file '/home/inukaze/.config/pulse/7ed0846550a954a18024d71d5a738d95-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-udev-detect.so': success
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes
D: [pulseaudio] module-udev-detect.c: /devices/pci0000:00/0000:00:04.0/0000:01:06.0/sound/card0 is busy: yes
I: [pulseaudio] module-udev-detect.c: Found 1 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #5; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-jackdbus-detect.so': success
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus session bus 973bc92532c3aa8b577497be5c6b36f2 as :1.157
D: [pulseaudio] module-jackdbus-detect.c: jackdbus isn't running.
I: [pulseaudio] module.c: Loaded "module-jackdbus-detect" (index: #6; argument: "channels=2").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-bluetooth-policy.so': failure
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-bluetooth-discover.so': failure
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-esound-protocol-unix.so': success
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-gconf.so': success
D: [pulseaudio] module-gconf.c: Loading module 'module-native-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: [pulseaudio] module.c: Loaded "module-native-protocol-tcp" (index: #9; argument: "auth-anonymous=1").
D: [pulseaudio] module-gconf.c: Loading module 'module-esound-protocol-tcp' with args 'auth-anonymous=1' due to GConf configuration.
I: [pulseaudio] module.c: Loaded "module-esound-protocol-tcp" (index: #10; argument: "auth-anonymous=1").
D: [pulseaudio] module-gconf.c: Loading module 'module-zeroconf-publish' with args '' due to GConf configuration.
I: [pulseaudio] module.c: Loaded "module-zeroconf-publish" (index: #11; argument: "").
D: [pulseaudio] module-gconf.c: Loading module 'module-zeroconf-discover' with args '' due to GConf configuration.
D: [avahi-ml] module-zeroconf-publish.c: Started Avahi threaded mainloop
I: [pulseaudio] module.c: Loaded "module-zeroconf-discover" (index: #12; argument: "").
D: [pulseaudio] module-gconf.c: Loading module 'module-raop-discover' with args '' due to GConf configuration.
I: [pulseaudio] module.c: Loaded "module-raop-discover" (index: #13; argument: "").
D: [pulseaudio] module-gconf.c: Loading module 'module-rtp-recv' with args '' due to GConf configuration.
I: [pulseaudio] module.c: Loaded "module-rtp-recv" (index: #14; argument: "").
I: [pulseaudio] module.c: Loaded "module-gconf" (index: #8; argument: "").
I: [pulseaudio] module-default-device-restore.c: Saved default sink 'auto_null' not existent, not restoring default sink setting.
I: [pulseaudio] module-default-device-restore.c: Saved default source 'auto_null.monitor' not existent, not restoring default source setting.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #15; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #16; argument: "").
D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     device.description = "Salida Boba"
I: [pulseaudio] sink.c:     device.class = "abstract"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Salida Boba"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
D: [null-sink] module-null-sink.c: Thread starting up
D: [pulseaudio] module-device-restore.c: Could not set format on sink auto_null
I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #18; argument: "sink_name=auto_null sink_properties='device.description="Salida Boba"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #17; argument: "").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #19; argument: "").
D: [pulseaudio] module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5 seconds.
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #20; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-console-kit.so': success
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus system bus 2f6cf63750b68a252471f41c5c6b36b3 as :1.155
I: [pulseaudio] client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
D: [pulseaudio] module-console-kit.c: Added new session /org/freedesktop/ConsoleKit/Session1
I: [pulseaudio] module.c: Loaded "module-console-kit" (index: #21; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-10.0/modules/module-systemd-login.so': success
I: [pulseaudio] module.c: Loaded "module-systemd-login" (index: #22; argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #23; argument: "").
D: [pulseaudio] stream-interaction.c: Using role 'phone' as trigger role.
D: [pulseaudio] stream-interaction.c: Using roles 'music' and 'video' as cork roles.
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #24; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #25; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #26; argument: "").
E: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken.
I: [pulseaudio] module.c: Unloading "module-filter-apply" (index: #26).
I: [pulseaudio] module.c: Unloaded "module-filter-apply" (index: #26).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-filter-heuristics" (index: #25).
I: [pulseaudio] module.c: Unloaded "module-filter-heuristics" (index: #25).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-role-cork" (index: #24).
I: [pulseaudio] module.c: Unloaded "module-role-cork" (index: #24).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-position-event-sounds" (index: #23).
I: [pulseaudio] module.c: Unloaded "module-position-event-sounds" (index: #23).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-systemd-login" (index: #22).
I: [pulseaudio] module.c: Unloaded "module-systemd-login" (index: #22).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-console-kit" (index: #21).
D: [pulseaudio] module-console-kit.c: Removing session /org/freedesktop/ConsoleKit/Session1
I: [pulseaudio] client.c: Freed 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloaded "module-console-kit" (index: #21).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-suspend-on-idle" (index: #20).
I: [pulseaudio] module.c: Unloaded "module-suspend-on-idle" (index: #20).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-intended-roles" (index: #19).
I: [pulseaudio] module.c: Unloaded "module-intended-roles" (index: #19).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-null-sink" (index: #18).
D: [pulseaudio] module-always-sink.c: Autoloaded null-sink removed
D: [pulseaudio] module-rescue-streams.c: No sink inputs to move away.
D: [pulseaudio] module-rescue-streams.c: No source outputs to move away.
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [null-sink] module-null-sink.c: Thread shutting down
I: [pulseaudio] sink.c: Freeing sink 0 "auto_null"
I: [pulseaudio] source.c: Freeing source 0 "auto_null.monitor"
I: [pulseaudio] module.c: Unloaded "module-null-sink" (index: #18).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-always-sink" (index: #17).
I: [pulseaudio] module.c: Unloaded "module-always-sink" (index: #17).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-rescue-streams" (index: #16).
I: [pulseaudio] module.c: Unloaded "module-rescue-streams" (index: #16).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-default-device-restore" (index: #15).
I: [pulseaudio] module.c: Unloaded "module-default-device-restore" (index: #15).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-rtp-recv" (index: #14).
I: [pulseaudio] module.c: Unloaded "module-rtp-recv" (index: #14).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-raop-discover" (index: #13).
I: [pulseaudio] module.c: Unloaded "module-raop-discover" (index: #13).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-zeroconf-discover" (index: #12).
I: [pulseaudio] module.c: Unloaded "module-zeroconf-discover" (index: #12).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-zeroconf-publish" (index: #11).
I: [pulseaudio] module.c: Unloaded "module-zeroconf-publish" (index: #11).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-esound-protocol-tcp" (index: #10).
I: [pulseaudio] module.c: Unloaded "module-esound-protocol-tcp" (index: #10).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-native-protocol-tcp" (index: #9).
I: [pulseaudio] module.c: Unloaded "module-native-protocol-tcp" (index: #9).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-gconf" (index: #8).
D: [pulseaudio] module-gconf.c: Unloading module #9
D: [pulseaudio] module-gconf.c: Unloading module #10
D: [pulseaudio] module-gconf.c: Unloading module #11
D: [pulseaudio] module-gconf.c: Unloading module #12
D: [pulseaudio] module-gconf.c: Unloading module #13
D: [pulseaudio] module-gconf.c: Unloading module #14
I: [pulseaudio] module.c: Unloaded "module-gconf" (index: #8).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-native-protocol-unix" (index: #7).
I: [pulseaudio] module.c: Unloaded "module-native-protocol-unix" (index: #7).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-jackdbus-detect" (index: #6).
I: [pulseaudio] module.c: Unloaded "module-jackdbus-detect" (index: #6).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-udev-detect" (index: #5).
I: [pulseaudio] module.c: Unloaded "module-udev-detect" (index: #5).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-switch-on-port-available" (index: #4).
I: [pulseaudio] module.c: Unloaded "module-switch-on-port-available" (index: #4).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-augment-properties" (index: #3).
I: [pulseaudio] module.c: Unloaded "module-augment-properties" (index: #3).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-card-restore" (index: #2).
I: [pulseaudio] module.c: Unloaded "module-card-restore" (index: #2).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-stream-restore" (index: #1).
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 removed from object /org/pulseaudio/stream_restore1
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1.RestoreEntry removed from object /org/pulseaudio/stream_restore1/entry0
I: [pulseaudio] module.c: Unloaded "module-stream-restore" (index: #1).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] module.c: Unloading "module-device-restore" (index: #0).
I: [pulseaudio] module.c: Unloaded "module-device-restore" (index: #0).
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
I: [pulseaudio] main.c: Daemon terminated.

Someone have an idea how i can fix it?

Last edited by inukaze (2019-02-18 23:57:30)

Offline

#3 2019-02-18 23:33:25

inukaze
Member
Registered: 2018-01-28
Posts: 84  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

i edited the default.pa (again)

sudo /etc/pulse/default.pa

i change the line from

load-module module-udev-detect

to :

load-module module-udev-detect tsched=0
$ killall -9 pulseaudio
$ start-pulseaudio-x11

Pavucontrol i just have "Dummy Output" not my sound card  ¬¬

Offline

#4 2019-02-19 01:50:25

inukaze
Member
Registered: 2018-01-28
Posts: 84  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

sudo su ; apt-get purge -y timidity* fluidsynth* ; apt-get clean ; apt-get autoremove
killall -9 pulseaudio
sudo rm -rf /tmp/pulse-* ~/.esd_auth ~/.config/pulse ~/.pulse ~/.pulse-cookie
sudo apt-get -y install paman paprefs pavucontrol pavumeter pulseaudio-module-zeroconf
sudo nano /etc/pulse/default.pa

and i go to the end and add this lines :

#Inukaze :
load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop
sudo nano /etc/modprobe.d/sound.conf

Content :

options snd-pcsp index=-2
alias snd-card-0 snd_ens1371
alias sound-slot-0 snd_ens1371
options snd_ens1371 model=3stack-6ch
options snd_ens1371 enable_msi=1
sudo rm -rf /etc/asound.conf $HOME/.asoundrc
sudo nano $HOME/.asoundrc

Content :

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
 
# Diviendo el sonido hacia las 4 Cornetas :
pcm.dshare {
    type dmix
    ipc_key 2048
    slave {
        pcm "hw:0"
        rate 44100
        period_time 0
        period_size 1024
        buffer_size 8192
        channels 4
    }
    bindings {
        0 0
        1 1
        2 2
        3 3
    }
}
pcm.frontx {
    type plug
    slave {
        pcm "dshare"
        channels 4
    }
    ttable.0.0 1
    ttable.1.1 1
}
pcm.rearx {
    type plug
    slave {
        pcm "dshare"
        channels 4
    }
    ttable.0.2 1
    ttable.1.3 1
}

Execute commands :

pax11publish
pulseaudio -D

Well right now the name of sound card appears on pavucontrol, but not appear any card on configuration, i think i must restart first

Pulseaudio.png

Well i had restart, and no make diferences. but now is working, but don't show any card on configuration tab

i dont know why this outputs :

pacmd list-cards
0 card(s) available.

pacmd list-sinks
1 sink(s) available.
  * index: 1
	name: <alsa_output.dmix>
	driver: <module-alsa-sink.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9050
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 1
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Estéreo
	used by: 0
	linked by: 0
	configured latency: 0,00 ms; range is 0,50 .. 341,33 ms
	module: 24
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ES1371 DAC2/ADC"
		alsa.id = "ES1371/1"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "Ensoniq AudioPCI"
		alsa.long_card_name = "Ensoniq AudioPCI ENS1371 at 0xdc00, irq 19"
		alsa.driver_name = "snd_ens1371"
		device.bus_path = "pci-0000:01:06.0"
		sysfs.path = "/devices/pci0000:00/0000:00:04.0/0000:01:06.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1274"
		device.vendor.name = "Ensoniq"
		device.product.id = "1371"
		device.product.name = "ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI])"
		device.string = "dmix"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "4096"
		device.access_mode = "mmap+timer"
		device.description = "ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI])"
		device.icon_name = "audio-card-pci"

pacmd list-sink-inputs
0 sink input(s) available.

Someone had idea how i can fix this problems :

pulseaudio --kill ; pulseaudio
E: [pulseaudio] socket-server.c: socket(PF_INET6): Esta familia de direcciones no está soportada por el protocolo

E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-esound-protocol-tcp.so: module-esound-protocol-tcp.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

E: [pulseaudio] module.c: Failed to open module "module-esound-protocol-tcp".

E: [pulseaudio] module-gconf.c: pa_module_load() failed

E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-raop-discover.so: module-raop-discover.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

E: [pulseaudio] module.c: Failed to open module "module-raop-discover".

E: [pulseaudio] module-gconf.c: pa_module_load() failed

E: [avahi-ml] module-zeroconf-publish.c: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.hostname1 was not provided by any .service files

Last edited by inukaze (2019-03-03 00:45:18)

Offline

#5 2019-03-03 00:24:47

inukaze
Member
Registered: 2018-01-28
Posts: 84  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

In Resume i finish with this files and configurations :

1) Purge old files, and install just the packages i need

sudo apt-get purge -y paprefs pulseaudio-module-raop pulseaudio-module-zeroconf libcanberra-pulse* pulseaudio* pulseaudio-esound-compat* pulseaudio-module-gconf* pulseaudio-module-jack*

sudo rm -rf /tmp/pulse-* /etc/pulse ~/.esd_auth ~/.config/pulse /etc/asound.conf

sudo apt-get update ; sudo apt-get install -y libpulse-dev libpulse-mainloop-glib0 libpulse0 libpulse0:i386 libpulsedsp pulseaudio pulseaudio-equalizer pulseaudio-utils pavucontrol paman pavumeter pasystray

2) Configure with gconftool-2 :

gconftool-2 -t string --set /system/gstreamer/0.10/default/audiosink pulsesink
gconftool-2 -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc
gconftool-2 -t string --set /system/gstreamer/0.10/default/musicaudiosink pulsesink

3) Files with content
content of -> /etc/modprobe.d/sound.conf

alias snd-card-0 snd_ens1371
alias sound-slot-0 snd_ens1371
alias snd-card-1 snd-aloop
alias snd-card-2 snd-hdsp
options snd-aloop index=1 pcm_substreams=2
options snd_ens1371 model=3stack-6ch
options snd_ens1371 enable_msi=1
options snd_ens1371 index=0
options snd-pcsp index=-2
options snd-hdsp index=2

content of -> /etc/openal/alsoft.conf

# OpenAL config file.
#
# Option blocks may appear multiple times, and duplicated options will take the
# last value specified. Environment variables may be specified within option
# values, and are automatically substituted when the config file is loaded.
# Environment variable names may only contain alpha-numeric characters (a-z,
# A-Z, 0-9) and underscores (_), and are prefixed with $. For example,
# specifying "$HOME/file.ext" would typically result in something like
# "/home/user/file.ext". To specify an actual "$" character, use "$$".
#
# Device-specific values may be specified by including the device name in the
# block name, with "general" replaced by the device name. That is, general
# options for the device "Name of Device" would be in the [Name of Device]
# block, while ALSA options would be in the [alsa/Name of Device] block.
# Options marked as "(global)" are not influenced by the device.
#
# The system-wide settings can be put in /etc/openal/alsoft.conf and user-
# specific override settings in $HOME/.alsoftrc.
# For Windows, these settings should go into $AppData\alsoft.ini
#
# Option and block names are case-senstive. The supplied values are only hints
# and may not be honored (though generally it'll try to get as close as
# possible). Note: options that are left unset may default to app- or system-
# specified values. These are the current available settings:

##
## General stuff
##
[general]

## disable-cpu-exts: (global)
#  Disables use of specialized methods that use specific CPU intrinsics.
#  Certain methods may utilize CPU extensions for improved performance, and
#  this option is useful for preventing some or all of those methods from being
#  used. The available extensions are: sse, sse2, sse3, sse4.1, and neon.
#  Specifying 'all' disables use of all such specialized methods.
#disable-cpu-exts =

## drivers: (global)
#  Sets the backend driver list order, comma-seperated. Unknown backends and
#  duplicated names are ignored. Unlisted backends won't be considered for use
#  unless the list is ended with a comma (e.g. 'oss,' will try OSS first before
#  other backends, while 'oss' will try OSS only). Backends prepended with -
#  won't be considered for use (e.g. '-oss,' will try all available backends
#  except OSS). An empty list means to try all backends.
#drivers =
drivers=pulse,alsa

## channels:
#  Sets the output channel configuration. If left unspecified, one will try to
#  be detected from the system, and defaulting to stereo. The available values
#  are: mono, stereo, quad, surround51, surround51rear, surround61, surround71
#channels =

## sample-type:
#  Sets the output sample type. Currently, all mixing is done with 32-bit float
#  and converted to the output sample type as needed. Available values are:
#  int8    - signed 8-bit int
#  uint8   - unsigned 8-bit int
#  int16   - signed 16-bit int
#  uint16  - unsigned 16-bit int
#  int32   - signed 32-bit int
#  uint32  - unsigned 32-bit int
#  float32 - 32-bit float
#sample-type = float32

## frequency:
#  Sets the output frequency. If left unspecified it will try to detect a
#  default from the system, otherwise it will default to 44100.
#frequency =

## period_size:
#  Sets the update period size, in frames. This is the number of frames needed
#  for each mixing update. Acceptable values range between 64 and 8192.
#period_size = 1024

## periods:
#  Sets the number of update periods. Higher values create a larger mix ahead,
#  which helps protect against skips when the CPU is under load, but increases
#  the delay between a sound getting mixed and being heard. Acceptable values
#  range between 2 and 16.
#periods = 4

## stereo-mode:
#  Specifies if stereo output is treated as being headphones or speakers. With
#  headphones, HRTF or crossfeed filters may be used for better audio quality.
#  Valid settings are auto, speakers, and headphones.
#stereo-mode = auto

## hrtf:
#  Controls HRTF processing. These filters provide better spatialization of
#  sounds while using headphones, but do require a bit more CPU power. The
#  default filters will only work with 44100hz or 48000hz stereo output. While
#  HRTF is used, the cf_level option is ignored. Setting this to auto (default)
#  will allow HRTF to be used when headphones are detected or the app requests
#  it, while setting true or false will forcefully enable or disable HRTF
#  respectively.
#hrtf = auto

## hrtf_tables:
#  Specifies a comma-separated list of files containing HRTF data sets. The
#  format of the files are described in hrtf.txt. The filenames may contain
#  these markers, which will be replaced as needed:
#  %r - Device sampling rate
#  %s - Non-greedy string (up to the following matching characters)
#  %% - Percent sign (%)
#  The listed files are relative to system-dependant data directories. On
#  Windows this is:
#  $AppData\openal\hrtf
#  And on other systems, it's (in order):
#  $XDG_DATA_HOME/openal/hrtf  (defaults to $HOME/.local/share/openal/hrtf)
#  $XDG_DATA_DIRS/openal/hrtf  (defaults to /usr/local/share/openal/hrtf and
#                               /usr/share/openal/hrtf)
#  An absolute path may also be specified, if the given file is elsewhere.
#hrtf_tables = %s.mhr

## cf_level:
#  Sets the crossfeed level for stereo output. Valid values are:
#  0 - No crossfeed
#  1 - Low crossfeed
#  2 - Middle crossfeed
#  3 - High crossfeed (virtual speakers are closer to itself)
#  4 - Low easy crossfeed
#  5 - Middle easy crossfeed
#  6 - High easy crossfeed
#  Users of headphones may want to try various settings. Has no effect on non-
#  stereo modes.
#cf_level = 0

## resampler: (global)
#  Selects the resampler used when mixing sources. Valid values are:
#  point - nearest sample, no interpolation
#  linear - extrapolates samples using a linear slope between samples
#  sinc4 - extrapolates samples using a 4-point Sinc filter
#  sinc8 - extrapolates samples using an 8-point Sinc filter
#  bsinc - extrapolates samples using a band-limited Sinc filter (varying
#          between 12 and 24 points, with anti-aliasing)
#  Specifying other values will result in using the default (linear).
#resampler = linear

## rt-prio: (global)
#  Sets real-time priority for the mixing thread. Not all drivers may use this
#  (eg. PortAudio) as they already control the priority of the mixing thread.
#  0 and negative values will disable it. Note that this may constitute a
#  security risk since a real-time priority thread can indefinitely block
#  normal-priority threads if it fails to wait. As such, the default is
#  disabled.
#rt-prio = 0

## sources:
#  Sets the maximum number of allocatable sources. Lower values may help for
#  systems with apps that try to play more sounds than the CPU can handle.
#sources = 256

## slots:
#  Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
#  can use a non-negligible amount of CPU time if an effect is set on it even
#  if no sources are feeding it, so this may help when apps use more than the
#  system can handle.
#slots = 4

## sends:
#  Sets the number of auxiliary sends per source. When not specified (default),
#  it allows the app to request how many it wants. The maximum value currently
#  possible is 4.
#sends =

## excludefx: (global)
#  Sets which effects to exclude, preventing apps from using them. This can
#  help for apps that try to use effects which are too CPU intensive for the
#  system to handle. Available effects are: eaxreverb,reverb,chorus,compressor,
#  distortion,echo,equalizer,flanger,modulator,dedicated
#excludefx =

## default-reverb: (global)
#  A reverb preset that applies by default to all sources on send 0
#  (applications that set their own slots on send 0 will override this).
#  Available presets are: None, Generic, PaddedCell, Room, Bathroom,
#  Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
#  CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
#  Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
#default-reverb =

## trap-alc-error: (global)
#  Generates a SIGTRAP signal when an ALC device error is generated, on systems
#  that support it. This helps when debugging, while trying to find the cause
#  of a device error. On Windows, a breakpoint exception is generated.
#trap-alc-error = false

## trap-al-error: (global)
#  Generates a SIGTRAP signal when an AL context error is generated, on systems
#  that support it. This helps when debugging, while trying to find the cause
#  of a context error. On Windows, a breakpoint exception is generated.
#trap-al-error = false

##
## Reverb effect stuff (includes EAX reverb)
##
[reverb]

## boost: (global)
#  A global amplification for reverb output, expressed in decibels. The value
#  is logarithmic, so +6 will be a scale of (approximately) 2x, +12 will be a
#  scale of 4x, etc. Similarly, -6 will be about half, and -12 about 1/4th. A
#  value of 0 means no change.
#boost = 0

## emulate-eax: (global)
#  Allows the standard reverb effect to be used in place of EAX reverb. EAX
#  reverb processing is a bit more CPU intensive than standard, so this option
#  allows a simpler effect to be used at the loss of some quality.
#emulate-eax = false

##
## PulseAudio backend stuff
##
[pulse]

## spawn-server: (global)
#  Attempts to autospawn a PulseAudio server whenever needed (initializing the
#  backend, enumerating devices, etc). Setting autospawn to false in Pulse's
#  client.conf will still prevent autospawning even if this is set to true.
#spawn-server = true

## allow-moves: (global)
#  Allows PulseAudio to move active streams to different devices. Note that the
#  device specifier (seen by applications) will not be updated when this
#  occurs, and neither will the AL device configuration (sample rate, format,
#  etc).
#allow-moves = false

## fix-rate:
#  Specifies whether to match the playback stream's sample rate to the device's
#  sample rate. Enabling this forces OpenAL Soft to mix sources and effects
#  directly to the actual output rate, avoiding a second resample pass by the
#  PulseAudio server.
#fix-rate = false

##
## ALSA backend stuff
##
[alsa]

## device: (global)
#  Sets the device name for the default playback device.
#device = default

## device-prefix: (global)
#  Sets the prefix used by the discovered (non-default) playback devices. This
#  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
#  device index for the requested device name.
#device-prefix = plughw:

## device-prefix-*: (global)
#  Card- and device-specific prefixes may be used to override the device-prefix
#  option. The option may specify the card id (eg, device-prefix-NVidia), or
#  the card id and device index (eg, device-prefix-NVidia-0). The card id is
#  case-sensitive.
#device-prefix- =

## capture: (global)
#  Sets the device name for the default capture device.
#capture = default

## capture-prefix: (global)
#  Sets the prefix used by the discovered (non-default) capture devices. This
#  will be appended with "CARD=c,DEV=d", where c is the card id and d is the
#  device number for the requested device name.
#capture-prefix = plughw:

## capture-prefix-*: (global)
#  Card- and device-specific prefixes may be used to override the
#  capture-prefix option. The option may specify the card id (eg,
#  capture-prefix-NVidia), or the card id and device index (eg,
#  capture-prefix-NVidia-0). The card id is case-sensitive.
#capture-prefix- =

## mmap:
#  Sets whether to try using mmap mode (helps reduce latencies and CPU
#  consumption). If mmap isn't available, it will automatically fall back to
#  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
#  and anything else will force mmap off.
#mmap = true

## allow-resampler:
#  Specifies whether to allow ALSA's built-in resampler. Enabling this will
#  allow the playback device to be set to a different sample rate than the
#  actual output, causing ALSA to apply its own resampling pass after OpenAL
#  Soft resamples and mixes the sources and effects for output.
#allow-resampler = false

##
## OSS backend stuff
##
[oss]

## device: (global)
#  Sets the device name for OSS output.
#device = /dev/dsp

## capture: (global)
#  Sets the device name for OSS capture.
#capture = /dev/dsp

##
## Solaris backend stuff
##
[solaris]

## device: (global)
#  Sets the device name for Solaris output.
#device = /dev/audio

##
## QSA backend stuff
##
[qsa]

##
## JACK backend stuff
##
[jack]

## spawn-server: (global)
#  Attempts to autospawn a JACK server whenever needed (initializing the
#  backend, opening devices, etc).
#spawn-server = false

## buffer-size:
#  Sets the update buffer size, in samples, that the backend will keep buffered
#  to handle the server's real-time processing requests. This value must be a
#  power of 2, or else it will be rounded up to the next power of 2. If it is
#  less than JACK's buffer update size, it will be clamped. This option may
#  be useful in case the server's update size is too small and doesn't give the
#  mixer time to keep enough audio available for the processing requests.
#buffer-size = 0

##
## MMDevApi backend stuff
##
[mmdevapi]

##
## DirectSound backend stuff
##
[dsound]

##
## Windows Multimedia backend stuff
##
[winmm]

##
## PortAudio backend stuff
##
[port]

## device: (global)
#  Sets the device index for output. Negative values will use the default as
#  given by PortAudio itself.
#device = -1

## capture: (global)
#  Sets the device index for capture. Negative values will use the default as
#  given by PortAudio itself.
#capture = -1

##
## Wave File Writer stuff
##
[wave]

## file: (global)
#  Sets the filename of the wave file to write to. An empty name prevents the
#  backend from opening, even when explicitly requested.
#  THIS WILL OVERWRITE EXISTING FILES WITHOUT QUESTION!
#file =

## bformat: (global)
#  Creates AMB format files using first-order ambisonics instead of a standard
#  single- or multi-channel .wav file.
#bformat = false

content of -> /etc/libao.conf :

default_driver=pulse,alsa
quiet

content of -> /etc/hosts.allow :

# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5) and hosts_options(5).
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
pulseaudio-native: ALL

content of -> /etc/pulse/daemon.conf

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

; resample-method = speex-float-1
; enable-remixing = yes
; enable-lfe-remixing = no
; lfe-crossover-freq = 0

 flat-volumes = no

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

; default-sample-format = s16le
 default-sample-rate = 48000
 alternate-sample-rate = 44100
; default-sample-channels = 2
; default-channel-map = front-left,front-right

 default-fragments = 8
 default-fragment-size-msec = 5

; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0

content of file -> /etc/pulse/default.pa

#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

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

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

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

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

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

### Honour intended role device property
load-module module-intended-roles

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

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
#set-default-sink output
#set-default-source input

load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop

content of file -> "~/.asoundrc"

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
 
# Diviendo el sonido hacia las 4 Cornetas :
pcm.dshare {
    type dmix
    ipc_key 2048
    slave {
        pcm "hw:0"
        rate 44100
        period_time 0
        period_size 1024
        buffer_size 8192
        channels 4
    }
    bindings {
        0 0
        1 1
        2 2
        3 3
    }
}
pcm.frontx {
    type plug
    slave {
        pcm "dshare"
        channels 4
    }
    ttable.0.0 1
    ttable.1.1 1
}
pcm.rearx {
    type plug
    slave {
        pcm "dshare"
        channels 4
    }
    ttable.0.2 1
    ttable.1.3 1
}

4) checking if another applications are using the sound card, kill pulseaudio and start it :

fuser -v /dev/snd/*

Output :

                     USER        PID ACCESS COMMAND
/dev/snd/pcmC0D0p:   inukaze   27390 F...m pnmixer
/dev/snd/seq:        inukaze   27601 f.... fluidsynth

now finish/kill the process and delete conflictive files:

killall -9 pnmixer fluidsynth pulseaudio
rm -rf ~/.pulse*
sudo rm -rf /tmp/pulse*

re/start the services and applications :

sudo service avahi-daemon restart
pax11publish
start-pulseaudio-x11

Last edited by inukaze (2019-03-03 00:28:52)

Offline

#6 2019-03-03 09:07:53

inukaze
Member
Registered: 2018-01-28
Posts: 84  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

after of the before i decide just delete some files and copy the files i need from Slackware64

rm -rf ~/.asoundrc
sudo rm -rf /etc/pulse/*

i change the follow because applications like "wine 1.6.2" search for ALSA and not by PulseAudio.

Note : When applications like wine 1.6.2 search by alsa. search for PCM Named "Master" name of device hw:0,0 . and had a serius bug
because some specific games, had issue with this for example BloodRayne 1 on my pc don't work with any other version of Wine
and if don't found alsa, can't never start the movies [i had fixed the MPEG-1 error, Wine BUG 9127] when you use alsa, don't had any problem, but if you use PulseAudio, the intro logo video don't had sound, and after play, the game crash because can't start the GPU. and this thing just happend when PulseAudio is using instead Alsa.

content of -> /etc/asound.conf

# Make it possible for ALSA forward to pulseaudio.
# Based on idea from
# http://alsa.opensrc.org/index.php/Default_device_from_environment_variable
# A related note is in
# http://wiki.archlinux.org/index.php/Pulseaudio#KDE_4
#
# See also
# http://wiki.archlinux.org/index.php/Allowing_Multiple_Programs_to_Play_Sound
# and <URL: http://bugs.debian.org/604728 >.

pcm.!default {
        type plug
        slave.pcm "dmixer"
}

pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:1,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

ctl.dmixer {
        type hw
        card 0
}

ctl.!default {
    type pulse
}

pcm.pulse { type pulse }
ctl.pulse { type pulse }

content of -> /etc/pulse/client.conf

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; default-sink =
; default-source =
; default-server =
; default-dbus-server =

  autospawn = yes
; allow-autospawn-for-root = yes
; daemon-binary = /usr/bin/pulseaudio
; extra-arguments = --log-target=syslog

; cookie-file =

; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB

; auto-connect-localhost = no
; auto-connect-display = no

content of -> /etc/pulse/daemon.conf

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

; resample-method = speex-float-1
; enable-remixing = yes
; enable-lfe-remixing = no
; lfe-crossover-freq = 0

  flat-volumes = no

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

; default-sample-format = s16le
  default-sample-rate = 44100
  alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

  default-fragments = 8
  default-fragment-size-msec = 25

; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0

content of -> /etc/pulse/default.pa

#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

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

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### 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 support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

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

### Honour intended role device property
load-module module-intended-roles

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

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
#set-default-sink output
#set-default-source input

content of file -> /etc/pulse/system.pa

#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started in system
# mode.

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

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

### Enable positioned event sounds
load-module module-position-event-sounds

Creating a folder and file don't exist on Devuan:

mkdir -p /etc/dbus-1/system.d

content of -> /etc/dbus-1/system.d/pulseaudio-system.conf

<?xml version="1.0"?><!--*-nxml-*-->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<!--
This file is part of PulseAudio.

PulseAudio is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

PulseAudio is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
-->

<busconfig>

  <!-- System-wide PulseAudio runs as 'pulse' user. This fragment is
       not necessary for user PulseAudio instances. -->

  <policy user="pulse">
    <allow own="org.pulseaudio.Server"/>
  </policy>

</busconfig>

and just with this last i solved 100% pulseaudio working on my Devuan
Pulse-Audio-Devuan.png

Well the most problematics software for me are :
1) SystemD -> The theme are very debated on internet xD
2) PulseAudio -> Well you see in this post
3) Avahi -> This thing can became my booting process and network connection on slowpoke

this 3 things can be a pain and waste of time trying to solve it.

Last edited by inukaze (2019-03-04 17:33:49)

Offline

#7 2021-02-26 21:15:38

mclien
Member
Registered: 2020-02-29
Posts: 105  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

I have pulseaudio Problems on Devuan too.
So just to get it right: Just by creating these dir/file:

/etc/dbus-1/system.d/pulseaudio-system.conf

you were able to solve the pulseaudio problem? All the other config changing above are unneccessary?

Offline

#8 2021-02-26 21:19:16

golinux
Administrator
Registered: 2016-11-25
Posts: 3,318  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

It's always a good idea to read the Release Notes:
https://files.devuan.org/devuan_beowulf … _notes.txt

Offline

#9 2021-02-26 21:42:20

mclien
Member
Registered: 2020-02-29
Posts: 105  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

Indeed it is.
Sorry for being ignorant.

Offline

#10 2021-02-27 01:18:06

Ron
Member
Registered: 2018-04-22
Posts: 527  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

Pulseaudio is installed and used in Devuan 3.x?

Offline

#11 2021-02-27 09:43:51

mclien
Member
Registered: 2020-02-29
Posts: 105  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

For me that is a Yes.
Needed the hint to release notes, but that's because I generally do my installs like this:
Install a minimal system and than all the things I want. Which for me is Fluxbox as WM, which needs the adjustment to pulseaudio mentioned in the release notes.

Offline

#12 2021-02-27 17:33:07

Ron
Member
Registered: 2018-04-22
Posts: 527  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

If that is the case, then this is somewhat of an issue with me. It would be nice if Devuan totally broke free from Debian but it doesn't seem like they have enough developers to do this.

Offline

#13 2021-02-27 19:36:48

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,487  

Re: [100% SOLVED] Pulseaudio - I can't start it [100% SOLVED]

Ron wrote:

Pulseaudio is installed and used in Devuan 3.x?

Only if you install it. If you don't want it, then either don't install it or remove it or use a derivative distro that doesn't include it.

Pulseaudio comes in if you install the full desktop with the task-* packages. It's easier to customize the desktop package selection if you install individual packages instead of metapackages.

Offline

Board footer