Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse movement/clicks are limited on display #343

Open
auggie246 opened this issue Aug 28, 2024 · 4 comments
Open

Mouse movement/clicks are limited on display #343

auggie246 opened this issue Aug 28, 2024 · 4 comments

Comments

@auggie246
Copy link

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
Copy link
Author

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
Copy link
Contributor

jsorg71 commented Aug 28, 2024

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

@auggie246
Copy link
Author

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

@github-staff github-staff deleted a comment from auggie246 Aug 28, 2024
@github-staff github-staff deleted a comment from matt335672 Aug 28, 2024
@jsorg71
Copy link
Contributor

jsorg71 commented Sep 12, 2024

also discussed in #341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jsorg71 @auggie246 and others