Skip navigation.

rantshoutwhisper

Posts tagged with "realtime"

Automatic realtime IRQ priorities using rtirq

, , , ...

UPDATE: I've JUST noticed that there's an RPM at http://www.rncbc.org/jack/ - install and you're away! That man's a genius.

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...

  1. Download the script from http://www.rncbc.org/jack/ (you'll need to head to the end of the page)
  2. Extract the tar file. For this I used my file browser, PCManFM. No need for the terminal. Yet.
  3. NOW open a terminal.
  4. Become root by typing su and the root password.
  5. Enter cd {path to rtirq script} - this takes you to where the script is.
  6. Then cp rtirq.conf /etc/ - this copies rtirq's config file to /etc/
  7. 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
  8. Now enter insserv /etc/init.d/rtirq - this installs the script for the system on startup
  9. 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!
Download Opera, the fastest and most secure browser