Re: Confusing sound issues (ALSA, jackd, etc.)
Silvan wrote: On Saturday 14 August 2004 06:46 pm, Inge Thorin Eidsaether wrote: Haven't tried recording yet. So I installed Ardour. Ardour won't work unless jackd is running, which it wasn't: Hm. Found out I needed the LSM realtime module. Alternatively, you can just run JACK and Ardour as a regular user. If you start it with jackd and don't elect to start with realtime set, it will work fine. It's true you will probably never get useful performance doing it this way, but it runs. Is jackd (the debian package) compiled with all necessary flags? Like --enable-capabilites ? How do I find out? It works on patched 2.4 kernels. I have no idea about 2.6. It may be there's some different capabilities library it needs to be compiled against or something. Pure speculation. This is what I get trying to start jackd with a 2.6.7-1-386 kernel on an AMD K6-2/350 in case anyone has any ideas: [EMAIL PROTECTED]:~$ sudo jackd -v -s -d alsa getting driver descriptor from /usr/lib/libjack0.80.0-0/jack_iec61883.so getting driver descriptor from /usr/lib/libjack0.80.0-0/jack_alsa.so getting driver descriptor from /usr/lib/libjack0.80.0-0/jack_dummy.so getting driver descriptor from /usr/lib/libjack0.80.0-0/jack_oss.so jackd 0.98.1 Copyright 2001-2003 Paul Davis and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Illegal instruction I have looked at Sylvan's excellent materials. TIA, Paul Scott -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Confusing sound issues (ALSA, jackd, etc.)
On Saturday 14 August 2004 06:46 pm, Inge Thorin Eidsaether wrote: Haven't tried recording yet. So I installed Ardour. Ardour won't work unless jackd is running, which it wasn't: Hm. Found out I needed the LSM realtime module. Alternatively, you can just run JACK and Ardour as a regular user. If you start it with jackd and don't elect to start with realtime set, it will work fine. It's true you will probably never get useful performance doing it this way, but it runs. Is jackd (the debian package) compiled with all necessary flags? Like --enable-capabilites ? How do I find out? It works on patched 2.4 kernels. I have no idea about 2.6. It may be there's some different capabilities library it needs to be compiled against or something. Pure speculation. The more I read the more questions I have, like: - What FAQ, guide, tutorial etc. is the most authoritative and updated on the subject? Differences abound, depending on kernel version, etc. I'm writing a thorough guide to Rosegarden, and JACK is a big issue I need to deal with. I've spent a lot of time surfing, reading, trying to educate myself. The state of audio documentation is absolutely PATHETIC. Much of the documentation keeps referring to places where kernel 2.4.0 is spoken of in the future tense for crying out loud. Everyone, and every google search all keep referring to the same conglomeration of crap that evidently must make perfect sense to someone somewhere, but certainly not to me. - What files must be present for all this to work, (ALSA, jackd and all features of Soundblaster Live) on a system running the 2.6.7 kernel, and what magic do they possibly contain? I have absolutely no clue about 2.6 kernels. I'm not running one yet, and I don't support them. You can have my recipe for getting a happy JACK with a 2.4 kernel though. Add the following line to your sources.list: # AGNULA deb http://apt.agnula.org/demudi/ testing main local extra Update, then get (as needed, and with suitable arch if necessary): alsa-modules-2.4.25-1-multimedia-686 kernel-headers-2.4.25-1-multimedia-686 kernel-image-2.4.25-1-multimedia-686 kernel-pcmcia-modules-2.4.25-1-multimedia-686 They don't make it very obvious to the casual browser, but they maintain a repository of Debian packages. No need to replace your running system with something off the CD. Just install AGNULA packages whenever they're available and take the rest from Sid or Sarge. Then you might want to have a look at my book. While I deal mostly with MIDI issues, I do cover JACK. I'm trying to deal with all of this on a KISS, least you need to know level, and keep it distro-neutral, so don't expect an authoritative JACK treatise. (I couldn't write one if you paid me anyway. The least you need to know, in this case, is very nearly all that I *do* know after months wrestling with this most wretched of subjects.) I've just committed a new round of changes to document my latest success with the AGNULA kernel. That version won't get rsynced out to the web server until tomorrow sometime, so here's the URL to the PDF version instead. I host this myself, and I just updated it. You want to look at chapter 2.2: http://users.adelphia.net/~silvan/using-rosegarden.pdf If you decide to play with Rosegarden for audio work, I'm afraid I still haven't really dealt with the vagaries of recording with Rosegarden yet, and neither have I mentioned managing audio files. All of that is coming in the next few weeks, along with detailed instructions for managing the evil bastard mixer from hell on the SB Live! to control which audio sources get recorded. I'm still in the playing with it to figure it out stage, really, since I've only just gotten Rosegarden's audio features working smoothly for myself, after nearly two years with the project. -Why on Earth must all this be so convoluted? (sigh...) Tell me about it. The up side is that once you do finally get it working, it's pretty cool. Install the LADSPA stuff to get plugins up the wazoo: swh-plugins - Steve Harris's LADSPA plugins tap-plugins - Tom's Audio Processing LADSPA plugins I could go on, but let's see how far you get. -- Michael McIntyre Silvan [EMAIL PROTECTED] Linux fanatic, and certified Geek; registered Linux user #243621 http://www.geocities.com/Paris/Rue/5407/ http://rosegarden.sourceforge.net/tutorial/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Confusing sound issues (ALSA, jackd, etc.)
Inge - waves of empathy i had a very similar set of problems...finally found out about the realtime-lsm, but simply could not get the damned thing to compile,(see my mail of yesterday - maybe someone will still be able to help) so you were a step ahead of me... i am now trying with a demudi installan improvement for me, but it still is not doing all it should. What with that and a grizzly bug in audacity that means i can't edit with that either, i also contemplate throwing in the towel after a decade of *nix use... It really is still a bit of an uphill battle. Hopefully Agnula will produce something worthwhile, most importantly because they seem to be intent on producing documentation. good :) The problem at the moment seems to be that the different distros, and the 2.4/2.6 and all the 2.6's all are sufficiently different on the alsa/c things to make any partial clues culled from google not always very useful. Do let us know if you have a breakthrough/insights. dee On Sun, 15 Aug 2004, Inge Thorin Eidsaether wrote: Hi I'm having a few problems getting jackd to work on my Debian box (testing, kernel 2.6.7) The soundcard is a Soundblaster Live. Sequencial summary (so far): ALSA seems to be working, that is: playback works. Haven't tried recording yet. So I installed Ardour. Ardour won't work unless jackd is running, which it wasn't: -- Ardour/GTK 0.453.1 running with libardour 0.728.1 Loading UI configuration file /etc/ardour/ardour_ui.rc ardour: [ERROR]: Could not connect to JACK server as ardour Killed -- Aha, jackd it is, then. Tried starting jackd (or jackstart, as a regular user): --- cannot get realtime capabilities, current capabilities are: =ep cap_setpcap-e probably running under a kernel with capabilities disabled, a suitable kernel would have printed something like =eip --- Hm. Found out I needed the LSM realtime module. Why didn't the error message just say this? Or point to some place with more info on the problem? Even though I read somewhere that latency issues and such was now dealt with in kernel config, not in patches or modules? Could be my mistake. No big deal. Made sure kernel was configured as per the instructions for building the LSM realtime module. Meaning: CONFIG_MODULES=y CONFIG_SECURITY=y CONFIG_SECURITY_CAPABILITIES=m CONFIG_SECURITY_SELINUX=y CONFIG_MODULE_UNLOAD=y Built a kernel including the above options, then downloaded, compiled and installed the LSM realtime module, and it's seemed to load OK with no error messages: # modprobe realtime allcaps=1 # lsmod | grep realtime realtime9616 0 Tried starting jackd (or jackstart, as a regular user): Now it just says 'illegal instruction'. Nothing more. No matter what arguments I give. By the way: LD_ASSUME_KERNEL=2.4.19 is set in .bash_profile to account for the 'creating SCHED_FIFO threads for real-time processing'-issue mentioned on jackit.sourceforge.net/docs/faq.php#a53 Is jackd (the debian package) compiled with all necessary flags? Like --enable-capabilites ? How do I find out? *Taking a deep breath* I've spent more time than I like to admit tinkering with this, reading faqs, guides and tips from everywhere, but still not getting it to work. I'm just about ready to throw the towel in and go back to win98 (only for audio recording). Tried Agnula's DeMuDi, a dedicated Linux distro for Audio work, which indeed looked promising, and may work well, but: 1) v1.0 didn't recognize my serial mouse (Hellooo???) 2) v1.2 didn't recognize itself (the CD) as a valid Debian CD and refused to install (could be my CDROM needs a cleaning?) But I digress... The more I read the more questions I have, like: - What FAQ, guide, tutorial etc. is the most authoritative and updated on the subject? Differences abound, depending on kernel version, etc. - What files must be present for all this to work, (ALSA, jackd and all features of Soundblaster Live) on a system running the 2.6.7 kernel, and what magic do they possibly contain? -Why on Earth must all this be so convoluted? (sigh...) This is by far the biggest show stopper for me since, starting with Linux (first time in '95). I am most certainly not a guru, but no newbie anymore, either. I would like to spend some time actually doing some (audio) work, too. And my family likes to see my face in awhile. Is there a script available that takes the guesswork out of the installation of all of the necessary components? Obviously I'm not a programmer, so making one is out of my league. Sorry for whining, but now it's out of my system... I'm not subscribing to debian-user, but will search the mailing list for (hopefully)