I just got my laptop's battery replaced and read a bit about how to prolong it's life. Most people say that the best choice is not to charge it will 100%, but rather to 60-80%. My battery is quite powerful (8 hours declared), so it's okay for me to charge it like this, and I mainly work plugged in.
In Windows which ships with the laptop I can see the way to set the threshold, and there is even the auto mode, where system decides itself how much to charge. Is there something like this in Ubuntu?