Ubuntu 20.04 shows a black screen when connecting through Teamviewer, but I still have ssh access. How can I get back the desktop?

I have a Ubuntu 20.04 desktop and connecting to it remotely via Teamviewer shows only a black screen. I can type and it will show what I type but it registers nothing. I still have ssh access. How can I get back my login screen through teamviewer?


I installed TeamViewer 15.17.6 and had the same effect.

As I just upgraded from 16.04, the first thing to check was if I ran Wayland now. This is not the case, I'm still on X11, so it's not Wayland's fault.

The problem also vanished after I downgraded TeamViewer to version 15.14.3.

Seems to be a bug in TeamViewer itself.

Edit: Just to clearify: I had the black screen in TeamViewer's Window, so I could not see the remote system.

If you meant that your Ubuntu 20.04 is the remote system and this one shows a black screen as soon as a TeamViewer client connects, this could just be caused by the option "enable local black screen" (see https://community.teamviewer.com/English/kb/articles/50966-teamviewer-black-screen)


Had the same issue, but I found a simple solution.

Make sure to login with 'Ubuntu x.org'

To do that:

  1. Logoff from your Ubuntu account
  2. Click in the login screen on your login name
  3. An icon appears in the rigth bottom corner
  4. Click on it and select Ubuntu X.org and login to your account.
  5. In 'Users' make sure 'Automatic Login' is set to 'On'

Issue explaination: For security reasons Teamviewer (remote acces) is blocked on/with Wayland (that is implemented with the regular Ubuntu login)