Easy temporary solution for the recent no longer supported Nvidia drivers if you cant get 580xx to work (GTX 1000 / Pascal series)

You need to install more then only the dkms driver. You need these too:

I have a notebook with a GTX 1070 card and it’s running perfectly fine.