Automatic realtime IRQ priorities using rtirq
Saturday, 3. January 2009, 15:31:17
When using audio on Linux, you have to be aware of the the realtime priorities of the system. And even though you may have edited the /etc/security/limits.conf file, the thread priorities of the sound card will not be set.
Rui Nuno Capela [creator of qjackctl and the excellent qtractor] wrote a script to help set the priorities of the most likely IRQs for your system. It didn't require any tweaking; however, when I first tried to use it there were no instructions as to how to apply it. SO...
- Download the script from http://www.rncbc.org/jack/ (you'll need to head to the end of the page)
- Extract the tar file. For this I used my file browser, PCManFM. No need for the terminal. Yet.
- NOW open a terminal.
- Become root by typing su and the root password.
- Enter cd {path to rtirq script} - this takes you to where the script is.
- Then cp rtirq.conf /etc/ - this copies rtirq's config file to /etc/
- Then cp rtirq.sh /etc/init.d/rtirq - this copies rtirq.sh to the /etc/init.d/ folder, making it a system script. It then renames it as rtirq
- Now enter insserv /etc/init.d/rtirq - this installs the script for the system on startup
- Lastly, enter ln -s /etc/init.d/rtirq /sbin/rcrtirq -this turns the script into a command
Now when you enter rcrtirq you'll get
Usage /sbin/rcrtirq {[re]start|stop|reset|status}
You can only use the command as root unfortunately, but it doesn't matter because this script will now start when you switch your computer on - which means you don't have to think about it!








