Hi.<br><br>I&#39;m trying to configure pulseaudio in Ubuntu 9.10, such that it runs as a system instance with realtime priority, upon boot.<br><br>I&#39;ve encountered something strange.<br><br>After running...<br><br><div style="margin-left: 40px; font-family: courier new,monospace;">
chmod a+s /usr/bin/pulseaudio<br></div><br>...I would expect invoking pulseaudio would do so with root-level permissions. And yet, here&#39;s what I get when I try that:<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">id@kos-mos:~ $ pulseaudio -v</span><br>
(   0.000|   0.000) I: main.c: We&#39;re in the group &#39;pulse-rt&#39;, allowing high-priority scheduling.<br>(   0.000|   0.000) I: main.c: We&#39;re in the group &#39;pulse-rt&#39;, allowing real-time scheduling.<br>(   0.000|   0.000) I: main.c: RLIMIT_RTPRIO is set to 99, allowing real-time scheduling.<br>
(   0.000|   0.000) I: main.c: RLIMIT_NICE is set to 40, allowing high-priority scheduling.<br>(   0.000|   0.000) I: core-util.c: Successfully gained nice level -11.<br>(   0.000|   0.000) I: main.c: Giving up CAP_NICE<br>
(   0.000|   0.000) E: main.c: Root privileges required.<br></div><br><br>...Am I misunderstanding what the SUID bit does, or is pulseaudio incorrectly reporting that it doesn&#39;t have root privleges?<br><br>Running the above pulseaudio command preceded by a &quot;sudo&quot; starts the daemon as expected.<br>
<br>Please let me know if there&#39;s any further information I can give to help you diagnose this.<br><br>-Chris<br><br><br><br>PS. Here&#39;s my /etc/pulse/daemon.conf:<br><br><div style="margin-left: 40px;"><font face="courier new,monospace"># This file is part of PulseAudio.<br>
#<br># PulseAudio is free software; you can redistribute it and/or modify<br># it under the terms of the GNU Lesser General Public License as published by<br># the Free Software Foundation; either version 2 of the License, or<br>
# (at your option) any later version.<br>#<br># PulseAudio is distributed in the hope that it will be useful, but<br># WITHOUT ANY WARRANTY; without even the implied warranty of<br># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br>
# General Public License for more details.<br>#<br># You should have received a copy of the GNU Lesser General Public License<br># along with PulseAudio; if not, write to the Free Software<br># Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307<br>
# USA.<br><br>## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for<br>## more information. Default values a commented out.  Use either ; or # for<br>## commenting.<br><br>daemonize = yes<br>; fail = yes<br>
; disallow-module-loading = no<br>; disallow-exit = no<br>; use-pid-file = yes<br>system-instance = yes<br>; disable-shm = no<br>; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB<br><br>high-priority = yes<br>
nice-level = -11<br><br>realtime-scheduling = yes<br>realtime-priority = 99<br><br>; exit-idle-time = 20<br>; module-idle-time = 20<br>; scache-idle-time = 20<br><br>; dl-search-path = (depends on architecture)<br><br>; load-default-script-file = yes<br>
; default-script-file = <br><br>log-target = auto<br>log-level = notice<br>log-meta = no<br>log-time = yes<br>log-backtrace = 0<br><br>resample-method = src-linear<br>; disable-remixing = no<br>; disable-lfe-remixing = yes<br>
<br>; flat-volumes = yes<br><br>no-cpu-limit = yes<br><br>; rlimit-fsize = -1<br>; rlimit-data = -1<br>; rlimit-stack = -1<br>; rlimit-core = -1<br>; rlimit-as = -1<br>; rlimit-rss = -1<br>; rlimit-nproc = -1<br>; rlimit-nofile = 256<br>
rlimit-memlock = -1<br>; rlimit-locks = -1<br>; rlimit-sigpending = -1<br>; rlimit-msgqueue = -1<br>rlimit-nice = 31<br>rlimit-rtprio = 99<br>; rlimit-rtttime = 1000000<br><br>; default-sample-format = s16le<br>; default-sample-rate = 44100<br>
default-sample-channels = 2<br>; default-channel-map = front-left,front-right<br><br>default-fragments = 8<br>default-fragment-size-msec = 10</font><br></div><br>//<br>