Hi,
run the following terminal command (Ctrl + Alt + t) and remove the nvidia-340 package for the nvidia-304 one and see how that works for you:
sudo apt-get update && sudo apt-get remove nvidia-340 && sudo apt-get install nvidia-304
DO A RESTART AFTER RUNNING THE ABOVE COMMAND!.
See also: