Skip to content
Use udev to automatically change the priority of soundcard interrupt handling threads.
Shell Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
99-udev-rtirq.rules move udev-rtirq to /usr/sbin Feb 26, 2018
COPYING
Makefile move udev-rtirq to /usr/sbin Feb 26, 2018
README.md fix grammar in README.md Mar 25, 2018
udev-rtirq move udev-rtirq to /usr/sbin Feb 26, 2018
udev-rtirq.conf Initial import of files Feb 25, 2018

README.md

udev-rtirq


udev-rtirq automatically changes the priority of soundcard interrupt handling threads.


Linux low-latency audio depends on the concept of POSIX realtime threads, the idea being to run important audio processing as realtime threads at a high priority, thus giving the work preference to much anything else running on the system.

udev-rtirq automatically changes the priority of the thread handling the soundcard, firewire or usb hub interrupt when it detects that a soundcard has been added or removed.

udev-rtirq accomplishes this by installing an udev rule which calls a script to find the thread handling the interrupt and then changing its priority to a predefined value.

Prerequisites:

udev-rtirq needs interrupt handlers exported as threads to userspace, this can be achieved either by using a realtime kernel, or booting a lowlatency kernel with the "threadirqs" boot flag.

In its present form it also depends on systemd.

Installation:

Run make install to copy the udev rules file, the script, and the default config file to the right destinations.

Configuration:

By default udev-rtirq will set the interrupt handler to priority 95 when it detects a soundcard, and it will set it back to 50 when it detects its removal. You can change the priority level in /etc/defaults/udev-rtirq. You can also blacklist certain PCI ids, say you have a soundcard for which you'd never want to change the priority.

You can’t perform that action at this time.