1 |
On 9/20/05, Matt Garman <garman@××××××××××.net> wrote: |
2 |
> |
3 |
> I installed jack (jack-audio-connection-kit), and configured it, as |
4 |
> far as I can tell, correctly. At least I can get multiple audio |
5 |
> streams multiplexed together. |
6 |
> |
7 |
> However, the performance leaves something to be desired: it is |
8 |
> *extremely* prone to skipping, if my system is under any kind of |
9 |
> load. For example, doing an "emerge search <package>" will usually |
10 |
> cause my XMMS playback to skip. *Moving a window* will almost |
11 |
> always cause a skip---not just skip, but freeze for the whole time |
12 |
> the window is being moved. Even worse, whenever the screensaver |
13 |
> comes on, the player skips. And while the screensaver is active, |
14 |
> the music playback will regularly skip every couple seconds. The |
15 |
> kicker? My screensaver is just a blank screen! |
16 |
> |
17 |
> I'd like to think that my system is powerful enough to do "normal" |
18 |
> desktop use without skipping: Athlon XP 2500, 1 GB RAM. |
19 |
> |
20 |
> Any thoughts as to why the jack performance is so shoddy? |
21 |
> |
22 |
> Thanks! |
23 |
> Matt |
24 |
> |
25 |
> -- |
26 |
> Matt Garman |
27 |
> email at: http://raw-sewage.net/index.php?file=email |
28 |
> -- |
29 |
> gentoo-user@g.o mailing list |
30 |
> |
31 |
> |
32 |
|
33 |
Matt, |
34 |
I'm very sorry but I somehow never saw this thread. Please accept |
35 |
my apologies. |
36 |
|
37 |
Did you get this working better? |
38 |
|
39 |
Anyway, I'd say that your machine is certainly fast enough to do |
40 |
good audio work, barring some specific chipset or driver issue which |
41 |
most likely won't be the case. In my experience there are usually just |
42 |
a few things required to get this working. |
43 |
|
44 |
1) First, let's determine whether you need a new kernel. su to root |
45 |
and run Jack and some simple Jack apps. I'd recommend alsaplayer since |
46 |
it's simple, small and very stable: |
47 |
|
48 |
(Note - this is best done through QJackCtl, but you can do it at the |
49 |
command line if you want.) Choose latency numbers that make sense for |
50 |
your card and your needs. I run at 128/2: |
51 |
|
52 |
jackd -R -dalsa -r44100 -dhw -p128 -n2 |
53 |
|
54 |
Then with Jack running run alsaplayer |
55 |
|
56 |
alsaplayer -o jack |
57 |
|
58 |
Tell alsaplayer to play a wave file or play a CD for a better, longer |
59 |
test. Any skipping? |
60 |
|
61 |
If you have skipping at this point then you most likely need a |
62 |
real-time kernel. My 32-bit machines do not. They run fine with |
63 |
gentoo-sources, but my amd64 doesn't run well and needed a new |
64 |
realtime kernel to work right. |
65 |
|
66 |
2) Assuming that your tests as root go well, then emerge realtime-lsm. |
67 |
This may require a new kernel if you don't have the right Linux |
68 |
Securities stuff enabled: |
69 |
|
70 |
[ ] Enable access key retention support |
71 |
[*] Enable different security models |
72 |
[ ] Socket and Networking Security Hooks |
73 |
<M> Default Linux Capabilities |
74 |
< > Root Plug Support |
75 |
< > BSD Secure Levels |
76 |
[ ] NSA SELinux Support |
77 |
|
78 |
Reboot into your new kernel if necessary, emerge realtime-lsm at this point. |
79 |
|
80 |
3) Create a group for realtime access. Here's mine: |
81 |
|
82 |
lightning linux # cat /etc/group | grep realtime |
83 |
realtime:x:600:mark |
84 |
lightning linux # |
85 |
|
86 |
4) Modprobe realtime at the command line: |
87 |
|
88 |
modprobe realtime gid=600 any=1 |
89 |
|
90 |
5) Assuming this all goes well, redo your tests with alsaplayer and |
91 |
make sure it's working as a user. |
92 |
|
93 |
Enabling realtime operation thorugh realtime-lsm is CRITICAL to |
94 |
making this work well over time. For instance this morning I'm |
95 |
rebuilding glibc as part of an emerge sync / emerge world operation. |
96 |
At the same time I'm doing email on the web as well as playing music |
97 |
with Aqualung on my AMD64 machine. Jack is running at 128/2 and I can |
98 |
go for hours without any xruns. True, we are still working bugs out of |
99 |
the newest kernel (2.6.14-rc3-rt10 as of this morning) but things are |
100 |
starting to work pretty well even on AMD64. My gentoo-sources 32-bit |
101 |
machines can go for days with out an xrun. (Granted, very good RME |
102 |
sound cards that cost as much as the machine are being used....) |
103 |
|
104 |
Hope this helps. Write back if you want or need more info. |
105 |
|
106 |
Cheers, |
107 |
Mark |
108 |
|
109 |
-- |
110 |
gentoo-user@g.o mailing list |