Re: Trying to run jackd from udev

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

 



@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@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