Loading the OSS modules on the XO

Erik Garrison erik at laptop.org
Wed Aug 13 09:24:47 EDT 2008


On Wed, Aug 13, 2008 at 06:16:58PM +0530, shivaprasad javali wrote:
> Hi,
> 
>    I am porting a application to the XO. It uses the OSS sound Api's to
> render sound. I found that the oss modules are not loaded on the xo by
> default. I was able to load the oss modules by running modprobe snd-pcm-oss
> which created the /dev/dsp and other device files required by the oss
> modules and was able to run my application on the XO. But the problem is
> every time I reboot the XO I will have to run the commands and load the oss
> modules.
> 
>    Is there any way I can tell the XO to always load the oss modules? Even
> if I have a script to run the commands on launching the application these
> commands would require super user privileges which I wont have when I launch
> the application from the activity bar. Any Ideas?

Without root access, your activity will have difficulty modifying
/etc/modules to enable autoloading the snd-pcm-oss module at boot.  I am
unsure if there is any way around this issue unless the deployment scope
for your activity is a set of machines on which you have root access.

Erik



More information about the Devel mailing list