File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1- # This configuration is very preliminary and has not been tested yet.
1+ # https://www.reddit.com/r/linux_gaming/comments/1gao420/low_latency_guide_for_linux_using_pipewire/
22
33context.modules = [
44 {
5+ # Use realtime scheduling to boost the audio thread priorities.
56 # https://www.reddit.com/r/linux_gaming/comments/14rghc5/solution_crackly_audio_while_gaming_w_pipewire/
67 name = libpipewire-module-rt
78 args = {
@@ -15,6 +16,8 @@ context.modules = [
1516]
1617
1718context.properties = {
19+ # This should be as low as possible, as long as you can hear audio at all and there is no crackling.
20+ # https://bbs.archlinux.org/viewtopic.php?id=306981
1821 # https://www.reddit.com/r/linux_gaming/comments/1gy347h/newbie_here_ive_tried_almost_all_fixes_theres/
1922 default.clock.min-quantum = 1024
2023}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -eu
33
4- if [ " ${EUID} " -ne 0 ]; then
5- echo " This script should be run as root."
4+ if [ " ${EUID} " -eq 0 ]; then
5+ echo " This script should not be run as root."
66 exit 1
77fi
88
99SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
10+ PIPEWIRE_CONF_DIR=" /usr/share/pipewire"
1011
11- mkdir -p /etc/pipewire/pipewire.conf.d
12- cp " ${SCRIPT_DIR} /crackling.conf" " /etc/pipewire/pipewire.conf.d/crackling.conf"
12+ if [ ! -d " ${PIPEWIRE_CONF_DIR} " ]; then
13+ echo " PipeWire configuration directory was not found at \" ${PIPEWIRE_CONF_DIR} \" ."
14+ exit 1
15+ fi
16+
17+ sudo cp " ${SCRIPT_DIR} /agx-custom.conf" " ${PIPEWIRE_CONF_DIR} /agx-custom.conf"
1318
1419systemctl --user restart pipewire.service pipewire-pulse.service
You can’t perform that action at this time.
0 commit comments