Music Playing Problems aRts nice? RFC

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

 



I have found that sound works much better on my system if: "artsd" runs at nice
-10.  Am I correct in this belief or is it something else?

I have made a patch for the: "artswrapper" that sets the nice value to -10.

See attached.

I also found it helps to set X to a nice value of -8.  Edit the:
"$KDEDIR/share/config/kdm/Xservers" file.  Mine is attached.

With these two settings I get good reaction time when I move windows but moving
windows does not screw up music playing through aRts.

Would anybody else like to try this??

--
JRT

diff -Naur arts-1.2.3.old/soundserver/artswrapper.c arts-1.2.3/soundserver/artswrapper.c
--- arts-1.2.3.old/soundserver/artswrapper.c	2003-06-25 12:13:57.000000000 +0000
+++ arts-1.2.3/soundserver/artswrapper.c	2004-07-01 02:14:47.000000000 +0000
@@ -5,6 +5,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdlib.h>
+#include <unistd.h>
+
+int nice(int inc); 
 
 /*
  * adjust_priority
@@ -74,6 +77,7 @@
 
 int main(int argc, char **argv)
 {
+nice(-10);
 	if(argc == 2)
 	{
 		if(strcmp(argv[1],"check") == 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 -nolisten tcp -dpi 100
:1 local reserve /bin/nice -n -8 /usr/bin/X11/X :1 vt8 -deferglyphs 16 -br -nolisten tcp -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