From 8dbd58d36e03a9cffce6efd93c6bac5e06e11adf Mon Sep 17 00:00:00 2001 From: j1nx Date: Sat, 6 Jan 2024 17:19:04 +0000 Subject: [PATCH] [ALL][RPI] RealTime performance tweaks. For the Raspberry Pi we also disable the mitigations --- buildroot-external/board/ovos/raspberrypi/cmdline.txt | 2 +- .../systemd/user/pipewire-pulse.service.d/openvoiceos.conf | 3 +++ .../.config/systemd/user/pipewire.service.d/openvoiceos.conf | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire-pulse.service.d/openvoiceos.conf create mode 100644 buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire.service.d/openvoiceos.conf diff --git a/buildroot-external/board/ovos/raspberrypi/cmdline.txt b/buildroot-external/board/ovos/raspberrypi/cmdline.txt index 2d51b8e2..fbf6d8b9 100644 --- a/buildroot-external/board/ovos/raspberrypi/cmdline.txt +++ b/buildroot-external/board/ovos/raspberrypi/cmdline.txt @@ -1 +1 @@ -snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0 dwc_otg.lpm_enable=0 acpi=off cgroup_enable=memory psi=1 usb-storage.quirks=174c:55aa:u,2109:0715:u,152d:0578:u,152d:0579:u,152d:1561:u,174c:0829:u,14b0:0206:u +mitigations=off snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0 dwc_otg.lpm_enable=0 acpi=off cgroup_enable=memory psi=1 usb-storage.quirks=174c:55aa:u,2109:0715:u,152d:0578:u,152d:0579:u,152d:1561:u,174c:0829:u,14b0:0206:u diff --git a/buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire-pulse.service.d/openvoiceos.conf b/buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire-pulse.service.d/openvoiceos.conf new file mode 100644 index 00000000..acc1c2c0 --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire-pulse.service.d/openvoiceos.conf @@ -0,0 +1,3 @@ +[Service] +CPUSchedulingPolicy=fifo +CPUSchedulingPriority=49 diff --git a/buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire.service.d/openvoiceos.conf b/buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire.service.d/openvoiceos.conf new file mode 100644 index 00000000..acc1c2c0 --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/ovos/.config/systemd/user/pipewire.service.d/openvoiceos.conf @@ -0,0 +1,3 @@ +[Service] +CPUSchedulingPolicy=fifo +CPUSchedulingPriority=49