use teamviewer on system without monitor

I have installed opensuse on a pc and I want leave the pc running without monitor.
To work on the pc, I want to connect to it with teamviewer.
When I try to do this, I only see a black screen.
This is because there is no monitor attached, and so there is no desktop (in xOrg) running.
Is it possible to fake a monitor so I can see a desktop in teamviewer?
On the internet I found solutions for vnc, but I can’t find a working solution for teamviewer.

A desktop will only run if a user loga in. Thus an “automatic” login will start a desktop and I assume that will also run without a monitor.

It will of course only work for one particular user (the one you configure automatic login for).

Just a thought.

I already configured autologin. I can connect with teamviewer, but only get a black screen.

Hi
It could be a teamviewer/wayland issue if that’s what your using, or are you using Xorg?

I think I changed it to xorg.
When I type: echo $XDG_SESSION_TYPE
I get: X11

So I guess I’m using xorg.

Hi
See: https://community.teamviewer.com/t5/Knowledge-Base/How-do-I-use-TeamViewer-on-headless-systems/ta-p/4256

What sort of access is required to perform your tasks, if not demanding, consider using Xvfb? Else look at the likes of ssh and an X server running locally?

Thank you for the reactions.
I used a dummy plug on my vga connector to make the graphic card think there is a monitor connected.
When I connect now with teamviewer, I do get to see a graphical desktop. Yes!

But the resolution is not that good.
When I look which resolutions I can choose, the maximum resolution is 1024*768.
Is there a possibility to force it to a greater resolution?

Hi
Should be, when your logged in, check the resolution output from the command;


xrandr

Use the -s option to set, then can add the full command to ~/.profile so it sets it on login.

For example;


xrandr -s 1920x1080

xrandr gives:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94

xrandr -s 1920x1080 gives:
Size 1920x1080 not found in available modes

Hi
So what outputs on the graphics card, just VGA? Is it onboard, if so can you increase the gpu memory?

I think it has something to do with the fact that the graphic card isn’t getting any information about the resolutions the monitor can handle.
And that could be normal as I have no monitor attached.

Hi
Well you could try a vga to hdmi adaptor as they will be treated as a monitor and add the resolutions.

You can set a modeline to force other resolutions in the /etc/X11/xorg.conf.d directory or with xrandr

example for xorg


Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-1"
    HorizSync       55.0 - 83.0
    VertRefresh     50.0 - 75.0
    ModeLine        "1600x900_60.00" 119.00 1600 1696 1864 2128 900 901 904 932 -HSync +Vsync

EndSection



to get the modeline for a given res use

https://arachnoid.com/modelines/

Ok. Thanks for the tips.
I’ll try these later.
I will answer here if this helped.

Hi kyhwise,

That may not what you want but I have left Teamviewer as of version 14 for NoMachine (https://www.nomachine.com/) because of this type of issues. There are plenty of configuration you can do including your remote computer resolution. Have a try.

Hi guys,

I can use teamviewer now with the resolution I want. Thanks.

leomedia2, when I would get other problems with teamviewer in the future, I’ll absolutely give nomachine a try.