Realtime kernel for audio

I have been checking the latest Manjaro ISOs with realtimeconfigquickscan but I had not checked KDE yet, so thank you for posting this

The scan response appears to be the same as on Xfce and Cinnamon
Gnome has 6 not-good warnings but only needs one additional reconfiguration

Checking whether you’re in the ‘audio’ group… no - not good

  • Use the suggested command ONE TIME ONLY to add user to audio group
    sudo useradd -g $USER audio
    

Checking the ability to prioritize processes with chrt… no - not good

  • Install package realtime-privileges
    pamac install realtime-privileges
    
  • When package install is completed, use this command ONE TIME ONLY to add user to realtime group
    sudo useradd -g $USER realtime
    

Kernel with Real-Time Preemption… not found - not good

There are 2 possible options for this:

  1. install a realtime kernel

    1.1 Use Manjaro Settings Manager GUI ( manjaro-settings-manager -m msm_kernel )

    1.2 Or use one of these commands
    sudo mhwd-kernel --install linux515-rt
    sudo mhwd-kernel --install linux510-rt

  2. use threaded IRQ option with standard Manjaro kernel

    2.1 Install package rtirq:

    pamac install rtirq 
    

    2.2 Open GRUB grub configuration with a text editor

    sudo nano /etc/default/grub
    

    2.3 Edit line 5 (GRUB_CMDLINE_LINUX_DEFAULT) and add boot option threadirqs like this:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 threadirqs"
    

    2.4 Update GRUB

    sudo update-grub
    

Checking CPU Governors… CPU 0: ‘schedutil’ CPU 1: ‘schedutil’ CPU 2: ‘schedutil’ CPU 3: ‘schedutil’ - not good

(The command suggested in realtimeconfigquickscan works but it is not persistent and does not survive system reboot)

  • Use this command to reconfigure cpupower CPU governor to performance
    sudo sed -i 's/governor='performance'/#governor='powersave'/g' /etc/default/cpupower
    
  • Use this command to start and enable cpupower.service
    systemctl enable --now cpupower.service
    

System must be restarted to load the first 3 configuration changes, but the CPU governor configuration does not require a reboot

Running realtimeconfigquickscan again should confirm system is now all good for JACK

1 Like