From: Egor Glukhov <kaman120@rndfido.net> To: community@lists.altlinux.org Subject: [Comm] JACK в realtime не под рутом - возможно ли? Date: Sun, 04 Jan 2009 16:53:30 +0300 Message-ID: <4960BF5A.6000204@rndfido.net> (raw) Здравствуйте. Хочется запустить звуковой сервер JACK в режиме реального времени (приложению крайне важна минимальная задержка). И даже получается, но - только под рутом. Соответственно, клиент JACK'а тоже под рутом, и это не айс. Под обычным же пользователем: [kaman@kaman ~]$ jackd -Rv -d alsa getting driver descriptor from /usr/lib64/jack/jack_oss.so getting driver descriptor from /usr/lib64/jack/jack_alsa.so getting driver descriptor from /usr/lib64/jack/jack_dummy.so getting driver descriptor from /usr/lib64/jack/jack_freebob.so jackd 0.102.20 Copyright 2001-2005 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 JACK compiled with System V SHM support. server `default' registered cannot use real-time scheduling (FIFO at priority 10) [for thread -1411594528, from thread -1411594528] (1: Operation not permitted) cannot create engine cleaning up shared memory cleaning up files unregistering server `default' То же самое при jackstart -Rv -d alsa Читаю, что про это в `man jackd` написано: === Цитата === -R, --realtime Использовать планирование в режиме реального времени. [...первый способ - запускать всё под рутом...] Второй способ требует работы с ядром, где включены "POSIX draft capabilities" (см. заголовочный файл <linux/capability.h>). Во втором случае обычный пользователь сможет вызвать демон при примощи команды jackstart, а затем загрузить JACK-клиенты также с обычными правами. === Конец цитаты === Есть ли в репозитарии ядро, в котором включены эти POSIX draft capabilities? Сейчас стоит обычное std-ll. Нужно ли будет пересобирать ядро? В общем, что нужно сделать, чтобы достичь желаемого, то бишь, запуска jackd в realtime под нерутовым пользователем? ALT Linux 4.1 Desktop x86_64 [kaman@kaman ~]$ uname -rm 2.6.25-std-ll-alt8.M41.4 x86_64 [kaman@kaman ~]$ rpm -qa|grep jackd jackd-0.102.9-alt0.svn.r987 -- Егор Глухов
reply other threads:[~2009-01-04 13:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4960BF5A.6000204@rndfido.net \ --to=kaman120@rndfido.net \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git