aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-09-05 22:04:40 +0200
committer Eric Hameleers <alien@slackware.com>2020-09-05 22:04:40 +0200
commita107c2a55f94e874303a9f79540f66d6829609ad (patch)
tree69af1f42f18bebaf12d14bd8fc29c0188df3b91c /make_slackware_live.sh
parentc81e6669b78ff4d255dd17cd3f18bf2d51ab7a50 (diff)
downloadliveslak-a107c2a55f94e874303a9f79540f66d6829609ad.tar.gz
liveslak-a107c2a55f94e874303a9f79540f66d6829609ad.tar.xz
DAW: grant write access to /dev/cpu_dma_latency
Prevent CPU's from going into idle state to improve latency.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 0bf22e5..0ca3c82 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -2196,11 +2196,14 @@ EOT
fi
# Allow access for 'audio' group to the high precision event timer,
- # which may benefit a DAW which relies on ALSA MIDI:
+ # which may benefit a DAW which relies on ALSA MIDI;
+ # Also grant write access to /dev/cpu_dma_latency to prevent CPU's
+ # from going into idle state:
mkdir -p ${LIVE_ROOTDIR}/etc/udev/rules.d
cat <<EOT > ${LIVE_ROOTDIR}/etc/udev/rules.d/40-timer-permissions.rules
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
+KERNEL=="cpu_dma_latency", GROUP="audio"
EOT
# Audio related sysctl settings for better realtime performance: