Add linux-firmware-marvell for Surface laptops

This commit is contained in:
David Heinemeier Hansson
2026-02-21 18:18:45 +01:00
parent 3936378ca5
commit 72d575c679
5 changed files with 15 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
# Detect whether the computer is a Microsoft Surface device.
[[ $(cat /sys/class/dmi/id/sys_vendor 2>/dev/null) == "Microsoft Corporation" ]] &&
grep -q "Surface" /sys/class/dmi/id/product_name 2>/dev/null
@@ -1,8 +1,8 @@
# Detect Surface devices which require additional modules for the keyboard to work.
# Module list derived from Chris McLeod's manual install instructions
# https://chrismcleod.dev/blog/installing-arch-linux-with-secure-boot-on-a-microsoft-surface-laptop-studio/
product_name="$(cat /sys/class/dmi/id/product_name 2>/dev/null)"
if [[ $product_name =~ Surface ]]; then
if omarchy-hw-surface; then
product_name="$(cat /sys/class/dmi/id/product_name 2>/dev/null)"
echo "Detected Surface Device"
# Modules already exist in the rootfs for the default kernel.
+3
View File
@@ -53,6 +53,9 @@ vulkan-intel
vulkan-radeon
vulkan-asahi
# Surface laptop support packages
linux-firmware-marvell
# T2 MacBook support packages
apple-bcm-firmware
apple-t2-audio-config
+1
View File
@@ -6,3 +6,4 @@ run_logged $OMARCHY_INSTALL/packaging/webapps.sh
run_logged $OMARCHY_INSTALL/packaging/tuis.sh
run_logged $OMARCHY_INSTALL/packaging/asus-rog.sh
run_logged $OMARCHY_INSTALL/packaging/framework16.sh
run_logged $OMARCHY_INSTALL/packaging/surface.sh
+3
View File
@@ -0,0 +1,3 @@
if omarchy-hw-surface; then
omarchy-pkg-add linux-firmware-marvell
fi