Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

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

Writer Sebastian Wright

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?

2

4 Answers

If you have a headless machine (ie: no monitor plugged into it) you'll need to either install a "HDMI headless dummy connector" or you can install a Video Dummy Package:

sudo apt-get install xserver-xorg-video-dummy

Then add a configuration file for it:

sudo vi /usr/share/X11/xorg.conf.d/xorg.conf

and paste this (adjusting your desired resolution)

Section "Device" Identifier "Configured Video Device" Driver "dummy"
EndSection
Section "Monitor" Identifier "Configured Monitor" HorizSync 31.5-48.5 VertRefresh 50-70
EndSection
Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1920x1080" EndSubSection
EndSection

Then reboot the machine and voilá

2

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 )

2

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)

The issue is that you're running Wayland, which doesn't allow for any screen recording and elevated GUI apps, for security.

You'll need to disable it, in order to make Teamviewer work

To do that :

sudo nano /etc/gdm3/custom.conf

then uncomment (remove #) the following line :

#WaylandEnable=false

This Ctrl + X, Y and Enter to exit the editor

Reboot and you'll be able to get Teamviewer to work

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy