Posted by mstormo

Linux Headless Multiscreen setup (NVIDIA)

I'm trying to setup a CentOS box in headless mode, and have the work area show up as multiple screens in TeamViewer, allowing for the user to go full screen on two monitors.

However, in headless mode, no matter what I do, TeamViewer only sees it as a single huge screen! :( Any ideas?

Here's my current xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Tesla K40m"
    BusID          "PCI:13:0:0"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    Option         "MultiGPU" "Off"
    Option         "SLI" "off"
    Option         "BaseMosaic" "off"    
    Option         "Stereo" "0"
    SubSection     "Display"
        Virtual    3840 1080
        Depth      24

Section "Extensions"
    Option "RANDR"      "Enable"


1 Reply
1 Reply
Posted by TeamViewer Staff
TeamViewer Staff

Re: Linux Headless Multiscreen setup (NVIDIA)

Dear mstormo,

Thank you for your post.

To be able to assist you, we need more details to provide you a solution.

  • What operating system are you using to connect to this headless device?
  • What Teamviewer version are you using?
  • Just to confirm, does your headless system will run with a GUI instead of a CLI?

We are looking forward to your comments.

Best regards,


Did my reply answer your question? Accept it as a solution to help others, Thanks.