From 642d532833f1131e168f2739ca9edc0d4b4d8d0f Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Fri, 4 Oct 2024 15:17:38 +1300 Subject: [PATCH] addpkg: pro-audio-settings --- pro-audio-settings/PKGBUILD | 31 +++++++++++++++++++ .../sysctl-max_user_watches.conf | 1 + pro-audio-settings/sysctl-swappiness.conf | 1 + .../tmpfiles-max-user-freq.conf | 2 ++ 4 files changed, 35 insertions(+) create mode 100644 pro-audio-settings/PKGBUILD create mode 100644 pro-audio-settings/sysctl-max_user_watches.conf create mode 100644 pro-audio-settings/sysctl-swappiness.conf create mode 100644 pro-audio-settings/tmpfiles-max-user-freq.conf diff --git a/pro-audio-settings/PKGBUILD b/pro-audio-settings/PKGBUILD new file mode 100644 index 0000000..8f642a6 --- /dev/null +++ b/pro-audio-settings/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: George Rawlinson + +pkgname=pro-audio-settings +pkgver=1 +pkgrel=1 +pkgdesc='Global settings as per Arch Wiki page: Professional_audio' +arch=('any') +url='https://wiki.archlinux.org/title/Professional_audio' +license=('GFDL-1.3-only') +source=( + 'tmpfiles-max-user-freq.conf' + 'sysctl-swappiness.conf' + 'sysctl-max_user_watches.conf' +) +sha512sums=('7848a64e3c6ee798edecf247d5b5f62075f714de12fe5dd563ef44742b59ff88c8af81f9689fb211eac264d5bb280a76d6ea1111e048b5f92979fd46595cdea2' + 'f1050410b6de053aa9d97b1708bb644954c615035991ffde3b5f58618040630b156518cf4058d788de53b8d9b6bb17a40d0517dcef528926bacef176583813e1' + 'a1a1fdcdd74fd79d99f93367c3ebdbf11e1836eb1227f4a81f82890a4eb39ceb3e7bc6ed34efd125251c610ff023d8ac6c8d83616b6dabbc0ecfc69c162e7d78') +b2sums=('dfc8c8a0850195fb945eb4a617bfcd88c622411fd3ac260c6fe312fa44b57966004f3e28a7388d177e71193027eef31db1c47c6d0296b2608fbb7f06f12c7da9' + '4603559afa59732d9850255da2f80526432688f7c73fd17bc71021055b2638af9d01d3a61be45927813a7bf2f3a56579cfed1dad807e94e43e965c5ef25ea4e2' + 'ef56ec46d3e09844930c78bf0412c5598b46faf0f6f6b17b8de930c8a2a23e03688aa28a31ef58f4b1bffdfe406e97789f4d9b29a59b88685814a1b812659352') + +package() { + # max-user-freq + install -vDm644 "$srcdir/tmpfiles-max-user-freq.conf" "$pkgdir/usr/lib/tmpfiles.d/max-user-freq.conf" + + # vm.swappiness + install -vDm644 "$srcdir/sysctl-swappiness.conf" "$pkgdir/usr/lib/sysctl.d/90-swappiness.conf" + + # max_user_watches + install -vDm644 "$srcdir/sysctl-max_user_watches.conf" "$pkgdir/usr/lib/sysctl.d/90-max_user_watches.conf" +} diff --git a/pro-audio-settings/sysctl-max_user_watches.conf b/pro-audio-settings/sysctl-max_user_watches.conf new file mode 100644 index 0000000..0ea3fd9 --- /dev/null +++ b/pro-audio-settings/sysctl-max_user_watches.conf @@ -0,0 +1 @@ +fs.inotify.max_user_watches = 600000 diff --git a/pro-audio-settings/sysctl-swappiness.conf b/pro-audio-settings/sysctl-swappiness.conf new file mode 100644 index 0000000..987317f --- /dev/null +++ b/pro-audio-settings/sysctl-swappiness.conf @@ -0,0 +1 @@ +vm.swappiness = 10 diff --git a/pro-audio-settings/tmpfiles-max-user-freq.conf b/pro-audio-settings/tmpfiles-max-user-freq.conf new file mode 100644 index 0000000..ea48278 --- /dev/null +++ b/pro-audio-settings/tmpfiles-max-user-freq.conf @@ -0,0 +1,2 @@ +w /sys/class/rtc/rtc0/max_user_freq - - - - 2048 +w /proc/sys/dev/hpet/max-user-freq - - - - 2048