surface install

This commit is contained in:
2025-04-05 18:09:36 +02:00
parent 760585d420
commit e056d23088
8 changed files with 86 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
title Arch Linux Surface (linux)
linux /vmlinuz-linux
initrd /initramfs-linux-surface.img
options root=PARTUUID=3c787bf0-4b4a-4fb1-92ec-1660507ff3d6 rw rootfstype=ext4 quiet splash
+4
View File
@@ -0,0 +1,4 @@
title Arch Linux Surface (linux)
linux /vmlinuz-linux
initrd /initramfs-linux-surface-fallback.img
options root=PARTUUID=3c787bf0-4b4a-4fb1-92ec-1660507ff3d6 rw rootfstype=ext4
+2
View File
@@ -0,0 +1,2 @@
tiemout 0
default arch_surface.conf
+48
View File
@@ -0,0 +1,48 @@
#!/bin/bash
## REMARK:
# - above shebang is required for scripting file
# - 1st arg passed to executable file is either "pre" (mean that the entry of a power operation) or "post" (mean that the exit of a power operation)
# - 2nd arg passed to executable file is either "suspend", "hibernate", "hybrid-sleep", or "suspend-then-hibernate", depends on what power operation is operating
# - SYSTEMD_SLEEP_ACTION environment variable is helpful for "suspend-then-hibernate", it has value of either "suspend", "hibernate", or "suspend-after-failed-hibernate"
case $1 in
pre)
case $2 in
hibernate)
;;
hybrid-sleep)
;;
suspend)
;;
suspend-then-hibernate)
case $SYSTEMD_SLEEP_ACTION in
suspend)
;;
hibernate)
;;
suspend-after-failed-hibernate)
;;
esac
;;
esac
;;
post)
case $2 in
hibernate)
;;
hybrid-sleep)
;;
suspend)
;;
suspend-then-hibernate)
case $SYSTEMD_SLEEP_ACTION in
suspend)
;;
hibernate)
;;
suspend-after-failed-hibernate)
;;
esac
;;
esac
;;
esac