Re: [LAU] RT in Arch Linux

From: Bernardo Barros <bernardobarros2@email-addr-hidden>
Date: Wed Nov 16 2011 - 00:14:58 EET

System tuning in a nut shell:

+ install linux-rt

    https://aur.archlinux.org/packages.php?ID=51360

+ To make the most of it, since linux 2.6.39 you can include
`threadirqs` in your kernel boot line.

+ Remember to install the package `rtirq`

+ include `rtirq` in your DAEMONS array in `/etc/rc.conf`. For example:

        DAEMONS=(dbus hal syslog-ng rtirq @alsa @wicd)

+ Add to `/etc/secutiry/limits.conf`

        @audio - rtprio 99
        @audio - memlock unlimited

+ If you use firewire soundcards, include in your MODULES array in
`/etc/rc.conf`:

        MODULES=(firewire-core firewire-ohci)

+ Add yourself to the `audio` group

        usermod -a -G audio **yourUserID**

+ Add to `/etc/sysctl.conf`

        vm.swappiness = 10
        fs.inotify.max_user_watches = 524288

+ Add to `/etc/udev/rules.d/40-hpet-permissions.rules`

        KERNEL=="rtc0", GROUP="audio"
        KERNEL=="hpet", GROUP="audio"

+ Set the cpufreq governor to `performance`. See the
[ArchWiki article](https://wiki.archlinux.org/index.php/Cpufreq#Daemon)

+ To use ALSA applications with JACK (web browsers and other
applications without JACK support) you can install the package
`alsa-plugins` and add the following to `~/.asoundrc`

        # convert alsa API over jack API
        # use it with
        # % aplay foo.wav

        # use this as default
        pcm.!default {
            type plug
            slave { pcm "jack" }
        }

        ctl.mixer0 {
            type hw
            card 1
        }

        # pcm type jack
        pcm.jack {
            type jack
            playback_ports {
                0 system:playback_1
                1 system:playback_2
            }
            capture_ports {
                0 system:capture_1
                1 system:capture_2
            }
        }
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Nov 16 00:15:03 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 16 2011 - 00:15:03 EET