I've been using i3 for a while now, but the xfce power manager doesn't work outside the desktop environment, is there any alternative you can recommend? It doesn't matter if it is a terminal based or graphical interface program, I just need something that can suspend the computer after a certain time or lock it when the laptop is closed
7 Comments
dogsnest@lemmy.world · 9 pts · 2y
TLP
also
acpitool
manito_manopla@lemmy.ml · 4 pts · 2y
Sometimes I forget to connect the charger to the laptop, and it discharges without realizing it. When I used xfce power manager, it warned me when the charger was disconnected, can tlp or acpitool send those types of notifications?
manito_manopla@lemmy.ml · 3 pts · 2y
What are the differences between tlp and acpitool?
dogsnest@lemmy.world · 7 pts · 2y
In a nutshell TLP's default settings are optimized for battery life upon installation, allowing you to further tweak/adjust to your needs. Whereas acpitool analyzes, but doesn't optimize without your input.
As for notifications, I don't believe either package provides them, especially since they're both cli tools (TLP has a gui, TLPUI)
As for notifications, a bash script similar to this would work:
ac_adapter=$(acpi -a | cut -d' ' -f3 | cut -d- -f1) if [ "$ac_adapter" = "on" ]; then notify-send "AC Adapter" "The AC Adapter is on." else notify-send "AC Adapter" "The AC Adapter is off." fiboredsquirrel@slrpnk.net · 2 pts · 2y
Also adding auto-cpufreq, ryzenadj, tuned.
But this depends on your CPU used.
TLP is good, tuned may be better?
TLP has a common USB lost issue, that is mitigated by disabling USB-autosuspend in the config. TLP config is found here
And if you need a tool for warning about AC disconnect, you can use a systemd service.
gnuhaut@lemmy.ml · 2 pts · 2y
I use tlp.
I also have a battery info using i3status in the status bar, and a script I named
battery-check, which warns me via a dunst popup and a beep when the battery gets low:I run this from my
~/.config/sway/configlike so:Jamecowell@lemmy.dbzer0.com · 1 pts · 2y
use power-profiles-daemon