How to launch pulseaudio on embedded system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 29/08/2014 09:44, David Henningsson a ?crit :
> On 2014-08-29 09:24, DIEHCO R&D wrote:
>> Le 29/08/2014 08:51, David Henningsson a ?crit :
>>> On 2014-08-27 15:18, DIEHCO R&D wrote:
>>>> Yes, pulseaudio is not running after that. See attached complete log.
>>>> E: [pulseaudio] shm.c: mmap() failed: Cannot allocate memory
>>>
>>> This is a libc / system call failing. "Cannot allocate memory" sounds
>>> a little vague, but it almost sounds like you don't have enough free
>>> memory. I wouldn't expect mmap to actually *commit* the memory at that
>>> point, but maybe I'm wrong.
>>>
>>> Could reducing the mempool size be an option here? How much (free)
>>> memory does your device have?
>> Top command give me : Mem: 16304K used, 43792K free, 0K shrd, 0K buff,
>> 5268K cached
>
> So just 64 MB in total? Maybe trying to allocate a 64 MB mempool is 
> not such a great idea then. Try modifying shm-size-bytes in deamon.conf.
Yes, 64 MB in total. I tried the value 32768 and PA reachs "Daemon 
startup complete." However pacmd list-cards give me "No PulseAudio 
daemon running, or not running as session daemon." whereas pulseaudio 
--system -vvvv is still running. Here is some logs (with original 
default.pa file).

(...)
*I: [pulseaudio] module-udev-detect.c: Found 0 cards.*
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #0; 
argument: "").
D: [pulseaudio] module.c: Checking for existence of 
'/usr/lib/pulse-5.0/modules/module-esound-protocol-unix.so': failure
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: 
#1; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database 
file '/var/lib/pulse/b58e603397a605bce66ca0af53f618c8-stream-volumes'.
D: [pulseaudio] protocol-dbus.c: Interface 
org.PulseAudio.Ext.StreamRestore1 added for object 
/org/pulseaudio/stream_restore1
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #2; 
argument: "").
I: [pulseaudio] module-device-restore.c: Successfully opened database 
file '/var/lib/pulse/b58e603397a605bce66ca0af53f618c8-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #3; 
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: 
#4; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #5; 
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 = "Dummy Output"
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 Dummy Output"
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: #7; 
argument: "sink_name=auto_null 
sink_properties='device.description="Dummy Output"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #6; 
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: #8; 
argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: 
#9; argument: "").
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus system bus 
6b3f2c934abcba95189661d05400266b as :1.16
D: [pulseaudio] main.c: Got org.pulseaudio.Server!
*I: [pulseaudio] main.c: Daemon startup complete.*
I: [pulseaudio] module-suspend-on-idle.c: Sink auto_null idle for too 
long, suspending ...
D: [pulseaudio] sink.c: Suspend cause of sink auto_null is 0x0004, 
suspending
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140829/e81c1419/attachment-0001.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux