Hi Josu,<div><br></div><div>I think you are experiencing the same problem as I had. As far as I can understand it, the command doesn't work when the card is being used, thats why I moved the command to /etc/rc.local. That way the command will be run on startup BEFORE the mythfrontend is started. It worked for me at least.</div>
<div><br></div><div>I just added : <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> echo 32768 > /proc/asound/card1/pcm7p/sub0/</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">prealloc to my rc.local ABOVE the exit 0 statement.</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Regards,</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Andréas</span></div>
<div><br><br><div class="gmail_quote">2013/1/6 Josu Lazkano <span dir="ltr"><<a href="mailto:josu.lazkano@gmail.com" target="_blank">josu.lazkano@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013/1/6 Andréas Kühne <<a href="mailto:andreas@kuhne.se">andreas@kuhne.se</a>>:<br>
<div><div class="h5">> Thanks Igor,<br>
><br>
> I move the setting to /etc/rc.local (which is always run after startup) and<br>
> now it is set to the max value, just as yours is.<br>
><br>
> // Andréas<br>
><br>
><br>
> 2013/1/5 Igor Cicimov <<a href="mailto:icicimov@gmail.com">icicimov@gmail.com</a>><br>
>><br>
>><br>
>> On Sun, Jan 6, 2013 at 9:44 AM, Andréas Kühne <<a href="mailto:andreas@kuhne.se">andreas@kuhne.se</a>> wrote:<br>
>>><br>
>>> I checked now again.<br>
>>><br>
>>> I tried to set the max value (as you indicated below), but after setting<br>
>>> the value and then trying to read the value again, it doesn't work. The<br>
>>> default value is reset.<br>
>>><br>
>>> I am also using Mythbuntu (version 12.04, myth 0.26)<br>
>>><br>
>>> // Andréas<br>
>>><br>
>><br>
>> This is what mine is set to atm:<br>
>><br>
>> igorc@mythtv:~$ cat /proc/asound/card1/pcm3p/sub0/prealloc<br>
>> 32768<br>
>><br>
>> This is mine startup script, sorry I was wrong it is not set in the user<br>
>> login but as system init script:<br>
>><br>
>> igorc@mythtv:~$ cat /etc/init.d/sound_card_buffer_prealloc<br>
>> #!/bin/bash<br>
>><br>
>> [ -f /proc/asound/card1/pcm3p/sub0/prealloc ] && echo 32768 ><br>
>> /proc/asound/card1/pcm3p/sub0/prealloc<br>
>> [ -f /proc/asound/card0/pcm3p/sub0/prealloc ] && echo 32768 ><br>
>> /proc/asound/card0/pcm3p/sub0/prealloc<br>
>> [ -f /proc/asound/card2/pcm3p/sub0/prealloc ] && echo 32768 ><br>
>> /proc/asound/card2/pcm3p/sub0/prealloc<br>
>><br>
>> I have to check for 3 devices since ALSA constantly changes my device<br>
>> order (still no idea why).<br>
>><br>
>> This is the structure and permissions on my sound directory:<br>
>><br>
>> igorc@mythtv:~$ ls -l /proc/asound/<br>
>> total 0<br>
>> dr-xr-xr-x 7 root root 0 Jan 6 09:51 card0<br>
>> dr-xr-xr-x 3 root root 0 Jan 6 09:51 card1<br>
>> dr-xr-xr-x 3 root root 0 Jan 6 09:51 card2<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 cards<br>
>> lrwxrwxrwx 1 root root 5 Jan 6 09:51 CX8811 -> card2<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 devices<br>
>> lrwxrwxrwx 1 root root 5 Jan 6 09:51 Generic -> card1<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 hwdep<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 modules<br>
>> dr-xr-xr-x 2 root root 0 Jan 6 09:51 oss<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 pcm<br>
>> lrwxrwxrwx 1 root root 5 Jan 6 09:51 SB -> card0<br>
>> dr-xr-xr-x 2 root root 0 Jan 6 09:51 seq<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 timers<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 version<br>
>> igorc@mythtv:~$ ls -l /proc/asound/card1<br>
>> total 0<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 codec#0<br>
>> -rw-r--r-- 1 root root 0 Jan 6 09:51 eld#0.0<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:51 id<br>
>> dr-xr-xr-x 3 root root 0 Jan 6 09:51 pcm3p<br>
>> igorc@mythtv:~$ ls -l /proc/asound/card1/pcm3p/<br>
>> total 0<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:52 info<br>
>> dr-xr-xr-x 2 root root 0 Jan 6 09:52 sub0<br>
>> igorc@mythtv:~$ ls -l /proc/asound/card1/pcm3p/sub0/<br>
>> total 0<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:52 hw_params<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:52 info<br>
>> -rw-r--r-- 1 root root 0 Jan 6 09:52 prealloc<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:52 prealloc_max<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:52 status<br>
>> -r--r--r-- 1 root root 0 Jan 6 09:52 sw_params<br>
>><br>
>> I'm using the HDMI output to Sony 32" HD TV, card1 device3.<br>
>><br>
>><br>
>>><br>
>>> 2013/1/5 Igor Cicimov <<a href="mailto:icicimov@gmail.com">icicimov@gmail.com</a>><br>
>>>><br>
>>>> On Sun, Jan 6, 2013 at 9:20 AM, Andréas Kühne <<a href="mailto:andreas@kuhne.se">andreas@kuhne.se</a>> wrote:<br>
>>>>><br>
>>>>> I have tried setting the following as well, however the setting never<br>
>>>>> changes. Also, how would I set it so that the change is permanent after each<br>
>>>>> restart?<br>
>>>>><br>
>>>>> Regards,<br>
>>>>><br>
>>>>> Andréas<br>
>>>>><br>
>>>><br>
>>>> Hmmm works for me in Mythbuntu. I have it in startup script after ALSA<br>
>>>> gets initiated and the mythtv user gets auto logged in. I set it to 32768<br>
>>>> though which is the max value for my device (found in<br>
>>>> /proc/asound/card0/pcm0p/sub0/max_prealloc file)<br>
>>>><br>
>>>>><br>
>>>>> 2013/1/5 Igor Cicimov <<a href="mailto:icicimov@gmail.com">icicimov@gmail.com</a>><br>
>>>>>><br>
>>>>>> On Sun, Jan 6, 2013 at 8:47 AM, Igor Cicimov <<a href="mailto:icicimov@gmail.com">icicimov@gmail.com</a>><br>
>>>>>> wrote:<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On 06/01/2013 7:51 AM, "Stephen Robertson"<br>
>>>>>>> <<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>> wrote:<br>
>>>>>>> ><br>
>>>>>>> > Hi all,<br>
>>>>>>> ><br>
>>>>>>> > I'm getting this error when watching live TV. I don't think I ever<br>
>>>>>>> > see this watching recorded or in progress recordings.<br>
>>>>>>> ><br>
>>>>>>> > I've searched the archives and found references to this but they<br>
>>>>>>> > seem<br>
>>>>>>> > to be from some time ago so I'm not sure whether this is a known<br>
>>>>>>> > problem or whether it was thought to be fixed.<br>
>>>>>>> ><br>
>>>>>>> > As far as I can tell it seems to happen a few minutes after the<br>
>>>>>>> > program has changed (Not the channel, this happens with no user<br>
>>>>>>> > action).<br>
>>>>>>> ><br>
>>>>>>> > This is on a standalone FE connected via gigabit ethernet<br>
>>>>>>> ><br>
>>>>>>> > Any thoughts/suggestions welcome.<br>
>>>>>>> ><br>
>>>>>>> > Stephen<br>
>>>>>>> ><br>
>>>>>>><br>
>>>>>>> Is the problem showing on all channels or only SD or only HD? All<br>
>>>>>>> stations or one specific? Looks like sound decoding error causing the video<br>
>>>>>>> playback to back off waiting for the sound.<br>
>>>>>>><br>
>>>>>>> > Logs at:<br>
>>>>>>> > <a href="http://pastebin.com/nCzZAdcy" target="_blank">http://pastebin.com/nCzZAdcy</a><br>
>>>>>>> > <a href="http://pastebin.com/0WbCRLBi" target="_blank">http://pastebin.com/0WbCRLBi</a><br>
>>>>>>> ><br>
>>>>>>> > MythTV Version : v0.26.0-55-g09ac5b2<br>
>>>>>>> > MythTV Branch : fixes/0.26<br>
>>>>>>> > Network Protocol : 75<br>
>>>>>>> > Library API : 0.26.20120822-1<br>
>>>>>>> > QT Version : 4.8.1<br>
>>>>>>> > Options compiled in:<br>
>>>>>>> > linux profile use_hidesyms using_alsa using_oss using_pulse<br>
>>>>>>> > using_pulseoutput using_backend using_bindings_perl<br>
>>>>>>> > using_bindings_python using_bindings_php using_crystalhd using_dvb<br>
>>>>>>> > using_firewire using_frontend using_hdhomerun using_ceton<br>
>>>>>>> > using_hdpvr<br>
>>>>>>> > using_iptv using_ivtv using_joystick_menu using_libcec<br>
>>>>>>> > using_libcrypto<br>
>>>>>>> > using_libdns_sd using_libxml2 using_lirc using_mheg<br>
>>>>>>> > using_opengl_video<br>
>>>>>>> > using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_x11<br>
>>>>>>> > using_xrandr using_xv using_bindings_perl using_bindings_python<br>
>>>>>>> > using_bindings_php using_mythtranscode using_opengl using_vaapi<br>
>>>>>>> > using_vdpau using_ffmpeg_threads using_live using_mheg using_libass<br>
>>>>>>> > using_libxml2<br>
>>>>>>> > _______________________________________________<br>
>>>>>>> > mythtv-users mailing list<br>
>>>>>>> > <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>>>>>>> > <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>>>>>><br>
>>>>>> CoreContext audio/audiooutputalsa.cpp:242 (IncPreallocBufferSize)<br>
>>>>>> ALSA: Try to manually increase audio buffer with: echo 128 | sudo tee<br>
>>>>>> /proc/asound/card0/pcm0p/sub0/prealloc<br>
>>>>>> Jan 5 10:38:58 revo01 mythlogserver: mythfrontend[1714]: I<br>
>>>>>> CoreContext mythpainter_ogl.cpp:62 (ClearCache) Clearing OpenGL painter<br>
>>>>>> cache.<br>
>>>>>><br>
>>>>>> Yeah have seen this before the sound buffer is set too low. Do as the<br>
>>>>>> error message say:<br>
>>>>>><br>
>>>>>> $ echo 4096 | sudo tee /proc/asound/card0/pcm0p/sub0/prealloc<br>
>>>>>><br>
>>>>>> with 4096 instead 128 to be on the safe side and see if the error goes<br>
>>>>>> away.<br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> mythtv-users mailing list<br>
>>>>>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>>>>>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> mythtv-users mailing list<br>
>>>>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>>>>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> mythtv-users mailing list<br>
>>>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>>>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> vänliga hälsningar,<br>
>>><br>
>>> Andréas<br>
>>><br>
>>> Upplandsgatan 93 . 113 44 . Stockholm<br>
>>> Mobil <a href="tel:076%20543%208825" value="+46765438825">076 543 8825</a><br>
>>> <a href="mailto:andreas@kuhne.se">andreas@kuhne.se</a><br>
>>><br>
>>> _______________________________________________<br>
>>> mythtv-users mailing list<br>
>>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> mythtv-users mailing list<br>
>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> mythtv-users mailing list<br>
> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
><br>
<br>
</div></div>Hello, I have same problem with buffers. I have this message on the<br>
mythfrontend log:<br>
<br>
Jan 6 00:19:58 telemedia mythfrontend[3192]: E CoreContext<br>
<div class="im">audio/audiooutputalsa.cpp:242 (IncPreallocBufferSize) ALSA: Try to<br>
manually increase audio buffer with: echo 128 | sudo tee<br>
</div>/proc/asound/card1/pcm7p/sub0/prealloc<br>
<br>
<br>
I add to mythtv user on sudoers file:<br>
<br>
mythuser ALL=(ALL) NOPASSWD:/usr/bin/tee /proc/asound/card1/pcm7p/sub0/prealloc<br>
<br>
The problem is that when I execute the command there is no change on<br>
the prealloc file:<br>
<br>
$ cat /proc/asound/card1/pcm7p/sub0/prealloc<br>
64<br>
$ echo 128 | sudo tee /proc/asound/card1/pcm7p/sub0/prealloc<br>
128<br>
$ cat /proc/asound/card1/pcm7p/sub0/prealloc<br>
64<br>
<br>
I try with this, but nothing:<br>
<br>
# echo 128 > /proc/asound/card1/pcm7p/sub0/prealloc<br>
<br>
Do this command really change the prealloc file?<br>
<br>
Thanks and best regards.<br>
<br>
--<br>
Josu Lazkano<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br></div>