Re: Raspberry: problems with shell script launcher when booting

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/13/2013 09:50 PM, Carlos sanchiavedraz wrote:
> Hello, dear folks.
> 
> I'm still (constantly) tweaking my raspberry here and there when I 
> can. I have some configurations/sessions that run ok, Looper 
> (jack+sooperlooper), Looper+Fx 
> (jack+sooperlooper+rakarrack/guitarrix). But I'm still having some 
> annoying problems that wanted to share with you:
> 
> 1) Simple session script, Looper, runs quite well when launched
> (via ssh -X or from console) logged as PI user. When I run it as a 
> boot/init script (simple launcher script placed in /etc/init.d and 
> then installed with "update-rc.d launcherscript defaults 99"),
> almost in every first start there's crackles and noise and my loops
> sound distorted, even with clean guitar; if I restart then it goes
> well (2nd or 3d time).
> 

Hi Carlos,

Try resetting the JACK buffersize with jack_bufsize after starting
your program. This does the trick for me on the RPi.

> 2) Next step forward I added Rakarrack in charge of guitar FX
> routed to the Looper. First, it happens almost same thing as
> mentioned about noise. Well, I guess It should have something to do
> with the signal path and things connected to the same power
> supplier, so I'll have to reserve some time to debug and switch off
> things until I get a cleaner signal and get rid of the hum and
> crackles. But the main issue is that there's problems with
> Rakarrack not been able to start because several problems with not
> enough Jack ports and Jack and RT. I didn't have any of these
> problems before.
> 
> I got to solve the problem with ports changing -p16 to -p32 when 
> launching jack+sooperlooper (-p24 is enough for just Rakarrack).
> 
> Then I made a launcher script LSB compliant (service script placed
> in /etc/init.d and then installed with "update-rc.d servicescript 
> defaults", with LSB flags and functions for "start" and "stop", as
> a proper newer Debian service, and configured to launch last in
> boot phase) which then call the Jack-config+Rakarrack+Sooperlooper
> session launcher script. I can see on screen in the init messages
> this error:
> 
> "JACK is running in realtime mode, but you are not allowed to use 
> realtime schedule..."
> 
> But I know RT is already configured, so I guessed it was something
> to do with the boot/init stage configuration and environment. I
> tried using "su" with several different parameters to run the 
> launcher script as "pi" user, as It runs quite well when logged as 
> this user (calling just the script and even with "sudo 
> /etc/init.d/script start"). So, maybe you can't get RT in init
> phase on RaspberryPI and you can only when you get to the login
> prompt and everything is loaded and ready. But I think there's a
> "Puredata on Raspberry PI" project that runs some scripts in the
> init stage; and it seems that in order to get a headless FX+looper
> station, running some configuration+apps-launcher at boot time is
> an obvious choice.
> 
> I'm sure something escapes me after so much try-error-code cicles. 
> Maybe you have some ideas.
> 

http://lists.linuxaudio.org/pipermail/linux-audio-user/2013-March/091750.html

Regards,

Jeremy

> Thanks as always.
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBAgAGBQJR4bG2AAoJEF63J34m6LiUDq4P+QHsb/bODOeBtL0dQUvmNrD2
jXeYyU57kAF5Al5Nf7e8vtAKuGSsLuVhF30CYGtcM1VUHYT0PFVfaOkZxlQsLJ6W
nM2w36ADyIEgboadWmS9DqoEP+L80XR6EpK9Bz1ZuMYgLsKg5eOP6m94v4rArsjQ
KDZTEIB5S4d1F4ZvDHbAnH2vY2wlhaH7Ii0R8IKuNCZwJP3L96abayNB9AjA6Fzu
SiKmjrnibujvonXOi3ew/86mES7AbOCJ9Bc4FnP+ZDlLMhvV3LGQQ5/lG5mLXW78
nqwQM958pZJrn7ZHgsU73mhi6i1iBP7hjGTtbdOd6NeUyNcWPeVnhJbHJAM9HCBE
xs0NkNVoQJnmRrBnT8yYcrZY3Vk6+8dzC/XbRlo97yvfNixKHEfTaAY2aMptQuCu
+zPURKNij22FHU1+r7IzZQR6zvoHIxN2zqs7k8677CQEzYFJ8OOcu3YiixmIhPll
q9ZVTiy13fONzgdenhwY9Ow+26vtQF+HVcLt3d5WegaEjjkykxvX/6CLX0nLrlqz
3DwyQ0DD0Wk20DwejIsfVo0zDhmw9XKZY2UPX6zCm9p/JIuD/IxYq5mzvZXiGToS
5KTBrT2NAn3t03591M1HiekA8YEj8p4BHVOM8yVTxI3T5RSiT09kYSuKg2RpAfNJ
tp6jusbkXuF0aEZav7K2
=hhBs
-----END PGP SIGNATURE-----
_______________________________________________
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