TLP
TLP copied to clipboard
Power nap mode
I'm return back from macOS to Linux laptop, and I have one feature which I missed. I want to implement mode that called on macOS as Power Nap.
Because power management on my laptop managed by TLP, I think that this app should have this feature. In general, TLP should have one more mode -- is lid opened/closed.
In my case, I want this scenario: When lid closed and AC is plugged, laptop should be in aggressive powersave mode, with minimal CPU frequency and disabled all of components as possible. In this mode it can do background tasks, like -- backup by network, Mail/IM notifications, updates, etc.
What do you think about this?
Hi, interesting idea.
If you find out the udev event for closing or opening the lid, i will think about it.
Hi @linrunner, thanks for response
I've researched a bit, this event managed by acpi
:
~ cat /proc/acpi/button/lid/LID0/state
state: open
ACPI event is unfortunate because the whole /etc/acpi/event stuff is seriously deprecated imho. No udev event?
@linrunner no,
systemd uses acpi for HandleLidSwitch
, HandlePowerKey
and other events like these, so I think that it's acceptable
That is exactly where the problem lies: systemd (logind) consumes those events but doesn't expose an interface to hook them.
There is a D-Bus property for lid in logind:
busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager LidClosed