after weeks of trying to fix this i have somehow got it working again
looking at command history
dpkg-reconfigure lightdm
seemed to be the last command before it finally worked
the driver package that worked appears to be
apt install nvidia-tesla-470-driver