09-03-2023, 09:51 PM
(This post was last modified: 09-03-2023, 10:38 PM by Der Geist der Maschine.
Edit Reason: typo
)
(09-02-2023, 06:35 PM)wdt Wrote: >The Pinebook Pro wakes up from suspend to memory in the moment it gets connected to external power or unconnected from external power.
in /etc/rc.local
echo disabled > /sys/devices/platform/dc-charger/power/wakeup
Great!
Dude, you still live in the 1980s. Nowadays, udev is the way to go. Here is my udev rule:
Code:
$ cat /etc/udev/rules.d/90-powersupply.rules
SUBSYSTEM=="power_supply", ACTION=="add", RUN+="/bin/sh -c 'echo disabled > /sys/devices/platform/dc-charger/power/wakeup'"