You are not logged in.
Now I have to renice xmms with -10 (after su'ing to root) every time after i've started xmms. I wonder if it is possible to renice xmms automatically even if the user != root.
I know it is possible to write a script using 'nice' to start xmms, but in the situation described above, nice needs root access :-(
Offline
So, do I understand you correctly that you want xmms to dominate your machine ? Because setting the nice value to negative numbers will give xmms highest priority.
The easiest would indeed be an alias or shortcut.
If, OTOH you want xmms to run at lower priorities, you can use renice as ordinary user to add postivie values (and decreasing the priority) to xmms's nice value.
And finally, there is
http://and.sourceforge.net/
I haven't found an Arch package in current, extra or staging, though.
Offline
Yes, I want to run xmms at a nice of -10. I found out that xmms will stop playing the mp3 track for a moment when I browse a website with konqueror when xmms is niced with >= -5. This disappears when it is niced with -10 (I've never tried nice values -6 to -9).
There is an example of a wrapper (*.c) for executing tasks with a higher priority on the link you gave me... I'll give it a try.
Thanks.
Offline
I see.
However, I think there is no mechanism that allows ordinary users run anything with negative nice values (see renice(1) ). You could try to run knqueror at a nice value of 5 or 6 or so, though ....
Offline
Look at the program 'sudo'. It will probably save you some time in renicing.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
I have the same problem (sort of). When I'm playing any full screen games, XMMS won't advance to the next track. I never thought of changing the nice though. Let us know if you find a solution for this.
"Ignorance is bliss, for stupid people."
"open-source is [...] programming Darwinism."
Vaughan-Nichols
Offline
I have the same problem (sort of). When I'm playing any full screen games, XMMS won't advance to the next track. I never thought of changing the nice though. Let us know if you find a solution for this.
Maybe this game is hijacking the arts channels just after xmms has finished playing a track? Try to press the play button on xmms when this happens.
I have had the same problem with sounds in KDE. When I open or close a window KDE plays a short sound file, but the sound file won't be played because xmms is using the arts channel. When xmms has finished playing, the sound file of KDE will be played and xmms is unable to play the next track.
My "solution" for this was to disable all sounds in KDE to make it not use the arts channel that is used by xmms.
Offline