Re: Trying to run jackd from udev

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

 



On 03/23/2013 05:05 PM, R. Mattes wrote:
But why so utterly complex? Just write a small script that will
be executed by udev:

  #!/bin/bash

  # give us more realtime
  ulimit -r 95
  # N.B.: you might want to also aquire higher memory
  # and nice settings ...

  # run command ...
  sudo -u your_user your_command

As a test, use

  sudo -u your_user /bin/bash -c "id && ulimit -a"

to see whether it works.

  HTH Ralf Mattes

Hello Ralf,

Using a wrapper script with 'ulimit -r 95' and then calling my user script did the trick. Many thanks! I find this a bit weird because this sets the ulimit for the user root right? Does any process ran by sudo on its turn inherit this setting? So sudo doesn't do something with the permissions of the user mentioned by the -u option? Anyway, I'm a happy camper now, whenever I plug in the drumpad into my Raspberry Pi it starts jalv hosting drumkv1 and within a few seconds I get sound and can start drumming. My kids already had a lot of fun playing with the drumpad although my oldest son is somehwat more interested in the RPi and all the cabling. He even pulled out the SD card while his little sister was banging on the drumpad. Everything just kept going. Linux still amazes me every so often.

Regards,

Jeremy
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux