neutrinolabs / xorgxrdp

Xorg drivers for xrdp
Other
455 stars 113 forks source link

Mouse movement/clicks are limited on display #343

Open auggie246 opened 2 months ago

auggie246 commented 2 months ago

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
auggie246 commented 2 months ago

UPDATE: Although I am using a GRID L4 GPU on GCP. The following section was not required. removing it allowed me to click anywhere

SubSection "Display"
    Virtual 1920 1080
  EndSubSection
jsorg71 commented 2 months ago

That's great @auggie246 I'll give it a try. BTW, what driver version are you running?

auggie246 commented 2 months ago

That's great @auggie246 I'll give it a try. BTW, what driver version are you running?

nvidia GRID 550 drivers installed via https://cloud.google.com/compute/docs/gpus/install-grid-drivers

jsorg71 commented 1 month ago

also discussed in #341