Conservation mode on Legion 5?

tlp - but you need to take into consideration that charge cap only works with select devices as it depends on the firmware and availability of modules for the device.

Use a custom script to notify when to unplug the charger and when to plug it