The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


My MoOde Sound Tweaks
#1
Please use the script that is available on github to apply the tweak, this reduces the chance of user error and saves time/effort.

Old instructions removed from this post.

https://github.com/dynobot/Linux-Audio-Adjustments



/boot/config.txt

disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=allo-digione
#dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
arm_freq=1000
sdram_freq=500
core_freq=400
gpu_freq=300
over_voltage=-3
over_voltage_sdram=-3
max_usb_current=0

Newly created file in /usr/local/sbin/sound.sh....change permimssions with sudo chmod 755 sound.sh then put the path to this file in /etc/rc.local

Find your audio threads with this command and substitute them with the ones below.
ps -eLo pid,cls,rtprio,pri,nice,cmd | grep -i "irq"

Look for ksoftirq [should be four of them], mine are numbers 7, 14, 19, 24.


#!/bin/bash

#Reduce Audio thread latency

chrt -f -p 83 7
chrt -f -p 83 14
chrt -f -p 83 19
chrt -f -p 83 24

#Reduce USB latency

modprobe snd-usb-audio nrpacks=1

#Reduce MPD and OS latency

chrt -f -p 81 $(pidof mpd)
taskset -c -p 1 $(pidof mpd) 

#Note mmcblk0 should be your hard drive usually sdX for x86 vs ARM

echo noop > /sys/block/mmcblk0/queue/scheduler
echo 2 > /sys/block/mmcblk0/queue/rq_affinity
echo 0 > /proc/sys/vm/swappiness
echo 1000000 > /proc/sys/kernel/sched_latency_ns
echo 100000 > /proc/sys/kernel/sched_min_granularity_ns
echo 25000 > /proc/sys/kernel/sched_wakeup_granularity_ns

exit


Messages In This Thread
My MoOde Sound Tweaks - by Edward - 12-08-2018, 03:13 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-08-2018, 09:08 PM
RE: My MoOde Sound Tweaks - by Edward - 12-08-2018, 11:35 PM
RE: My MoOde Sound Tweaks - by CallMeMike - 12-09-2018, 06:12 AM
RE: My MoOde Sound Tweaks - by Edward - 12-09-2018, 12:52 PM
RE: My MoOde Sound Tweaks - by Tim Curtis - 12-09-2018, 04:37 PM
RE: My MoOde Sound Tweaks - by Edward - 12-09-2018, 05:32 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-10-2018, 12:20 PM
RE: My MoOde Sound Tweaks - by Edward - 12-10-2018, 02:03 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-10-2018, 03:22 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-10-2018, 04:14 PM
RE: My MoOde Sound Tweaks - by TheOldPresbyope - 12-10-2018, 07:32 PM
RE: My MoOde Sound Tweaks - by Edward - 12-11-2018, 12:14 AM
RE: My MoOde Sound Tweaks - by mactolinux - 12-10-2018, 09:58 PM
RE: My MoOde Sound Tweaks - by Edward - 12-10-2018, 10:47 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-11-2018, 05:28 AM
RE: My MoOde Sound Tweaks - by Edward - 12-11-2018, 07:19 AM
RE: My MoOde Sound Tweaks - by mactolinux - 12-11-2018, 05:35 AM
RE: My MoOde Sound Tweaks - by mactolinux - 12-11-2018, 05:44 AM
RE: My MoOde Sound Tweaks - by Edward - 12-11-2018, 07:24 AM
RE: My MoOde Sound Tweaks - by mactolinux - 12-11-2018, 08:54 AM
RE: My MoOde Sound Tweaks - by Edward - 12-11-2018, 12:47 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-12-2018, 08:47 PM
RE: My MoOde Sound Tweaks - by Edward - 12-13-2018, 01:47 AM
RE: My MoOde Sound Tweaks - by mactolinux - 12-11-2018, 10:15 AM
RE: My MoOde Sound Tweaks - by Edward - 12-11-2018, 12:43 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-11-2018, 01:30 PM
RE: My MoOde Sound Tweaks - by Edward - 12-12-2018, 02:11 AM
RE: My MoOde Sound Tweaks - by mactolinux - 12-12-2018, 08:18 AM
RE: My MoOde Sound Tweaks - by yaslam - 12-13-2018, 05:35 PM
RE: My MoOde Sound Tweaks - by Edward - 12-13-2018, 10:00 PM
RE: My MoOde Sound Tweaks - by Tim Curtis - 12-13-2018, 07:42 PM
RE: My MoOde Sound Tweaks - by Tim Curtis - 12-13-2018, 11:21 PM
RE: My MoOde Sound Tweaks - by yaslam - 12-14-2018, 07:06 PM
RE: My MoOde Sound Tweaks - by Edward - 12-15-2018, 06:31 PM
RE: My MoOde Sound Tweaks - by yaslam - 12-16-2018, 08:47 AM
RE: My MoOde Sound Tweaks - by Edward - 12-16-2018, 05:35 PM
RE: My MoOde Sound Tweaks - by yaslam - 12-17-2018, 11:11 AM
RE: My MoOde Sound Tweaks - by Edward - 12-17-2018, 09:16 PM
RE: My MoOde Sound Tweaks - by yaslam - 12-19-2018, 12:15 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-16-2018, 08:42 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-17-2018, 09:21 PM
RE: My MoOde Sound Tweaks - by yaslam - 12-19-2018, 12:17 PM
RE: My MoOde Sound Tweaks - by Edward - 12-19-2018, 01:24 PM
RE: My MoOde Sound Tweaks - by yaslam - 12-20-2018, 12:15 PM
RE: My MoOde Sound Tweaks - by Edward - 12-20-2018, 12:37 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-20-2018, 12:49 PM
RE: My MoOde Sound Tweaks - by Edward - 12-20-2018, 03:41 PM
RE: My MoOde Sound Tweaks - by mactolinux - 12-20-2018, 03:47 PM
RE: My MoOde Sound Tweaks - by Masticore - 04-26-2019, 06:46 AM
RE: My MoOde Sound Tweaks - by Edward - 04-27-2019, 09:40 PM
RE: My MoOde Sound Tweaks - by Masticore - 04-28-2019, 07:40 AM
RE: My MoOde Sound Tweaks - by Edward - 04-28-2019, 07:31 PM
RE: My MoOde Sound Tweaks - by cereyanlimusiki - 05-14-2019, 12:11 PM
RE: My MoOde Sound Tweaks - by grasshopper - 05-14-2019, 07:14 PM
RE: My MoOde Sound Tweaks - by cereyanlimusiki - 05-15-2019, 11:51 AM
RE: My MoOde Sound Tweaks - by TheOldPresbyope - 05-15-2019, 12:59 PM
RE: My MoOde Sound Tweaks - by Edward - 06-05-2019, 09:00 PM
RE: My MoOde Sound Tweaks - by Jempie - 05-11-2019, 11:58 AM
RE: My MoOde Sound Tweaks - by Vhond - 06-05-2019, 02:02 PM
RE: My MoOde Sound Tweaks - by Edward - 06-05-2019, 08:57 PM
RE: My MoOde Sound Tweaks - by Vhond - 06-06-2019, 06:12 AM
RE: My MoOde Sound Tweaks - by Edward - 06-06-2019, 12:21 PM
RE: My MoOde Sound Tweaks - by Vhond - 06-06-2019, 03:34 PM
RE: My MoOde Sound Tweaks - by gschmitz - 06-22-2019, 10:44 AM
RE: My MoOde Sound Tweaks - by malcolmwa - 08-01-2019, 08:53 PM
RE: My MoOde Sound Tweaks - by Edward - 08-03-2019, 09:24 PM

Forum Jump: