debian 10 have nvidia GPU driver, cuda 9 etc, it is a good thing for deep learning ( keras or pytorch).
but if let it running for some time ( without any interrupt), it hang after the power management kick in.
Work around is to
turn off the power management by doing:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
you may also want to turn off the interactive in the /etc/X11/xorg.conf
# to create new xorg.conf with vvida driver,
sudo nvidia-xconfig
then edit /etc/x11/xorg.conf:
Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
# https://stackoverflow.com/questions/15833261/how-to-disable-or-change-the-timeout-limit-for-the-gpu-under-linux
Option “Interactive” “0”
EndSection