[mythtv-users] ALSA proc files and permissions

Chris Kapp chris.kapp at gmail.com
Wed May 25 14:01:32 UTC 2011


On Wed, May 25, 2011 at 7:17 AM, Robin Gilks <g8ecj at gilks.org> wrote:
> If I run as an ordinary user I get the error
>
> 2011-05-25 23:07:29.616 ALSA, Error: Setting hardware audio buffer size to
> 128
> 2011-05-25 23:07:29.616 ALSA, Error: Error opening
> /proc/asound/card0/pcm1p/sub0/prealloc: Permission denied.
> 2011-05-25 23:07:29.616 ALSA, Error: Try to manually increase audio buffer
> with: echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc
> 2011-05-25 23:07:29.616 ALSA, Error: Unable to sufficiently increase ALSA
> hardware buffer size - underruns are likely
>
> This has been documented before but if I try running the frontend SUID
> root then the BBC weather scripts fail due to perl getting huffy running
> as root.
>
> Is there a solution to this?
>

I believe you can run the command:
echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc

as root, and Mythtv will stop writing that error to the logs.

Chris Kapp


More information about the mythtv-users mailing list