Only XPS now needs the custom ptl kernel
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Install Panther Lake kernel for Intel Panther Lake systems
|
# Install Panther Lake kernel for Dell XPS Panther Lake systems
|
||||||
# The linux-ptl kernel includes audio driver patches not yet in mainline.
|
# The linux-ptl kernel includes audio driver patches not yet in mainline.
|
||||||
|
|
||||||
if omarchy-hw-intel-ptl; then
|
if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl; then
|
||||||
echo "Detected Intel Panther Lake, installing PTL kernel..."
|
echo "Detected Dell XPS Panther Lake, installing PTL kernel..."
|
||||||
|
|
||||||
omarchy-pkg-add linux-ptl linux-ptl-headers
|
omarchy-pkg-add linux-ptl linux-ptl-headers
|
||||||
for pkg in linux linux-headers; do
|
for pkg in linux linux-headers; do
|
||||||
@@ -10,8 +10,8 @@ if omarchy-hw-intel-ptl; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
sudo mkdir -p /etc/limine-entry-tool.d
|
sudo mkdir -p /etc/limine-entry-tool.d
|
||||||
cat <<EOF | sudo tee /etc/limine-entry-tool.d/intel-panther-lake.conf >/dev/null
|
cat <<EOF | sudo tee /etc/limine-entry-tool.d/dell-xps-panther-lake.conf >/dev/null
|
||||||
# Only show Panther Lake kernel in boot menu
|
# Only show Panther Lake kernel in boot menu on Dell XPS Panther Lake
|
||||||
BOOT_ORDER="linux-ptl*, *fallback, Snapshots"
|
BOOT_ORDER="linux-ptl*, *fallback, Snapshots"
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
echo "Restore stock kernel on non-XPS Panther Lake systems"
|
||||||
|
|
||||||
|
if omarchy-hw-intel-ptl && ! omarchy-hw-match "XPS"; then
|
||||||
|
omarchy-pkg-add linux linux-headers
|
||||||
|
|
||||||
|
for pkg in linux-ptl linux-ptl-headers; do
|
||||||
|
sudo pacman -Rdd --noconfirm "$pkg" 2>/dev/null || true
|
||||||
|
done
|
||||||
|
|
||||||
|
sudo rm -f /etc/limine-entry-tool.d/intel-panther-lake.conf
|
||||||
|
sudo rm -f /etc/limine-entry-tool.d/dell-xps-panther-lake.conf
|
||||||
|
|
||||||
|
if omarchy-cmd-present limine-update; then
|
||||||
|
sudo limine-update
|
||||||
|
fi
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user