If you’re experiencing crashing with a TensorBook (or any GPU laptop for that matter) when training on battery power, it’s likely because you’re using the GPU for computer simultaneously with using the GPU to render your screen. To use the integrated graphics:
sudo rm /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf
sudo systemctl disable gpu-manager.service
That will likely lead to a more stable development environment when training on battery.