Hi guys. I recently installed nvidia graphics driver by using the official document of kali linux. The commands i used are,
apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms

And i used this command to disable nouveau driver,
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub

After rebooting it was showing some error and asking me to logout. GUI was not loaded, just a box with the error message and logout option.
Then i removed the nvidia drivers by following command
systemctl stop gdm
apt-get purge nvidia*
apt-get install xserver-xorg-video-nouveau (output says already installed)
rm /etc/X11/xorg.conf (xorg file is not present to remove)

The problem starts now my laptop does not go to its highest resolution(1920x1080) there is no option just 1024*768. And it is showing unknown display. what should i do now? Maybe enable nouveau driver? But i don't know how to do that.