Skip to content

Mouse movement/clicks are limited on display #343

@auggie246

Description

@auggie246

I am currently setting up xrdp on a GCP VM with nvidia L4 GPU. I am using @jsorg71 nvenc branch for both xrdp and xorgxrdp

The following is my configuration while building

# for xrdp
XRDP_NVENC_CFLAGS="-I/usr/local/cuda-12.4/include -I$HOME/Video_Codec_SDK_12.2.72/Interface" XRDP_NVENC_LIBS="-lcuda -lnvidia-encode" ./configure --enable-vsock --enable-jpeg --enable-fuse --enable-pixman --enable-opus --enable-mp3lame --enable-x264 --enable-nvenc

# for xorgxrdp
./configure --with-simd --enable-lrandr

Mouse is limited to work in a very small region (green being the max point, black being where i was right clicking)
image

I have also tried changing to Virtual 1920 1080 to Virtual 4000 2000 but the usable area just shifted to the center with much of the sides unusable

/etc/X11/xrdp/xorg_nvidia.conf

Section "ServerLayout"
  Identifier "XRDP GPU Server"
  Screen 0 "dGPU"
  InputDevice "xrdpMouse" "CorePointer"
  InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
  # This line prevents "ServerLayout" sections in xorg.conf.d files
  # overriding the "XRDP GPU Server" layout (xrdp #1784)
  Option "DefaultServerLayout" "XRDP GPU Server"
  Option "DontVTSwitch" "on"
  Option "AutoAddDevices" "off"
EndSection

Section "Module"
  Load "xorgxrdp"
EndSection

Section "InputDevice"
  Identifier "xrdpKeyboard"
  Driver "xrdpkeyb"
EndSection

Section "InputDevice"
  Identifier "xrdpMouse"
  Driver "xrdpmouse"
EndSection

Section "Monitor"
  Identifier "Monitor0"
  Option "Enable" "true"
EndSection

Section "Screen"
  Identifier "dGPU"
  Device "dGPU"
  Option "DPI" "96 x 96"
  Monitor "Monitor0"
# T4 needs an entry here, this is not the desktop size
  SubSection "Display"
    Virtual 1920 1080
  EndSubSection
EndSection

Section "Device"
  Identifier "dGPU"
  Driver "nvidia"
# T4 may need to comment out next line
  #Option "UseDisplayDevice" "none"
  Option "ConnectToAcpid" "false"
  BusID "PCI:0:3:0"
EndSection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions