From c0eb787ac9d17f77a5fb8588510483e15d73f3c7 Mon Sep 17 00:00:00 2001 From: Nikita Tokarchuk Date: Sat, 18 May 2024 08:47:38 +0200 Subject: [PATCH] bump readme --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index ebb77e1..36d40e1 100644 --- a/README.md +++ b/README.md @@ -1 +1,41 @@ # acpi-wakeup-fixxer + +This repository contains a tool to disable the wakeup ability on your macbook system that runs linux, which can be particularly useful to prevent immediate wakeup from suspend mode. This tool is compatible with various systems, including the MacBook Air 2013/2015. + +# features + +- disables wakeup by echoing a device name to /proc/acpi/wakeup +- default list of devices to disable is LID0 XHC1 +- one can adjust the list by using `-disable` flag +- systemd unit runs the app on load and resume + +# installation + +## rhel/fedora systems + +- take latest artifacts from https://github.com/mainnika/acpi-wakeup-fixxer/actions/workflows/build-rpm.yaml +- unzip and install `fedora-40-x86_64/result/golang-code-tokarch-mainnika-acpi-wakeup-fixxer-0-0.1.fc40.x86_64.rpm` + +## build from sources +- `go build -o acpi-wakeup-fixxer ./cmd/acpi-wakeup-fixxer` + +# systemd + +``` +[Unit] +Description=Fix ACPI wakeup issues +DefaultDependencies=no +Conflicts=shutdown.target +Before=sysinit.target shutdown.target +ConditionPathExists=|/proc/acpi/wakeup + +[Service] +ExecStart=/usr/local/bin/acpi-wakeup-fixxer $ACPI_WAKEUP_FIXXER_ARGS +Type=oneshot +TimeoutSec=0 +RemainAfterExit=yes +EnvironmentFile=-/etc/default/acpi-wakeup-fixxer + +[Install] +WantedBy=sysinit.target +``` \ No newline at end of file