On Sat, 23 Mar 2013 08:43:20 -0700, Len Ovens wrote
> Which would not work here... but, maybe try changing
> /etc/security/limits.d/audio.conf (or it's equiv) to be user specific
> instead of group. Nope that whole file relies on PAM.
>
> There is always the ugly way:
>
> Have your udev module touch a file on plug in and rm it on unplug.
> Run a user space loop that looks for that file and runs jack (if
> needed) and connects whatever. File gone resets to look for file
> coming back.
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
-- R. Mattes - Hochschule fuer Musik Freiburg rm@email-addr-hidden-freiburg.de _______________________________________________ Linux-audio-user mailing list Linux-audio-user@email-addr-hidden http://lists.linuxaudio.org/listinfo/linux-audio-userReceived on Sat Mar 23 20:15:03 2013
This archive was generated by hypermail 2.1.8 : Sat Mar 23 2013 - 20:15:03 EET