You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nikita Tokarchuk f344d62a04
fix binary path in systemd
4 months ago
.github/workflows archive rpms with latest upload artifact 4 months ago
cmd/acpi-wakeup-fixxer remove invalid noargs 4 months ago
pkg initial setup of an app to toggle acpi wakeup devices 4 months ago
rpm add systemd unit args 4 months ago
systemd fix binary path in systemd 4 months ago
LICENSE add mit license 4 months ago
README.md bump readme 4 months ago
go.mod initial setup of an app to toggle acpi wakeup devices 4 months ago
go.sum initial setup of an app to toggle acpi wakeup devices 4 months ago

README.md

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

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