Jetson Nano mouse and keyboard failure

Recently I am working on remote desktop control of jetson nano, Ubuntu18.04 system.

After installing Sunflower, you can operate it remotely normally.

But something went wrong during startup – starting nano without connecting to the monitor will not automatically enter the desktop graphical interface. At this time, using Sunflower to initiate remote control will display a connection error.

Log file

Log file records:

[ 8.455] (II) config/udev: Adding input device tegra-hda HDMI/DP,pcm=3 (/dev/input/event0)
[8.455] (II) No input driver specified, ignoring this device.
[8.455] (II) This device may have been added with another device file.
[ 8.456] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event2)
[8.457] (II) No input driver specified, ignoring this device.
[8.457] (II) This device may have been added with another device file.
[ 8.458] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/mouse0)
[8.458] (II) No input driver specified, ignoring this device.
[8.458] (II) This device may have been added with another device file.
[ 8.460] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event3)
[8.460] (II) No input driver specified, ignoring this device.
[8.460] (II) This device may have been added with another device file.
[8.461] (II) config/udev: Adding input device gpio-keys (/dev/input/event1)
[8.461] (II) No input driver specified, ignoring this device.
[ 8.461] (II) This device may have been added with another device file.

What caused it

Add the following content to the /etc/X11/xorg.conf configuration file (as taught by GPT):

Section "ServerFlags"
    Option "AutoAddDevices" "False"
EndSection

After restarting, I found that the desktop still does not start automatically when the monitor is not connected, and at this time the external mouse and keyboard cannot be used (the 2.4g indicator light is not on).

GPT says this line of code is used to disable automatic addition of devices.

After deleting these lines of code and restarting the system, the mouse and keyboard can be used.

I found another article on the use of virtual monitors written by an expert on the Internet: article link

sudo apt-get install xserver-xorg-core-hwe-18.04
sudo apt-get install xserver-xorg-video-dummy-hwe-18.04 --fix-missing

After installing the related file library for using the virtual display, I found that after using this method, even if an external display is connected, the signal will not be output to the display (only the virtual display can be used, not the physical display. I am So understood).

So I stopped at this point and did not continue to follow.

But after restarting nano, the mouse and keyboard cannot be used again. I don’t know why? ? ? ?

Does anyone know where the problem is? Please help! ! !

Or is there any way to make the system skip the screen detection process and control it remotely after starting it directly? .

PS: I also followed the above article link to create /usr/share/X11/xorg.conf.d/xorg.conf and added relevant content. However, because I saw that this operation would make the physical display unusable, I changed xorg.conf The file was moved out of the xorg.conf.d directory and placed in a directory created by the desktop itself. I don’t know if it has anything to do with this.

Does anyone know how to make the mouse and keyboard work? Now I want to control the system only remotely, which is too troublesome. I look forward to your answers.

It’s just a novice operation, I really don’t understand it, I hope someone can see it

Attachment: Complete Xorg.0.log log file

[ 7.654]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[7.654] X Protocol Version 11, Revision 0
[ 7.654] Build Operating System: Linux 5.4.0-139-generic aarch64 Ubuntu
[ 7.654] Current Operating System: Linux IETS-Desktop 4.9.337-tegra #1 SMP PREEMPT Thu Jun 8 21:19:14 PDT 2023 aarch64
[ 7.655] Kernel command line: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0, 115200n8 debug_uartport=lsport,4 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1125 core_edp_ma=4000 gpt tegra_fbmem=0x 800000@0x92ca9000 is_hdmi_initialised=1 earlycon=uart8250,mmio32,0x70006000 root= /dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map :0 net.ifnames=0
[7.656] Build Date: 29 March 2023 03:17:58PM
[ 7.656] xorg-server 2:1.19.6-1ubuntu4.15 (For technical support please see http://www.ubuntu.com/support)
[ 7.656] Current version of pixman: 0.34.0
[ 7.656] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 7.656] Markers: (--) probed, (**) from config file, (==) default setting,
( + + ) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, () unknown.
[ 7.656] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Sep 25 12:40:55 2023
[ 7.661] (==) Using config file: "/etc/X11/xorg.conf"
[ 7.661] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 7.664] (==) No Layout section. Using the first Screen section.
[ 7.664] (==) No screen section available. Using defaults.
[ 7.664] (**) |-->Screen "Default Screen Section" (0)
[ 7.664] (**) | |-->Monitor "<default monitor>"
[ 7.665] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 7.665] (**) | |-->Device "Tegra0"
[ 7.665] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 7.665] (**) Option "AutoAddDevices" "true"
[ 7.665] (**) Automatically adding devices
[ 7.665] (==) Automatically enabling devices
[ 7.665] (==) Automatically adding GPU devices
[ 7.665] (==) Automatically binding GPU devices
[ 7.665] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 7.671] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 7.671] Entry deleted from font path.
[ 7.671] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 7.671] Entry deleted from font path.
[ 7.671] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 7.671] Entry deleted from font path.
[ 7.675] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 7.675] Entry deleted from font path.
[ 7.675] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 7.675] Entry deleted from font path.
[ 7.675] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 7.675] (==) ModulePath set to "/usr/lib/xorg/modules"
[7.675] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 7.675] (II) Loader magic: 0x55572b5010
[ 7.675] (II) Module ABI versions:
[7.675] X.Org ANSI C Emulation: 0.4
[ 7.675] X.Org Video Driver: 23.0
[ 7.675] X.Org XInput driver : 24.1
[ 7.675] X.Org Server Extension : 10.0
[ 7.677] ( + + ) using VT number 7

[7.677] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 7.679] (II) no primary bus or device found
[ 7.679] (WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.
[ 7.679] (II) "glx" will be loaded by default.
[ 7.679] (II) LoadModule: "extmod"
[ 7.679] (II) Module "extmod" already built-in
[ 7.679] (II) LoadModule: "glx"
[ 7.681] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 7.709] (II) Module glx: vendor="X.Org Foundation"
[7.709] compiled for 1.19.6, module version = 1.0.0
[7.709] ABI class: X.Org Server Extension, version 10.0
[ 7.709] (II) LoadModule: "nvidia"
[7.712] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 7.756] (II) Module nvidia: vendor="NVIDIA Corporation"
[7.756] compiled for 4.0.2, module version = 1.0.0
[ 7.756] Module class: X.Org Video Driver
[ 7.775] (II) NVIDIA dlloader X Driver 32.7.4 Release Build (integ_stage_rel) (buildbrain@mobile-u64-5434-d8000) Thu Jun 8 21:19:16 PDT 2023
[7.775] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 7.803] (WW) Falling back to old probe method for NVIDIA
[ 7.803] (II) Loading sub module "fb"
[ 7.803] (II) LoadModule: "fb"
[ 7.803] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 7.808] (II) Module fb: vendor="X.Org Foundation"
[7.808] compiled for 1.19.6, module version = 1.0.0
[7.808] ABI class: X.Org ANSI C Emulation, version 0.4
[ 7.808] (II) Loading sub module "wfb"
[ 7.808] (II) LoadModule: "wfb"
[ 7.808] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 7.812] (II) Module wfb: vendor="X.Org Foundation"
[7.812] compiled for 1.19.6, module version = 1.0.0
[7.812] ABI class: X.Org ANSI C Emulation, version 0.4
[ 7.812] (II) Loading sub module "ramdac"
[ 7.812] (II) LoadModule: "ramdac"
[ 7.812] (II) Module "ramdac" already built-in
[ 7.813] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 7.813] (II) NVIDIA(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 7.813] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 7.813] (==) NVIDIA(0): RGB weight 888
[ 7.813] (==) NVIDIA(0): Default visual is TrueColor
[ 7.813] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 7.813] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[ 7.813] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration" "true"
[ 7.813] (**) NVIDIA(0): Enabling 2D acceleration
[ 7.813] (II) Loading sub module "glxserver_nvidia"
[ 7.814] (II) LoadModule: "glxserver_nvidia"
[ 7.814] (II) Loading /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so
[ 8.057] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[8.057] compiled for 4.0.2, module version = 1.0.0
[8.057] Module class: X.Org Server Extension
[ 8.057] (II) NVIDIA GLX Module 32.7.4 Release Build (integ_stage_rel) (buildbrain@mobile-u64-5434-d8000) Thu Jun 8 21:18:43 PDT 2023
[ 8.096] (--) NVIDIA(0): Valid display device(s) on GPU-0 at SoC
[ 8.096] (--) NVIDIA(0): DFP-0
[ 8.096] (--) NVIDIA(0): DFP-1
[8.096] (II) NVIDIA(0): NVIDIA GPU NVIDIA Tegra X1 (nvgpu) (GM20B) at SoC (GPU-0)
[ 8.096] (--) NVIDIA(0): Memory: 4050824 kBytes
[ 8.096] (--) NVIDIA(0): VideoBIOS:
[ 8.096] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): connected
[ 8.096] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): External TMDS
[ 8.097] (==) NVIDIA(0):
[ 8.097] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 8.097] (==) NVIDIA(0): will be used as the requested mode.
[ 8.097] (==) NVIDIA(0):
[8.097] (II) NVIDIA(0): Validated MetaModes:
[ 8.097] (II) NVIDIA(0): "DFP-0:nvidia-auto-select"
[ 8.097] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[ 8.099] (--) NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
[ 8.099] (--) NVIDIA(0): option
[ 8.099] (--) Depth 24 pixmap format is 32 bpp
[8.100] (II) NVIDIA: Reserving 6144.00 MB of virtual memory for indirect memory
[8.100] (II) NVIDIA: access.
[ 8.104] (EE) NVIDIA(0): Failed to allocate NVIDIA Error Handler
[8.104] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 8.104] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
[8.104] (II) NVIDIA(0): configuration option may not be set correctly. When the
[8.104] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
[ 8.104] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
[ 8.104] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
[ 8.104] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
[ 8.104] (II) NVIDIA(0): Config Options in the README.
[ 8.198] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[ 8.210] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 8.210] (==) NVIDIA(0): Backing store enabled
[ 8.210] (==) NVIDIA(0): Silken mouse enabled
[ 8.224] (==) NVIDIA(0): DPMS enabled
[ 8.224] (II) Loading sub module "dri2"
[8.224] (II) LoadModule: "dri2"
[ 8.224] (II) Module "dri2" already built-in
[ 8.224] (II) NVIDIA(0): [DRI2] Setup complete
[8.224] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[ 8.243] (--) RandR disabled
[8.251] (II) SELinux: Disabled on system
[8.253] (II) Initializing extension GLX
[8.253] (II) Indirect GLX disabled.
[ 8.455] (II) config/udev: Adding input device tegra-hda HDMI/DP,pcm=3 (/dev/input/event0)
[8.455] (II) No input driver specified, ignoring this device.
[8.455] (II) This device may have been added with another device file.
[ 8.456] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event2)
[8.457] (II) No input driver specified, ignoring this device.
[8.457] (II) This device may have been added with another device file.
[ 8.458] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/mouse0)
[8.458] (II) No input driver specified, ignoring this device.
[8.458] (II) This device may have been added with another device file.
[ 8.460] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event3)
[8.460] (II) No input driver specified, ignoring this device.
[8.460] (II) This device may have been added with another device file.
[8.461] (II) config/udev: Adding input device gpio-keys (/dev/input/event1)
[8.461] (II) No input driver specified, ignoring this device.
[8.461] (II) This device may have been added with another device file.
[ 11.358] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): connected
[ 11.358] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): External TMDS
[ 11.358] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): connected
[ 11.358] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): External TMDS
[ 506.145] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): connected
[506.145] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): External TMDS
[ 506.182] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): connected
[ 506.182] (--) NVIDIA(GPU-0): AOC 24B1W1 (DFP-0): External TMDS

Problem Solving

After almost a month, I finally solved this problem! ! !

reason:

sudo apt-get install xserver-xorg-core-hwe-18.04

When executing the command, the system automatically uninstalls xserver-xorg-input, causing the input folder in the system’s /usr/lib/xorg/modules/ directory to be deleted, where the driver files of the input devices are stored.

solution:

sudo apt-get install xserver-xorg-input-all

Download the input device driver again, then restart the Xorg server, and the problem will be solved.