I've installed laptop-mode-tools
and optional dependencies on Arch Linux.
Then I've enabled laptop-mode.service
and rebooted the system.
If I check if the service is actually working according to this (Para 3. Is Laptop Mode Enabled?) I get the following:
$ cat /proc/sys/vm/laptop_mode
0
The file /var/run/laptop-mode-enabled
is not found. Finally systemctl
tells me:
laptop-mode.service loaded active exited Laptop Mode Tools
All the above "symptoms" tell me that the laptop-mode
service is not actually working.
What am I missing?
EDIT
I have noticed that $ cat /proc/sys/vm/laptop_mode
gives 0
even after doing thinks like in my answer below if I boot up on battery. Then if I connect the ac adapter for a few seconds and then disconnect it, $ cat /proc/sys/vm/laptop_mode
will give 2
. In any case now my battery seems to last much longer