feat: ignore lid close on laptops so server keeps running
Adds logind.conf.d drop-in to HandleLidSwitch=ignore for all lid close scenarios (battery, external power, docked). Archipelago nodes installed on laptops won't suspend when the lid is closed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
de336c472d
commit
6504a13bb8
@ -1306,6 +1306,15 @@ insecure = true
|
|||||||
REGCONF
|
REGCONF
|
||||||
chown -R 1000:1000 /mnt/target/home/archipelago/.config
|
chown -R 1000:1000 /mnt/target/home/archipelago/.config
|
||||||
|
|
||||||
|
# Laptop support: ignore lid close so server keeps running
|
||||||
|
mkdir -p /mnt/target/etc/systemd/logind.conf.d
|
||||||
|
cat > /mnt/target/etc/systemd/logind.conf.d/lid-ignore.conf <<'LIDCONF'
|
||||||
|
[Login]
|
||||||
|
HandleLidSwitch=ignore
|
||||||
|
HandleLidSwitchExternalPower=ignore
|
||||||
|
HandleLidSwitchDocked=ignore
|
||||||
|
LIDCONF
|
||||||
|
|
||||||
# Copy Archipelago binaries and files
|
# Copy Archipelago binaries and files
|
||||||
if [ -d "$BOOT_MEDIA/archipelago/bin" ]; then
|
if [ -d "$BOOT_MEDIA/archipelago/bin" ]; then
|
||||||
cp -r "$BOOT_MEDIA/archipelago/bin/"* /mnt/target/usr/local/bin/ 2>/dev/null || true
|
cp -r "$BOOT_MEDIA/archipelago/bin/"* /mnt/target/usr/local/bin/ 2>/dev/null || true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user