Make custom ptl kernel the default on intel ptl systems

Then we don't need to turn off audio any longer
This commit is contained in:
David Heinemeier Hansson
2026-03-24 20:31:58 +01:00
parent fce6df52aa
commit 4d6221c890
6 changed files with 25 additions and 22 deletions
+5
View File
@@ -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'
+1 -1
View File
@@ -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
@@ -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
@@ -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"'
@@ -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 <<EOF | sudo tee /etc/limine-entry-tool.d/intel-panther-lake-audio.conf >/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
+2
View File
@@ -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