http://www.earth.org.uk/battery-voltage-monitor-12V-13V-thresholds-1-full.gif
This should switch the laptop to mains power at 12V and back to battery at 13V.
Rgds
Damon