On 04/06/2013 07:09 AM, tweed wrote:
@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
Hello tweed,
I'm experiencing something different because the weird thing is that
JACK runs as my user. But I'm going to try setting up something else, I
can't find any solution anywhere regarding my issue. Also my SD card got
corrupted so had to start from scratch again.
Jeremy
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user