Re: Setting priority (nice) for aRts Daemon.

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

 



James Richard Tyrer wrote:
I have problems with skips and pops when I play audio files (OGG) with
Kaboodle.  IIUC, Kaboodle uses the aRts Daemon (artsd) to output sound.

I find that if I set the 'nice' for all instances of 'artsd' to -10 that I
have no problems -- the sound is perfect even when doing something with the
window manager -- except that sometimes playing sound locks the screen.

Setting the 'nice' for X to -8 seems to fix that problem.

You can select the 'nice' for X in "$KDEDIR/share/config/kdm/Xservers":

:0 local@tty1 /bin/nice -n -8 /usr/X11R6/bin/X vt7 -deferglyphs 16 -br -dpi 100

Is there any way to select the 'nice' for the aRts Daemon?

Currently I have to do this with a script, a DeskTop icon, and KDEsu.

It would also be nice [:-D] to be able to set the 'nice' for TiMIDIty since it
also needs the high priority to work without skips and pops.


Ugly hack department.

This appears to fix the problem.

I attach a modified version of: "$KDEDIR/share/config/kdm/Xstartup"

and a script: "$KDEDIR/share/config/kdm/Music" to add to that directory (must be executable).

NOTE: change the paths to fit your system.

NOTE: you must have: "/sbin/pidof" for this to work.

NOTE: I have also modified my: "$KDEDIR/share/config/kdm/Xservers" file (as previously stated) to avoid (or improve) a slight problem with music locking the screen.

--
JRT
#! /bin/sh
# Xstartup - run as root before session starts

# By convention, both xconsole and xterm -C check that the
# console is owned by the invoking user and is readable before attaching
# the console output.  This way a random user can invoke xterm -C without
# causing serious grief; still, it can cause havoc, so xconsole is started
# by Xsetup usually.
# This is not required if you use PAM with the pam_console module.
#
#chown $USER /dev/console

/usr/share/config/kdm/Music &

exec sessreg -a -l $DISPLAY $USER

#! /bin/bash

sleep 5s
artsd_pid=""

while [ "$artsd_pid" = "" ] ; do
    sleep 1s
    artsd_pid=`/sbin/pidof artsd`
done

renice -10 $artsd_pid

exit 0





# $Xorg: Xserv.ws.cpp,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
#
# Xservers file, workstation prototype
#
# This file should contain an entry to start the server on the
# local display; if you have more than one display (not screen),
# you can add entries to the list (one per line).  If you also
# have some X terminals connected which do not support XDMCP,
# you can add them here as well.  Each X terminal line should
# look like:
#	XTerminalName:0 foreign
#
:0 local@tty1 /bin/nice -n -8 /usr/X11R6/bin/X vt7 -deferglyphs 16 -br -dpi 100
:1 local reserve /bin/nice -n -8 /usr/bin/X11/X :1 vt8 -deferglyphs 16 -br -dpi 100

### Don't change these two lines; they are hints for genkdmconf. ###
### Version 1.99 ###
___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux