Re: [LAU] Trying to run jackd from udev

From: tweed <tweed@email-addr-hidden>
Date: Sat Apr 06 2013 - 08:09:45 EEST

@Jeremy
This kinda reminds me of what happens when I run a script from udev. the
rule is for a usb audio device. the script runs an amixer command to set
device name and volume level, then runs jack. if I then run qjackctl
manually it doesn't 'see' jack running. a quick look in qps showed that
jackd is running as root. been banging my head against the wall trying to
figure out how to run the script as my_user instead of root. not sure if
this is in the neighborhood of what you're experiencing.
udev rule:
SUBSYSTEM!="sound", GOTO="90_my_usbaudio_end"
ACTION!="add", GOTO="90_my_usbaudio_end"
DEVPATH=="/devices/pci0000:00/0000:00:1d.2/usb6/6-1/6-1:1.0/sound/card?",
ATTR{id}="UsbAudio", RUN+="/home/my_user/.Amixer/AmixerUsb.sh"
LABEL="90_my_usbaudio_end"
AmixerUsb.sh:
#!/bin/sh
/usr/bin/jackd -dalsa -d hw:3 -r44100 -p1024 -n2
amixer -c 3 -- sset Speaker 10%
tweed

--
View this message in context: http://linux-audio.4202.n7.nabble.com/Trying-to-run-jackd-from-udev-tp83749p84226.html
Sent from the linux-audio-user mailing list archive at Nabble.com.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Apr 6 08:15:01 2013

This archive was generated by hypermail 2.1.8 : Sat Apr 06 2013 - 08:15:01 EEST