From 4d6221c890364b07c84378052f48640b32d0222f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 24 Mar 2026 20:31:58 +0100 Subject: [PATCH] Make custom ptl kernel the default on intel ptl systems Then we don't need to turn off audio any longer --- bin/omarchy-hw-intel-ptl | 5 +++++ install/config/all.sh | 2 +- install/config/hardware/fix-dell-xps-audio.sh | 20 ------------------- .../fix-intel-panther-lake-display.sh | 2 +- .../hardware/intel-panther-lake-audio.sh | 16 +++++++++++++++ install/omarchy-other.packages | 2 ++ 6 files changed, 25 insertions(+), 22 deletions(-) create mode 100755 bin/omarchy-hw-intel-ptl delete mode 100644 install/config/hardware/fix-dell-xps-audio.sh create mode 100644 install/config/hardware/intel-panther-lake-audio.sh diff --git a/bin/omarchy-hw-intel-ptl b/bin/omarchy-hw-intel-ptl new file mode 100755 index 00000000..9750bd3b --- /dev/null +++ b/bin/omarchy-hw-intel-ptl @@ -0,0 +1,5 @@ +#!/bin/bash + +# Detect whether the computer has an Intel Panther Lake GPU. + +lspci | grep -iE 'vga|3d|display' | grep -qi 'panther lake' diff --git a/install/config/all.sh b/install/config/all.sh index 9cb68ab4..1bc8d744 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -38,6 +38,7 @@ run_logged $OMARCHY_INSTALL/config/hardware/intel.sh run_logged $OMARCHY_INSTALL/config/hardware/intel-thermald.sh run_logged $OMARCHY_INSTALL/config/hardware/vulkan.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-intel-panther-lake-display.sh +run_logged $OMARCHY_INSTALL/config/hardware/intel-panther-lake-audio.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-bcm43xx.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-spi-keyboard.sh @@ -47,7 +48,6 @@ run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-audio-mixer.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-mic.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-yt6801-ethernet-adapter.sh -run_logged $OMARCHY_INSTALL/config/hardware/fix-dell-xps-audio.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-synaptic-touchpad.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-tuxedo-backlight.sh run_logged $OMARCHY_INSTALL/config/hardware/framework16-qmk-hid.sh diff --git a/install/config/hardware/fix-dell-xps-audio.sh b/install/config/hardware/fix-dell-xps-audio.sh deleted file mode 100644 index d41fdc0d..00000000 --- a/install/config/hardware/fix-dell-xps-audio.sh +++ /dev/null @@ -1,20 +0,0 @@ -# Fix audio on Dell XPS 2026 (Panther Lake) by blacklisting SOF audio modules -# that conflict with standard HDA drivers. This turns off audio, but allows boot. -# This is meant to be removed as soon as its fixed upstream. - -if lspci | grep -iE 'vga|3d|display' | grep -qi 'panther lake'; then - sudo tee /etc/modprobe.d/blacklist-audio.conf << 'EOF' -blacklist snd_sof_pci_intel_ptl -blacklist snd_sof_pci_intel_lnl -blacklist snd_sof_pci_intel_mtl -blacklist snd_sof_intel_hda_generic -blacklist snd_sof_intel_hda_common -blacklist snd_sof_intel_hda -blacklist snd_sof_pci -blacklist snd_sof -blacklist soundwire_intel -blacklist snd_soc_cs35l56_sdw -blacklist snd_soc_cs35l56 -blacklist snd_soc_skl_hda_dsp -EOF -fi diff --git a/install/config/hardware/fix-intel-panther-lake-display.sh b/install/config/hardware/fix-intel-panther-lake-display.sh index 00d0e249..f6a49d34 100644 --- a/install/config/hardware/fix-intel-panther-lake-display.sh +++ b/install/config/hardware/fix-intel-panther-lake-display.sh @@ -1,6 +1,6 @@ # Fix display issues on Intel Panther Lake (Xe3) GPUs by disabling power-saving # features that cause screen to run at 10hz (e.g. Dell XPS 2026). -if lspci | grep -iE 'vga|3d|display' | grep -qi 'panther lake'; then +if omarchy-hw-intel-ptl; then echo "Detected Intel Panther Lake GPU, applying display fixes..." PANTHER_LAKE_CMDLINE='KERNEL_CMDLINE[default]+=" xe.enable_psr=0 xe.enable_panel_replay=0 xe.enable_fbc=0 xe.enable_dc=0"' diff --git a/install/config/hardware/intel-panther-lake-audio.sh b/install/config/hardware/intel-panther-lake-audio.sh new file mode 100644 index 00000000..c750fe02 --- /dev/null +++ b/install/config/hardware/intel-panther-lake-audio.sh @@ -0,0 +1,16 @@ +# Install Panther Lake audio kernel for Intel Panther Lake systems +# The linux-ptl-audio kernel includes audio driver patches not yet in mainline. +if omarchy-hw-intel-ptl; then + echo "Detected Intel Panther Lake, installing PTL audio kernel..." + + omarchy-pkg-add linux-ptl-audio linux-ptl-audio-headers + + sudo mkdir -p /etc/limine-entry-tool.d + cat </dev/null +# Prioritize Panther Lake audio kernel as the default boot entry +BOOT_ORDER="linux-ptl-audio*, *, *fallback, Snapshots" +EOF + + # Make the PTL audio kernel the default boot entry in limine + sed -i 's/^default_entry: 2/default_entry: 1/' $OMARCHY_PATH/default/limine/limine.conf +fi diff --git a/install/omarchy-other.packages b/install/omarchy-other.packages index 9d22c41c..80b82097 100644 --- a/install/omarchy-other.packages +++ b/install/omarchy-other.packages @@ -30,6 +30,8 @@ limine-snapper-sync linux linux-firmware linux-headers +linux-ptl-audio +linux-ptl-audio-headers macbook12-spi-driver-dkms nvidia-580xx-dkms nvidia-dkms