I have Ubuntu 18.10 and Windows 10 dual booting on a Yoga 730 and Lenovo graphics Dock, good news is that everything pretty much works works out of the box on Ubuntu except the fingerprint reader. Lenovo Vantage on windows provides a conservation mode that limits battery charging to 60% to preserve battery longevity. As this laptop is used mainly plugged into the dock at home it seems like a sensible feature, just disable it when I need a full charge for travel. tlp’s thinkpad battery functions aren’t supported by this model but I’m assuming Lenovo vantage is setting conservation mode through some sort of acpi call, when set in windows the setting is persistent when the laptop is booted into Ubuntu. At this point I’m basically keeping a full windows install for one battery function, not ideal. Anyone know a good way to capture the acpi call from lenovo vantage under windows so it can reworked into a linux compatible variant?
The same problem!
Did you solve the problem?
I also have the problem.
Rejoice my children!
I got ideas from some Arch wiki entries for the Lenovo_IdeaPad_720s, see the battery conservation section, and after a little dinking around I have a solution.
You can use the acpi_call package, you may need to install it first, to toggle battery conservation mode.
To limit charging to 60%
echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 3' | sudo tee /proc/acpi/call
To let the laptop charge fully
echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 5' | sudo tee /proc/acpi/call
Note: These values are only tested on a yoga 730 13, they should be similar for other models but you may need to fiddle with with the number after SBMC to get things to work. I take no responsibility for changes you make without understanding them.
Here is a little script you can use to make it friendlier:
#!/bin/bash
while getopts 'cfh' flag; do
case "${flag}" in
c)
sudo modprobe acpi_call
echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 3' | sudo tee /proc/acpi/call
echo 'battery conservation mode enabled' ;;
f)
sudo modprobe acpi_call
echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 5' | sudo tee /proc/acpi/call
echo 'battery conservation mode disabled' ;;
h)
echo 'limit charging to 60% to prevent battery attenuation'
echo ' -c limit charging to 60%'
echo ' -f fully charge battery'
echo ' -h display this screen';;
*)
echo 'usage: battery -c' ;;
esac
done
exit 0
Just name it something sensible, I use battery but it can be whatever you want, make it executable, sudo chmod +x battery, and then put it somewhere like /home/you/bin so you can use it from anywhere.
usage if you named the script battery would be as follows,
battery -h for a help menu
battery -c to limit charging to 60%
battery -f to allow charging to 100%
Hopefully this makes someones life easier in the future, sorry for the necro post.
on Ubuntu there is an already made gnome extension to monitor and change charging modes.
can’t add a link.
but it is called charging-mode on gnome extensions site
of course you can do it manually too.
IMO, that feature is stupid. I have a ThinkPad T480 that has the same feature. It will cause your battery to forget it’s capacity if you consistently prevent it from fully charging. Why don’t you just use the laptop plugged in? Usually, laptops that get enough AC power stop charging the battery to protect it.