Skip to content

neoscaler/dms-lenovo-battery-settings

Repository files navigation

dms-lenovo-battery-settings

Plugin to see the status of following Lenovo battery settings in DankBar and quickly change it:

  • conservation mode (on, off)
    • Charges only to 60-80 % to preserve battery health

In the future, changing the following settings is also planned:

  • charging mode (long_life, standard)
  • fast_charge (on, off)

Note

Setting fast charging will require kernel 6.19+

Dependencies

Works only for Lenovo ACPI devices with /sys/bus/platform/devices/VPC2004:00 present.

Needs polkit graphical authentication agent running for the toggle feature, for example polkit-gnome:

~.config/niri/config.kdl

spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"

About

Offers ability to quickly change settings regarding battery conservation mode for Lenovo laptops in DMS

Topics

Resources

License

Stars

Watchers

Forks

Languages