Replies: 7 comments 7 replies
|
Oh yes, I second this! |
|
Another option would be to have a choice on install to choose between power-profile-daemon and TLP. |
|
One of the first things I wanted to configure booting up Omarchy. In the interest of the philosophy of avoiding file changes to |
|
This might only work on thinkpads but go ahead and try sudo pacman -S --needed --noconfirm tlpThen edit this file sudo nano /etc/tlp.confFind the lines regarding battery settings, remove the leading Done |
|
I think this would be a great default to have in Omarchy. We could have a nice menu (or even maybe a TUI) to manage that config. |
|
/etc/systemd/system/90-battery-threshold.service [Unit]
Description=Set battery charge thresholds
After=multi-user.target
ConditionPathExists=|/sys/class/power_supply/BAT0/charge_control_start_threshold
ConditionPathExists=|/sys/class/power_supply/BAT0/charge_control_end_threshold
Type=oneshot
ExecStart=/bin/sh -c 'echo 60 > /sys/class/power_supply/BAT0/charge_control_start_threshold; echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
[Install]
WantedBy=multi-user.targetor /etc/tmpfiles.d/90-battery-threshold.conf # Path Mode UID GID Age Argument
w /sys/class/power_supply/BAT0/charge_control_start_threshold - - - - 60
w /sys/class/power_supply/BAT0/charge_control_end_threshold - - - - 80 |

Uh oh!
There was an error while loading. Please reload this page.
Hi all,
Modern laptops provide a way to limit battery charging level. This is a good way to preserve battery health over time when using the laptop docked for frequently. Would other people be interested in having it integrated to Omarchy setup ?
Coming from Gnome I have little knowledge on Hyprland but this seems like a possible first implementation :
https://github.com/ReZeroE/Linux-Battery-Threshold-Tool
For reference :
https://www.linuxuprising.com/2021/02/how-to-limit-battery-charging-set.html
Specific to Asus https://aur.archlinux.org/packages/bat-asus-battery-bin
And the Gnome details https://vdwaa.nl/gnome-upower-charge-thresholds.html
All reactions