Anydesk showing black screen until Ubuntu user is logged in

I am unable to find a resolution to this, can someone advise

I have anydesk running on my windows PC and remote Ubuntu machine.

When remote Ubuntu machine boots up, my any desk screen will only show black screen. It will keep showing black screen until the user has logged in to the Ubuntu OS.

Anydesk is added into the startup applications in the remote machine.

looking at some other posts i also enabled the wayland. But still unable to resolve this.

I want to get to a situation where remote user does not have to login to the Ubuntu OS, and i can still Anydesk using unattended access.


AliBhatti's comment is inline with the answer posted by AnyDesk support in this Reddit thread.

@AnyDeskSupport: ... currently AnyDesk might need an active display signal to function properly. As a workaround you can use a headless adapter, to emulate a visual signal.

Edit: Since initially posting this reply, I have confirmed that using a HDMI dummy plug solved my issue.


Wanted to add my two cents. I was able to get Anydesk and ScreenConnect to work by creating a virtual dummy monitor as described here:

Add Fake Display when No Monitor is Plugged In

Found a way to do it without requiring a dummy plug: Ubuntu Headless VNC VESA 800x600 Resolution Fix ~ Andy Hawkins @ June 12, 2011

Basically install a dummy driver:

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

Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf (or possibly /etc/X11/xorg.conf) file (create one, if it does not exist):

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 "1024x800"
    EndSubSection
EndSection

Then restart the computer.