Skip to content

Commit 04fbdca

Browse files
committed
Fix missing Subnautica audio on agx-l14
1 parent 5019f7f commit 04fbdca

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
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

33
context.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

1718
context.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
}

drivers/pipewire/configure-pipewire.sh

100644100755
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
#!/usr/bin/env bash
22
set -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
77
fi
88

99
SCRIPT_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

1419
systemctl --user restart pipewire.service pipewire-pulse.service

0 commit comments

Comments
 (0)