Ensoleile 发表于 2023-9-25 15:08:58

Ubuntu18.04键盘、鼠标不能用

最近在搞jetson nano的远程桌面控制,Ubuntu18.04系统。

安装向日葵后可以正常远程操作。

但是在启动时出问题了——不连接显示器的情况下启动nano,不会自动进入桌面图形界面,这时候再用向日葵发起远程控制会显示连接出错。

日志文件
日志文件记录:
[   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.

怎么引起的
在/etc/X11/xorg.conf配置文件中添加以下内容(GPT教的):
Section "ServerFlags"
    Option "AutoAddDevices" "False"
EndSection

重启后发现不连接显示器时依然不会自动启动桌面,而此时外接的鼠标、键盘都不能用了(2.4g指示灯都没亮)。

GPT说这行代码用来禁用自动添加设备。

删除这几行代码后重启系统,鼠标、键盘可以用了。

在网上又找了个大佬写的使用虚拟显示器的文章:文章链接

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

安装了使用虚拟显示器的相关文件库后,发现使用这种方法后,会出现即使外接了显示器,信号也不会输出到显示器上的情况(只能用虚拟显示器,不能用物理显示器了,我是这么理解的)。

所以到这步就停了,没有继续跟着走下去。

但是重新启动nano后,鼠标、键盘又不能用了,不知道是为什么????

有没有大佬知道在哪个地方出了问题了,求助!!!

或者有什么方法让系统跳过屏幕检测程序,直接开机后就能远程控制。。

PS:也跟着上述文章链接创建了/usr/share/X11/xorg.conf.d/xorg.conf,并添加了相关内容,但是由于看见这个操作会使物理显示器不能用,所以就把xorg.conf文件移出了xorg.conf.d目录,放到了桌面自己创建的一个目录下,不知道和这个有没有关系。

有没有大佬知道怎么才能让鼠标键盘能用,现在想控制系统只能远程操作,太麻烦了,期待各位大佬的回答。

纯纯纯新手操作,确实不懂,希望能有大佬看见

附:Xorg.0.log日志文件完整内容
[   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=0x800000@0x92ca9000 is_hdmi_initialised=1earlycon=uart8250,mmio32,0x70006000root=/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 202303: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 Driver32.7.4Release Build(integ_stage_rel)(buildbrain@mobile-u64-5434-d8000)Thu Jun8 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 Module32.7.4Release Build(integ_stage_rel)(buildbrain@mobile-u64-5434-d8000)Thu Jun8 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): Setup complete
[   8.224] (II) NVIDIA(0):    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

isdkz 发表于 2023-9-25 15:08:59

根据您提供的信息,可能有几个原因导致键盘和鼠标无法使用:

1. 在xorg.conf配置文件中禁用了自动添加设备。这可能导致系统无法识别和使用键盘和鼠标。您可以尝试删除这些配置并重启系统,看看是否解决了问题。

2. 安装了虚拟显示器相关的文件库后,无法使用物理显示器。这可能导致系统无法检测到键盘和鼠标。您可以尝试卸载这些文件库并重启系统,看看是否解决了问题。

3. 在启动时不连接显示器,系统无法自动进入桌面图形界面。这可能导致键盘和鼠标无法使用。您可以尝试连接显示器并重新启动系统,看看是否解决了问题。

如果上述方法都无法解决问题,您可以尝试以下方法:

1. 在启动时按下Ctrl+Alt+F1,进入终端模式。然后尝试使用命令行控制系统。

2. 在终端模式下,检查系统的输入设备是否被正确识别。您可以使用以下命令查看输入设备列表:

      ls /dev/input/
   

   如果键盘和鼠标设备在列表中显示,请尝试重新配置它们。

3. 检查系统的日志文件,查看是否有与输入设备相关的错误或警告信息。您可以使用以下命令查看日志文件:

      cat /var/log/Xorg.0.log
   

   如果发现与输入设备相关的错误或警告信息,请尝试解决这些问题。

如果您仍然无法解决问题,建议向Jetson Nano的社区或论坛寻求帮助。他们可能会有更具体的解决方案或建议。

Ensoleile 发表于 2023-9-25 15:12:08

怀疑是没有指定输入驱动程序,但是不知道该怎么解决

Ensoleile 发表于 2023-9-25 16:45:14

isdkz 发表于 2023-9-25 16:00
根据您提供的信息,可能有几个原因导致键盘和鼠标无法使用:

1. 在xorg.conf配置文件中禁用了自动添加设 ...

感谢您的回答,但如果您借鉴了ChatGPT给出的答案,那么这些方法我已经尝试过了,包括删除配置文件中禁用自动添加设备的部分,卸载虚拟显示器相关文件库,连接显示器并重新启动等,均不能使我的键盘鼠标恢复使用。另外在启动时进入终端模式,由于我的键盘输入被禁用了,无法通过同时按下Alt、Ctrl、F1方法进入。但是因为我在连接显示器后,可以远程控制桌面,所以可以实现使用终端命令和查看相关文件。系统日志文件关于鼠标输入的报错我已经粘在了本帖原文内,根据日志文件内容,可能是驱动程序没有被指定,但是我不知道该怎么解决这个问题,或者请问您有这方面的解决经验吗

yinda_peng 发表于 2023-9-26 18:29:24

不懂诶,虽说我也用Ubuntu,但了解有限{:10_262:}

yinda_peng 发表于 2023-9-26 18:31:09

或许你可以去更大的平台比如知乎之类的去问问

歌者文明清理员 发表于 2023-9-30 20:18:34

yinda_peng 发表于 2023-9-26 18:29
不懂诶,虽说我也用Ubuntu,但了解有限

有木有感动Wine{:10_257:}{:10_254:}

yinda_peng 发表于 2023-10-1 16:15:59

歌者文明清理员 发表于 2023-9-30 20:18
有木有感动Wine

没有哇{:10_291:}
页: [1]
查看完整版本: Ubuntu18.04键盘、鼠标不能用