mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Add linux-firmware-marvell for Surface laptops
This commit is contained in:
Executable
+6
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
if omarchy-hw-surface; then
|
||||
omarchy-pkg-add linux-firmware-marvell
|
||||
fi
|
||||
Reference in New Issue
Block a user