

82·
2 months agoI sure did, and looked up some of the more intriguing references. There’s a reason they call it “The good book”!
I sure did, and looked up some of the more intriguing references. There’s a reason they call it “The good book”!
An official Microsoft Linux distro has existed for a while now: https://en.m.wikipedia.org/wiki/Azure_Linux
There’s more Linux than Windwoes VMs in Azure, I hear.
This implies that waiters are the root of all evil.
Sounds like a bug in the applet, frankly.
Try this in Bash:
$ echo $((`cat /sys/class/power_supply/BAT0/energy_now` * 100 / `cat /sys/class/power_supply/BAT0/energy_full`))
You’ll have to try :) I’d be wary of having multiple daemons managing your battery, though - it sounds like a recipe for conflicts, infinite loops and such.
No idea about TLP, I’m not using that.
I created a systemd
service for setting the charging threshold on boot, works for me.
This is NixOS syntax, but you get the idea:
systemd.services.battery-charge-control = {
description = "Set battery charging behavior";
script = "echo 70 > /sys/class/power_supply/BAT0/charge_start_threshold; echo 81 > /sys/class/power_supply/BAT0/charge_stop_threshold";
wantedBy = [ "multi-user.target" ];
};
There’s no law of gravity, it’s just curved spacetime! *jumps off a cliff