How to adjust charging thresholds of laptop battery?

view story

http://unix.stackexchange.com – My laptop is Lenovo T400, and OS is Ubuntu 12.04. I have not been able to adjust the thresholds for battery starting charging and stopping charging. I observed that its current starting charging threshold is about 40%, and stopping charging threshold is about 60%. I forgot if it was me and which program I used to control the battery to stop charging at 60% and start charging at 40%. I followed my previous post http://askubuntu.com/questions/58789/how-to-check-charged-percentage-of-..., but I don't find /sys/devices/platform/smapi. Also I have /proc/acpi/batt (HowTos)