Glxinfo error

when i run : glxinfo, i get the following errors:
X Error of failed request: GLXBadContextTag
Major opcode of failed request: 146 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 39
Current serial number in output stream: 39

system env:
window 10 ssh access to ubuntu headless server.
the server: Ubuntu 18.04, nvidia-driver : 495.44

xorg.0.log:
[ 40.039] (–) Log file renamed from “/var/log/Xorg.pid-2607.log” to “/var/log/Xorg.0.log”
[ 40.050]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[ 40.050] X Protocol Version 11, Revision 0
[ 40.050] Build Operating System: Linux 4.15.0-140-generic x86_64 Ubuntu
[ 40.050] Current Operating System: Linux gpu190 4.15.0-162-generic #170-Ubuntu SMP Mon Oct 18 11:38:05 UTC 2021 x86_64
[ 40.050] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-162-generic root=UUID=bebd7c8f-a0a9-44e3-9b0d-cb6f7a771fd1 ro quiet splash vt.handoff=1
[ 40.050] Build Date: 08 April 2021 01:57:21PM
[ 40.050] xorg-server 2:1.19.6-1ubuntu4.9 (For technical support please see Enterprise open source support | Ubuntu)
[ 40.050] Current version of pixman: 0.34.0
[ 40.050] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 40.050] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 40.050] (==) Log file: “/var/log/Xorg.0.log”, Time: Tue Nov 9 15:56:30 2021
[ 40.056] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
[ 40.096] (==) No Layout section. Using the first Screen section.
[ 40.096] (==) No screen section available. Using defaults.
[ 40.096] (
) |–>Screen “Default Screen Section” (0)
[ 40.096] (**) | |–>Monitor “”
[ 40.130] (==) No monitor specified for screen “Default Screen Section”.
Using a default monitor configuration.
[ 40.131] (==) Automatically adding devices
[ 40.131] (==) Automatically enabling devices
[ 40.131] (==) Automatically adding GPU devices
[ 40.131] (==) Automatically binding GPU devices
[ 40.131] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 40.131] (WW) The directory “/usr/share/fonts/X11/cyrillic” does not exist.
[ 40.131] Entry deleted from font path.
[ 40.131] (WW) The directory “/usr/share/fonts/X11/100dpi/” does not exist.
[ 40.131] Entry deleted from font path.
[ 40.131] (WW) The directory “/usr/share/fonts/X11/75dpi/” does not exist.
[ 40.131] Entry deleted from font path.
[ 40.156] (WW) The directory “/usr/share/fonts/X11/100dpi” does not exist.
[ 40.156] Entry deleted from font path.
[ 40.156] (WW) The directory “/usr/share/fonts/X11/75dpi” does not exist.
[ 40.156] Entry deleted from font path.
[ 40.156] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 40.156] (==) ModulePath set to “/usr/lib/xorg/modules”
[ 40.156] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 40.164] (II) Loader magic: 0x561542385020
[ 40.164] (II) Module ABI versions:
[ 40.164] X.Org ANSI C Emulation: 0.4
[ 40.164] X.Org Video Driver: 23.0
[ 40.164] X.Org XInput driver : 24.1
[ 40.164] X.Org Server Extension : 10.0
[ 40.165] (++) using VT number 1

[ 40.168] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[ 40.168] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 40.169] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
[ 40.187] (–) PCI:*(0:101:0:0) 10de:1b30:1028:11a0 rev 161, Mem @ 0xd7000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000b000/128, BIOS @ 0x???/131072
[ 40.187] (II) LoadModule: “glx”
[ 40.194] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 40.383] (II) Module glx: vendor=“X.Org Foundation”
[ 40.383] compiled for 1.19.6, module version = 1.0.0
[ 40.383] ABI class: X.Org Server Extension, version 10.0
[ 40.383] (II) Applying OutputClass “nvidia” to /dev/dri/card0
[ 40.383] loading driver: nvidia
[ 40.383] (==) Matched nvidia as autoconfigured driver 0
[ 40.383] (==) Matched nouveau as autoconfigured driver 1
[ 40.383] (==) Matched nouveau as autoconfigured driver 2
[ 40.383] (==) Matched modesetting as autoconfigured driver 3
[ 40.384] (==) Matched fbdev as autoconfigured driver 4
[ 40.384] (==) Matched vesa as autoconfigured driver 5
[ 40.384] (==) Assigned the driver to the xf86ConfigLayout
[ 40.384] (II) LoadModule: “nvidia”
[ 40.384] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 40.463] (II) Module nvidia: vendor=“NVIDIA Corporation”
[ 40.464] compiled for 1.6.99.901, module version = 1.0.0
[ 40.464] Module class: X.Org Video Driver
[ 40.471] (II) LoadModule: “nouveau”
[ 40.471] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 40.484] (II) Module nouveau: vendor=“X.Org Foundation”
[ 40.484] compiled for 1.19.6, module version = 1.0.16
[ 40.484] Module class: X.Org Video Driver
[ 40.484] ABI class: X.Org Video Driver, version 23.0
[ 40.484] (II) LoadModule: “modesetting”
[ 40.484] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 40.529] (II) Module modesetting: vendor=“X.Org Foundation”
[ 40.529] compiled for 1.19.6, module version = 1.19.6
[ 40.529] Module class: X.Org Video Driver
[ 40.529] ABI class: X.Org Video Driver, version 23.0
[ 40.529] (II) LoadModule: “fbdev”
[ 40.530] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 40.535] (II) Module fbdev: vendor=“X.Org Foundation”
[ 40.535] compiled for 1.19.3, module version = 0.4.4
[ 40.535] Module class: X.Org Video Driver
[ 40.535] ABI class: X.Org Video Driver, version 23.0
[ 40.535] (II) LoadModule: “vesa”
[ 40.535] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 40.542] (II) Module vesa: vendor=“X.Org Foundation”
[ 40.542] compiled for 1.19.3, module version = 2.3.4
[ 40.542] Module class: X.Org Video Driver
[ 40.542] ABI class: X.Org Video Driver, version 23.0
[ 40.542] (II) NVIDIA dlloader X Driver 495.44 Fri Oct 22 06:11:21 UTC 2021
[ 40.542] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 40.551] (II) NOUVEAU driver
[ 40.551] (II) NOUVEAU driver for NVIDIA chipset families :
[ 40.552] RIVA TNT (NV04)
[ 40.552] RIVA TNT2 (NV05)
[ 40.552] GeForce 256 (NV10)
[ 40.552] GeForce 2 (NV11, NV15)
[ 40.552] GeForce 4MX (NV17, NV18)
[ 40.552] GeForce 3 (NV20)
[ 40.552] GeForce 4Ti (NV25, NV28)
[ 40.552] GeForce FX (NV3x)
[ 40.552] GeForce 6 (NV4x)
[ 40.552] GeForce 7 (G7x)
[ 40.552] GeForce 8 (G8x)
[ 40.553] GeForce 9 (G9x)
[ 40.553] GeForce GTX 2xx/3xx (GT2xx)
[ 40.553] GeForce GTX 4xx/5xx (GFxxx)
[ 40.553] GeForce GTX 6xx/7xx (GKxxx)
[ 40.553] GeForce GTX 9xx (GMxxx)
[ 40.553] GeForce GTX 10xx (GPxxx)
[ 40.553] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 40.553] (II) FBDEV: driver for framebuffer: fbdev
[ 40.553] (II) VESA: driver for VESA chipsets: vesa
[ 40.553] (II) systemd-logind: releasing fd for 226:0
[ 40.558] (II) Loading sub module “fb”
[ 40.558] (II) LoadModule: “fb”
[ 40.558] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 40.718] (II) Module fb: vendor=“X.Org Foundation”
[ 40.718] compiled for 1.19.6, module version = 1.0.0
[ 40.718] ABI class: X.Org ANSI C Emulation, version 0.4
[ 40.718] (II) Loading sub module “wfb”
[ 40.718] (II) LoadModule: “wfb”
[ 40.718] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 40.736] (II) Module wfb: vendor=“X.Org Foundation”
[ 40.737] compiled for 1.19.6, module version = 1.0.0
[ 40.737] ABI class: X.Org ANSI C Emulation, version 0.4
[ 40.737] (II) Loading sub module “ramdac”
[ 40.737] (II) LoadModule: “ramdac”
[ 40.737] (II) Module “ramdac” already built-in
[ 40.743] (WW) Falling back to old probe method for modesetting
[ 40.743] (WW) Falling back to old probe method for fbdev
[ 40.743] (II) Loading sub module “fbdevhw”
[ 40.743] (II) LoadModule: “fbdevhw”
[ 40.744] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 40.744] (II) Module fbdevhw: vendor=“X.Org Foundation”
[ 40.744] compiled for 1.19.6, module version = 0.0.2
[ 40.744] ABI class: X.Org Video Driver, version 23.0
[ 40.744] (WW) Falling back to old probe method for vesa
[ 40.744] (II) NVIDIA(0): Creating default Display subsection in Screen section
“Default Screen Section” for depth/fbbpp 24/32
[ 40.745] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 40.745] (==) NVIDIA(0): RGB weight 888
[ 40.745] (==) NVIDIA(0): Default visual is TrueColor
[ 40.745] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 40.752] () NVIDIA(0): Enabling 2D acceleration
[ 40.752] (II) Loading sub module “glxserver_nvidia”
[ 40.752] (II) LoadModule: “glxserver_nvidia”
[ 40.752] (II) Loading /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so
[ 41.235] (II) Module glxserver_nvidia: vendor=“NVIDIA Corporation”
[ 41.235] compiled for 1.6.99.901, module version = 1.0.0
[ 41.235] Module class: X.Org Server Extension
[ 41.235] (II) NVIDIA GLX Module 495.44 Fri Oct 22 06:08:29 UTC 2021
[ 41.250] (II) NVIDIA: The X server does not support PRIME Render Offload.
[ 42.072] (–) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:101:0:0
[ 42.072] (–) NVIDIA(0): DFP-0
[ 42.072] (–) NVIDIA(0): DFP-1
[ 42.072] (–) NVIDIA(0): DFP-2
[ 42.072] (–) NVIDIA(0): DFP-3 (boot)
[ 42.072] (–) NVIDIA(0): DFP-4
[ 42.072] (–) NVIDIA(0): DFP-5
[ 42.072] (–) NVIDIA(0): DFP-6
[ 42.072] (–) NVIDIA(0): DFP-7
[ 42.072] (–) NVIDIA(0): DFP-8
[ 42.073] (II) NVIDIA(0): NVIDIA GPU Quadro P6000 (GP102GL-A) at PCI:101:0:0 (GPU-0)
[ 42.073] (–) NVIDIA(0): Memory: 25165824 kBytes
[ 42.073] (–) NVIDIA(0): VideoBIOS: 86.02.2d.00.05
[ 42.073] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 42.073] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 42.073] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 42.073] (–) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 42.073] (–) NVIDIA(GPU-0):
[ 42.073] (–) NVIDIA(GPU-0): DFP-1: disconnected
[ 42.073] (–) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 42.073] (–) NVIDIA(GPU-0): DFP-1: 1440.0 MHz maximum pixel clock
[ 42.073] (–) NVIDIA(GPU-0):
[ 42.073] (–) NVIDIA(GPU-0): DFP-2: disconnected
[ 42.073] (–) NVIDIA(GPU-0): DFP-2: Internal TMDS
[ 42.073] (–) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[ 42.073] (–) NVIDIA(GPU-0):
[ 42.073] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): connected
[ 42.073] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): Internal DisplayPort
[ 42.073] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): 1440.0 MHz maximum pixel clock
[ 42.073] (–) NVIDIA(GPU-0):
[ 42.075] (–) NVIDIA(GPU-0): DFP-4: disconnected
[ 42.075] (–) NVIDIA(GPU-0): DFP-4: Internal TMDS
[ 42.075] (–) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[ 42.075] (–) NVIDIA(GPU-0):
[ 42.075] (–) NVIDIA(GPU-0): DFP-5: disconnected
[ 42.075] (–) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[ 42.075] (–) NVIDIA(GPU-0): DFP-5: 1440.0 MHz maximum pixel clock
[ 42.075] (–) NVIDIA(GPU-0):
[ 42.075] (–) NVIDIA(GPU-0): DFP-6: disconnected
[ 42.075] (–) NVIDIA(GPU-0): DFP-6: Internal TMDS
[ 42.075] (–) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[ 42.075] (–) NVIDIA(GPU-0):
[ 42.075] (–) NVIDIA(GPU-0): DFP-7: disconnected
[ 42.075] (–) NVIDIA(GPU-0): DFP-7: Internal DisplayPort
[ 42.075] (–) NVIDIA(GPU-0): DFP-7: 1440.0 MHz maximum pixel clock
[ 42.075] (–) NVIDIA(GPU-0):
[ 42.075] (–) NVIDIA(GPU-0): DFP-8: disconnected
[ 42.075] (–) NVIDIA(GPU-0): DFP-8: Internal TMDS
[ 42.075] (–) NVIDIA(GPU-0): DFP-8: 165.0 MHz maximum pixel clock
[ 42.075] (–) NVIDIA(GPU-0):
[ 42.081] (==) NVIDIA(0):
[ 42.081] (==) NVIDIA(0): No modes were requested; the default mode “nvidia-auto-select”
[ 42.081] (==) NVIDIA(0): will be used as the requested mode.
[ 42.081] (==) NVIDIA(0):
[ 42.139] (II) NVIDIA(0): Validated MetaModes:
[ 42.139] (II) NVIDIA(0): “DFP-3:nvidia-auto-select”
[ 42.139] (II) NVIDIA(0): Virtual screen size determined to be 3840 x 2160
[ 42.151] (–) NVIDIA(0): DPI set to (162, 161); computed from “UseEdidDpi” X config
[ 42.151] (–) NVIDIA(0): option
[ 42.151] (II) UnloadModule: “nouveau”
[ 42.151] (II) Unloading nouveau
[ 42.151] (II) UnloadModule: “modesetting”
[ 42.151] (II) Unloading modesetting
[ 42.151] (II) UnloadModule: “fbdev”
[ 42.151] (II) Unloading fbdev
[ 42.151] (II) UnloadSubModule: “fbdevhw”
[ 42.151] (II) Unloading fbdevhw
[ 42.151] (II) UnloadModule: “vesa”
[ 42.151] (II) Unloading vesa
[ 42.151] (–) Depth 24 pixmap format is 32 bpp
[ 42.152] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[ 42.152] (II) NVIDIA: access.
[ 42.410] (II) NVIDIA(0): Setting mode “DFP-3:nvidia-auto-select”
[ 44.969] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 44.969] (==) NVIDIA(0): Backing store enabled
[ 44.969] (==) NVIDIA(0): Silken mouse enabled
[ 45.186] (==) NVIDIA(0): DPMS enabled
[ 45.186] (II) Loading sub module “dri2”
[ 45.186] (II) LoadModule: “dri2”
[ 45.186] (II) Module “dri2” already built-in
[ 45.186] (II) NVIDIA(0): [DRI2] Setup complete
[ 45.186] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[ 45.187] (–) RandR disabled
[ 45.192] (II) SELinux: Disabled on system
[ 45.201] (II) Initializing extension GLX
[ 45.201] (II) Indirect GLX disabled.
[ 45.772] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 45.772] (
) Power Button: Applying InputClass “libinput keyboard catchall”
[ 45.772] (II) LoadModule: “libinput”
[ 45.908] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 46.176] (II) Module libinput: vendor=“X.Org Foundation”
[ 46.177] compiled for 1.19.6, module version = 0.27.1
[ 46.177] Module class: X.Org XInput Driver
[ 46.177] ABI class: X.Org XInput driver, version 24.1
[ 46.177] (II) Using input driver ‘libinput’ for ‘Power Button’
[ 46.178] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 41 paused 0
[ 46.178] () Power Button: always reports core events
[ 46.178] (
) Option “Device” “/dev/input/event2”
[ 46.178] () Option “_source” “server/udev”
[ 46.179] (II) event2 - Power Button: is tagged by udev as: Keyboard
[ 46.179] (II) event2 - Power Button: device is a keyboard
[ 46.179] (II) event2 - Power Button: device removed
[ 46.179] (
) Option “config_info” “udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2”
[ 46.180] (II) XINPUT: Adding extended input device “Power Button” (type: KEYBOARD, id 6)
[ 46.180] () Option “xkb_model” “pc105”
[ 46.180] (
) Option “xkb_layout” “us”
[ 46.181] (II) event2 - Power Button: is tagged by udev as: Keyboard
[ 46.181] (II) event2 - Power Button: device is a keyboard
[ 46.181] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 46.181] () Power Button: Applying InputClass “libinput keyboard catchall”
[ 46.181] (II) Using input driver ‘libinput’ for ‘Power Button’
[ 46.183] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 44 paused 0
[ 46.183] (
) Power Button: always reports core events
[ 46.183] () Option “Device” “/dev/input/event1”
[ 46.183] (
) Option “_source” “server/udev”
[ 46.183] (II) event1 - Power Button: is tagged by udev as: Keyboard
[ 46.183] (II) event1 - Power Button: device is a keyboard
[ 46.183] (II) event1 - Power Button: device removed
[ 46.183] () Option “config_info” “udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1”
[ 46.184] (II) XINPUT: Adding extended input device “Power Button” (type: KEYBOARD, id 7)
[ 46.184] (
) Option “xkb_model” “pc105”
[ 46.184] () Option “xkb_layout” “us”
[ 46.185] (II) event1 - Power Button: is tagged by udev as: Keyboard
[ 46.185] (II) event1 - Power Button: device is a keyboard
[ 46.186] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[ 46.186] (
) Sleep Button: Applying InputClass “libinput keyboard catchall”
[ 46.186] (II) Using input driver ‘libinput’ for ‘Sleep Button’
[ 46.187] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 45 paused 0
[ 46.187] () Sleep Button: always reports core events
[ 46.187] (
) Option “Device” “/dev/input/event0”
[ 46.187] () Option “_source” “server/udev”
[ 46.188] (II) event0 - Sleep Button: is tagged by udev as: Keyboard
[ 46.188] (II) event0 - Sleep Button: device is a keyboard
[ 46.188] (II) event0 - Sleep Button: device removed
[ 46.188] (
) Option “config_info” “udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0/event0”
[ 46.188] (II) XINPUT: Adding extended input device “Sleep Button” (type: KEYBOARD, id 8)
[ 46.188] () Option “xkb_model” “pc105”
[ 46.188] (
) Option “xkb_layout” “us”
[ 46.189] (II) event0 - Sleep Button: is tagged by udev as: Keyboard
[ 46.189] (II) event0 - Sleep Button: device is a keyboard
[ 46.190] (II) config/udev: Adding input device Logitech USB Keyboard (/dev/input/event6)
[ 46.191] () Logitech USB Keyboard: Applying InputClass “libinput keyboard catchall”
[ 46.191] (II) Using input driver ‘libinput’ for ‘Logitech USB Keyboard’
[ 46.192] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 46 paused 0
[ 46.192] (
) Logitech USB Keyboard: always reports core events
[ 46.192] () Option “Device” “/dev/input/event6”
[ 46.192] (
) Option “_source” “server/udev”
[ 46.193] (II) event6 - Logitech USB Keyboard: is tagged by udev as: Keyboard
[ 46.193] (II) event6 - Logitech USB Keyboard: device is a keyboard
[ 46.193] (II) event6 - Logitech USB Keyboard: device removed
[ 46.193] () Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10.1/1-10.1:1.0/0003:046D:C31C.0004/input/input6/event6”
[ 46.193] (II) XINPUT: Adding extended input device “Logitech USB Keyboard” (type: KEYBOARD, id 9)
[ 46.193] (
) Option “xkb_model” “pc105”
[ 46.193] () Option “xkb_layout” “us”
[ 46.194] (II) event6 - Logitech USB Keyboard: is tagged by udev as: Keyboard
[ 46.194] (II) event6 - Logitech USB Keyboard: device is a keyboard
[ 46.196] (II) config/udev: Adding input device Logitech USB Keyboard (/dev/input/event7)
[ 46.196] (
) Logitech USB Keyboard: Applying InputClass “libinput keyboard catchall”
[ 46.196] (II) Using input driver ‘libinput’ for ‘Logitech USB Keyboard’
[ 46.197] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 47 paused 0
[ 46.197] () Logitech USB Keyboard: always reports core events
[ 46.197] (
) Option “Device” “/dev/input/event7”
[ 46.197] () Option “_source” “server/udev”
[ 46.198] (II) event7 - Logitech USB Keyboard: is tagged by udev as: Keyboard
[ 46.198] (II) event7 - Logitech USB Keyboard: device is a keyboard
[ 46.198] (II) event7 - Logitech USB Keyboard: device removed
[ 46.198] (
) Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10.1/1-10.1:1.1/0003:046D:C31C.0005/input/input7/event7”
[ 46.198] (II) XINPUT: Adding extended input device “Logitech USB Keyboard” (type: KEYBOARD, id 10)
[ 46.198] () Option “xkb_model” “pc105”
[ 46.199] (
) Option “xkb_layout” “us”
[ 46.200] (II) event7 - Logitech USB Keyboard: is tagged by udev as: Keyboard
[ 46.200] (II) event7 - Logitech USB Keyboard: device is a keyboard
[ 46.201] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/event8)
[ 46.201] () Logitech USB Optical Mouse: Applying InputClass “libinput pointer catchall”
[ 46.201] (II) Using input driver ‘libinput’ for ‘Logitech USB Optical Mouse’
[ 46.202] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 48 paused 0
[ 46.202] (
) Logitech USB Optical Mouse: always reports core events
[ 46.202] () Option “Device” “/dev/input/event8”
[ 46.202] (
) Option “_source” “server/udev”
[ 46.203] (II) event8 - Logitech USB Optical Mouse: is tagged by udev as: Mouse
[ 46.203] (II) event8 - Logitech USB Optical Mouse: device is a pointer
[ 46.203] (II) event8 - Logitech USB Optical Mouse: device removed
[ 46.203] () Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10.2/1-10.2:1.0/0003:046D:C077.0006/input/input8/event8”
[ 46.203] (II) XINPUT: Adding extended input device “Logitech USB Optical Mouse” (type: MOUSE, id 11)
[ 46.204] (
) Option “AccelerationScheme” “none”
[ 46.204] () Logitech USB Optical Mouse: (accel) selected scheme none/0
[ 46.204] (
) Logitech USB Optical Mouse: (accel) acceleration factor: 2.000
[ 46.204] () Logitech USB Optical Mouse: (accel) acceleration threshold: 4
[ 46.205] (II) event8 - Logitech USB Optical Mouse: is tagged by udev as: Mouse
[ 46.205] (II) event8 - Logitech USB Optical Mouse: device is a pointer
[ 46.206] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse1)
[ 46.206] (II) No input driver specified, ignoring this device.
[ 46.206] (II) This device may have been added with another device file.
[ 46.207] (II) config/udev: Adding input device Dell Dell Universal Receiver (/dev/input/event4)
[ 46.207] (
) Dell Dell Universal Receiver: Applying InputClass “libinput keyboard catchall”
[ 46.207] (II) Using input driver ‘libinput’ for ‘Dell Dell Universal Receiver’
[ 46.208] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 49 paused 0
[ 46.208] () Dell Dell Universal Receiver: always reports core events
[ 46.208] (
) Option “Device” “/dev/input/event4”
[ 46.208] () Option “_source” “server/udev”
[ 46.209] (II) event4 - Dell Dell Universal Receiver: is tagged by udev as: Keyboard
[ 46.209] (II) event4 - Dell Dell Universal Receiver: device is a keyboard
[ 46.209] (II) event4 - Dell Dell Universal Receiver: device removed
[ 46.209] (
) Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:413C:301D.0001/input/input4/event4”
[ 46.209] (II) XINPUT: Adding extended input device “Dell Dell Universal Receiver” (type: KEYBOARD, id 12)
[ 46.209] () Option “xkb_model” “pc105”
[ 46.209] (
) Option “xkb_layout” “us”
[ 46.210] (II) event4 - Dell Dell Universal Receiver: is tagged by udev as: Keyboard
[ 46.210] (II) event4 - Dell Dell Universal Receiver: device is a keyboard
[ 46.211] (II) config/udev: Adding input device Dell Dell Universal Receiver (/dev/input/event5)
[ 46.211] () Dell Dell Universal Receiver: Applying InputClass “libinput pointer catchall”
[ 46.211] (
) Dell Dell Universal Receiver: Applying InputClass “libinput keyboard catchall”
[ 46.211] (II) Using input driver ‘libinput’ for ‘Dell Dell Universal Receiver’
[ 46.212] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 50 paused 0
[ 46.212] () Dell Dell Universal Receiver: always reports core events
[ 46.212] (
) Option “Device” “/dev/input/event5”
[ 46.212] () Option “_source” “server/udev”
[ 46.213] (II) event5 - Dell Dell Universal Receiver: is tagged by udev as: Keyboard Mouse
[ 46.213] (II) event5 - Dell Dell Universal Receiver: device is a pointer
[ 46.213] (II) event5 - Dell Dell Universal Receiver: device is a keyboard
[ 46.213] (II) event5 - Dell Dell Universal Receiver: device removed
[ 46.213] (II) libinput: Dell Dell Universal Receiver: needs a virtual subdevice
[ 46.213] (
) Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:413C:301D.0002/input/input5/event5”
[ 46.213] (II) XINPUT: Adding extended input device “Dell Dell Universal Receiver” (type: MOUSE, id 13)
[ 46.213] () Option “AccelerationScheme” “none”
[ 46.213] (
) Dell Dell Universal Receiver: (accel) selected scheme none/0
[ 46.213] () Dell Dell Universal Receiver: (accel) acceleration factor: 2.000
[ 46.213] (
) Dell Dell Universal Receiver: (accel) acceleration threshold: 4
[ 46.214] (II) event5 - Dell Dell Universal Receiver: is tagged by udev as: Keyboard Mouse
[ 46.214] (II) event5 - Dell Dell Universal Receiver: device is a pointer
[ 46.214] (II) event5 - Dell Dell Universal Receiver: device is a keyboard
[ 46.215] (II) config/udev: Adding input device Dell Dell Universal Receiver (/dev/input/mouse0)
[ 46.215] (II) No input driver specified, ignoring this device.
[ 46.215] (II) This device may have been added with another device file.
[ 46.216] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event14)
[ 46.216] (II) No input driver specified, ignoring this device.
[ 46.216] (II) This device may have been added with another device file.
[ 46.216] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event15)
[ 46.216] (II) No input driver specified, ignoring this device.
[ 46.216] (II) This device may have been added with another device file.
[ 46.217] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event16)
[ 46.217] (II) No input driver specified, ignoring this device.
[ 46.217] (II) This device may have been added with another device file.
[ 46.217] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event17)
[ 46.217] (II) No input driver specified, ignoring this device.
[ 46.217] (II) This device may have been added with another device file.
[ 46.218] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event10)
[ 46.218] (II) No input driver specified, ignoring this device.
[ 46.218] (II) This device may have been added with another device file.
[ 46.218] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event11)
[ 46.218] (II) No input driver specified, ignoring this device.
[ 46.218] (II) This device may have been added with another device file.
[ 46.219] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event12)
[ 46.219] (II) No input driver specified, ignoring this device.
[ 46.219] (II) This device may have been added with another device file.
[ 46.219] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event13)
[ 46.219] (II) No input driver specified, ignoring this device.
[ 46.219] (II) This device may have been added with another device file.
[ 46.220] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event9)
[ 46.220] () Dell WMI hotkeys: Applying InputClass “libinput keyboard catchall”
[ 46.220] (II) Using input driver ‘libinput’ for ‘Dell WMI hotkeys’
[ 46.221] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 51 paused 0
[ 46.221] (
) Dell WMI hotkeys: always reports core events
[ 46.221] () Option “Device” “/dev/input/event9”
[ 46.221] (
) Option “_source” “server/udev”
[ 46.222] (II) event9 - Dell WMI hotkeys: is tagged by udev as: Keyboard
[ 46.222] (II) event9 - Dell WMI hotkeys: device is a keyboard
[ 46.222] (II) event9 - Dell WMI hotkeys: device removed
[ 46.222] () Option “config_info” “udev:/sys/devices/platform/PNP0C14:02/wmi_bus/wmi_bus-PNP0C14:02/9DBB5994-A997-11DA-B012-B622A1EF5492/input/input9/event9”
[ 46.222] (II) XINPUT: Adding extended input device “Dell WMI hotkeys” (type: KEYBOARD, id 14)
[ 46.222] (
) Option “xkb_model” “pc105”
[ 46.222] () Option “xkb_layout” “us”
[ 46.222] (II) event9 - Dell WMI hotkeys: is tagged by udev as: Keyboard
[ 46.222] (II) event9 - Dell WMI hotkeys: device is a keyboard
[ 46.223] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[ 46.223] (
) AT Translated Set 2 keyboard: Applying InputClass “libinput keyboard catchall”
[ 46.223] (II) Using input driver ‘libinput’ for ‘AT Translated Set 2 keyboard’
[ 46.224] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 52 paused 0
[ 46.224] () AT Translated Set 2 keyboard: always reports core events
[ 46.224] (
) Option “Device” “/dev/input/event3”
[ 46.224] () Option “_source” “server/udev”
[ 46.225] (II) event3 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 46.225] (II) event3 - AT Translated Set 2 keyboard: device is a keyboard
[ 46.225] (II) event3 - AT Translated Set 2 keyboard: device removed
[ 46.225] (
) Option “config_info” “udev:/sys/devices/platform/i8042/serio0/input/input3/event3”
[ 46.225] (II) XINPUT: Adding extended input device “AT Translated Set 2 keyboard” (type: KEYBOARD, id 15)
[ 46.225] () Option “xkb_model” “pc105”
[ 46.225] (
) Option “xkb_layout” “us”
[ 46.226] (II) event3 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 46.226] (II) event3 - AT Translated Set 2 keyboard: device is a keyboard
[ 46.232] () Dell Dell Universal Receiver: Applying InputClass “libinput pointer catchall”
[ 46.232] (
) Dell Dell Universal Receiver: Applying InputClass “libinput keyboard catchall”
[ 46.232] (II) Using input driver ‘libinput’ for ‘Dell Dell Universal Receiver’
[ 46.232] (II) systemd-logind: returning pre-existing fd for /dev/input/event5 13:69
[ 46.232] () Dell Dell Universal Receiver: always reports core events
[ 46.232] (
) Option “Device” “/dev/input/event5”
[ 46.232] () Option “_source” “_driver/libinput”
[ 46.232] (II) libinput: Dell Dell Universal Receiver: is a virtual subdevice
[ 46.232] (
) Option “config_info” “udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:413C:301D.0002/input/input5/event5”
[ 46.232] (II) XINPUT: Adding extended input device “Dell Dell Universal Receiver” (type: KEYBOARD, id 16)
[ 46.232] () Option “xkb_model” “pc105”
[ 46.232] (
) Option “xkb_layout” “us”
[ 53.875] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 53.875] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 53.875] (–) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 53.875] (–) NVIDIA(GPU-0):
[ 53.875] (–) NVIDIA(GPU-0): DFP-1: disconnected
[ 53.875] (–) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 53.875] (–) NVIDIA(GPU-0): DFP-1: 1440.0 MHz maximum pixel clock
[ 53.875] (–) NVIDIA(GPU-0):
[ 53.875] (–) NVIDIA(GPU-0): DFP-2: disconnected
[ 53.875] (–) NVIDIA(GPU-0): DFP-2: Internal TMDS
[ 53.875] (–) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[ 53.875] (–) NVIDIA(GPU-0):
[ 53.876] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): connected
[ 53.876] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): Internal DisplayPort
[ 53.876] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): 1440.0 MHz maximum pixel clock
[ 53.876] (–) NVIDIA(GPU-0):
[ 53.879] (–) NVIDIA(GPU-0): DFP-4: disconnected
[ 53.879] (–) NVIDIA(GPU-0): DFP-4: Internal TMDS
[ 53.879] (–) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[ 53.879] (–) NVIDIA(GPU-0):
[ 53.879] (–) NVIDIA(GPU-0): DFP-5: disconnected
[ 53.879] (–) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[ 53.879] (–) NVIDIA(GPU-0): DFP-5: 1440.0 MHz maximum pixel clock
[ 53.879] (–) NVIDIA(GPU-0):
[ 53.879] (–) NVIDIA(GPU-0): DFP-6: disconnected
[ 53.879] (–) NVIDIA(GPU-0): DFP-6: Internal TMDS
[ 53.879] (–) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[ 53.879] (–) NVIDIA(GPU-0):
[ 53.879] (–) NVIDIA(GPU-0): DFP-7: disconnected
[ 53.879] (–) NVIDIA(GPU-0): DFP-7: Internal DisplayPort
[ 53.879] (–) NVIDIA(GPU-0): DFP-7: 1440.0 MHz maximum pixel clock
[ 53.879] (–) NVIDIA(GPU-0):
[ 53.880] (–) NVIDIA(GPU-0): DFP-8: disconnected
[ 53.880] (–) NVIDIA(GPU-0): DFP-8: Internal TMDS
[ 53.880] (–) NVIDIA(GPU-0): DFP-8: 165.0 MHz maximum pixel clock
[ 53.880] (–) NVIDIA(GPU-0):
[ 66.487] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 66.487] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 66.487] (–) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 66.487] (–) NVIDIA(GPU-0):
[ 66.487] (–) NVIDIA(GPU-0): DFP-1: disconnected
[ 66.487] (–) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 66.487] (–) NVIDIA(GPU-0): DFP-1: 1440.0 MHz maximum pixel clock
[ 66.487] (–) NVIDIA(GPU-0):
[ 66.487] (–) NVIDIA(GPU-0): DFP-2: disconnected
[ 66.487] (–) NVIDIA(GPU-0): DFP-2: Internal TMDS
[ 66.487] (–) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[ 66.487] (–) NVIDIA(GPU-0):
[ 66.487] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): connected
[ 66.487] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): Internal DisplayPort
[ 66.487] (–) NVIDIA(GPU-0): DELL P2715Q (DFP-3): 1440.0 MHz maximum pixel clock
[ 66.487] (–) NVIDIA(GPU-0):
[ 66.490] (–) NVIDIA(GPU-0): DFP-4: disconnected
[ 66.490] (–) NVIDIA(GPU-0): DFP-4: Internal TMDS
[ 66.490] (–) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[ 66.490] (–) NVIDIA(GPU-0):
[ 66.490] (–) NVIDIA(GPU-0): DFP-5: disconnected
[ 66.490] (–) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[ 66.490] (–) NVIDIA(GPU-0): DFP-5: 1440.0 MHz maximum pixel clock
[ 66.490] (–) NVIDIA(GPU-0):
[ 66.490] (–) NVIDIA(GPU-0): DFP-6: disconnected
[ 66.490] (–) NVIDIA(GPU-0): DFP-6: Internal TMDS
[ 66.490] (–) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[ 66.490] (–) NVIDIA(GPU-0):
[ 66.490] (–) NVIDIA(GPU-0): DFP-7: disconnected
[ 66.490] (–) NVIDIA(GPU-0): DFP-7: Internal DisplayPort
[ 66.490] (–) NVIDIA(GPU-0): DFP-7: 1440.0 MHz maximum pixel clock
[ 66.490] (–) NVIDIA(GPU-0):
[ 66.490] (–) NVIDIA(GPU-0): DFP-8: disconnected
[ 66.490] (–) NVIDIA(GPU-0): DFP-8: Internal TMDS
[ 66.490] (–) NVIDIA(GPU-0): DFP-8: 165.0 MHz maximum pixel clock
[ 66.490] (–) NVIDIA(GPU-0):

Please make sure the DISPLAY variable is properly set and your user has permission to connect to the Xserver or XAUTHORITY is set. e.g.
DISPLAY=:0 glxinfo

Hi generix, thanks for your prompt response, i do have the permission to connect to the Xserver and XAUTHORITY.
i run the echo $DISPLAY, it output localhost: 10.0.

You are using ssh with X redirection, so you’re querying your Windows machine. Which doesn’t work for obvious reasons. Set the variable like the example.

can you please detail how should i do? i’m a newby of ubuntu system, have been searched a lot,but have not figure out the correct way. thanks in advance.

i set DISPLAY using:
export DISPLAY=:0
then glxinfo:
No protocol specified
Error: unable to open display :0
then i set DISPLAY using:
export DISPLAY= my windows ip address: 0.0
then glxinfo:
nothing

No protocol specified means you need to set XAUTHORITY
Please see this:
https://forums.developer.nvidia.com/t/nvidia-settings-unable-to-load-info-from-any-available-system/120192

The provided command are:
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [fan:0]/GPUTargetFanSpeed=75

however, in our server, there is no lightdm folder, it has gdm3 folder corresponding, and there is no /root/ folder too,
in the /var/run/gdm3/ folder, there are one empty folder (greeter) and one file (custom.conf).
the custom.conf contains two lines:

  1. [daemon]
  2. WaylandEnable=false

can you please let me know what i should do in this situation? it looks like i should install some packages. thank in advance.

PS: i have upgraded system from 18.04 to 20.04.
before i reinstall nvidia-driver, the glxinfo works as normal case. I get the same glxinfo error when i reinstall nvidia-driver 495.44.run

Please read the whole thread, I’m explaining how to find the correct setting for XAUTHORITY there.

my mistake.
I run the ps aux| grep X, and obtain Xauthority location:
the output :
root 1565 0.0 0.0 25351632 53956 tty1 Sl+ Nov10 0:01 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run /user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root 53997 0.0 0.0 8900 664 pts/0 S+ 10:37 0:00 grep --color=auto X

then i run commands in root:

  1. export DISPLAY=:0 XAUTHORITY=/run/user/121/gdm/Xauthority
  2. glxinfo

i get the correct output.

but when i exit root and go back to user account, directly run glxinfo:
i get the same error:
X Error of failed request: GLXBadContextTag
Major opcode of failed request: 146 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 39
Current serial number in output stream: 39

but when i run echo $DISPLAY in user account:
the output is :0
run: echo $XAUTHORITY, get nothing.

then i run commands:
1.export DISPLAY=:0 XAUTHORITY=/run/user/121/gdm/Xauthority
2. glxinfo:
the output :
No protocol specified
Error: unable to open display :0

in my /etc/ssh/sshd_config:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no

i’m not sure whether my sshd_config configuration effects or not.
or glxinfo only can be run in root account, is there a way to make sure user account can also run glxinfo or make the configuration permanently so that i don’t need to run export every time. in the user account, i can put it into the .barshr , but i don’t know what root can do.
I need to run unrealeng (UE4Editor) in user account.glxinfo error is the first error i encounter. “Could not initialize SDL: No available video device” is the second error, it looks all are related with graph card and settings.

Now this is really basic stuff, file permissions. The Xserver you’re trying to access belongs to user ‘gdm’, the login manager. Thus also the auth file. Only root can access other user’s files without explicitly setting permission.
You can simply start your own Xserver as user (if in correct groups) using
startx &
which you can then access as user because it belongs to you. Likely you then have to set DISPLAY=:1 if not auto-set. Then you can use e.g. x11vnc to make it accessible from your Windows machine using a VNC viewer.

hi generix, thanks for your patience. I really lack the linux system knowledge and need to learn more. please take a look at my following questions, i will be very appreciated if you can help me solve/answer them thanks in advance.

  1. i’m unsure about your suggestion that if my user account in correct groups. can you please let me know which groups should i added so that i can run the Xserver?
    i search online, someone suggest to edit /etx/X11/Xwrapper.config , allowed_users=anybody.
    but i’m not sure whether it is correct/safe operation

  2. in my user account, run command: startx &
    the output:
    /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
    xinit: giving up
    xinit: unable to connect to X server: Connection refused
    xinit: server error
    Couldn’t get a file descriptor referring to the console

  3. for the x11vnc, i check online, it need to install lightdm, i found the information from this website: How to Install and Run a VNC Server on Ubuntu Linux,
    whether i should first solve the startx issue and then move to x11vnc step or i can directly to into step that install x11vnc , since the x11vnc is using lightdm which is different with gdm3 which i currently use.

  4. i install x11vnc on the ubuntu, and run one docker image in display and off-screen mode, i get the following errors:
    sh: 1:xdg-user-dir: not found
    Failed to establish dbus connection
    or
    sh: 1:xdg-user-dir: not found
    error: XDG_RUNTIME_DIR not set in the environment.

    i check my dbs.service, it looks fine.
    can you please point out where the problem may be and how to solve it? thanks a lot.

  5. if it is not too much trouble, can you please also help me to config vcn server to make sure multi-user can access ubuntu vnc.
    this line i think it suppose to let one user to access x11vnc server,
    ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd randompassword
    if multi-user want to access ubuntu vnc, what the other package i should install? there are so many solution in the internet, can you please provide me a correct solution?

This is really outside of the scope of this forum, and I have no idea what kind of machine you’re trying to connect to and what you want to achieve. I can only give you some hints:

  1. it depends on your distro, which permissions are given to tthe nvidia device files
    ls -l /dev/nvid*
    most often, group “video”
  2. an Xserver can be started by any user at the console (the real keyboard/mouse/monitor) or over ssh by root or any user when that option is set.
  3. x11vnc doesn’t actually depend on lightdm, installing this has a different background: GDM is spawning a second xserver for the user session. Meaning, x11vnc is connected to :0, you see the gdm login screen, you login and then get kicked out because the user session runs in xserver :1
  4. No idea, I didn’t even understand what you were doing.
  5. This is rather advanced chemistry if you want to use hw accel. Keep in mind that there’s only one gpu that can only be used by one user at a time. A simple multi-user remote scenario, like Windows Terminal-Server/RD-Server is done using xrdp but this only spawns virtual xservers running in software without hw accel. To have that, virtualgl can be used but as the name hints, this only works for opengl, not vulkan.

For the most simple scenario, install lightdm, switch to it as default DM, set up x11vnc running as root to share that session. This can be refined by using tigervnc’s x0vncserver, pipe that to xrdp, then connect using RDP-Client.

thanks generix, you really help me solve a huge problem. I truly appreciate you and words cannot express my appreciation.

PS: I will try to figure out the problem 4, which i open vnc viewer in my windows 10 system to remotely access my ubuntu server. Then i run a docker image in the vnc viewer.