编辑:帖子末尾添加了可疑的日志条目。
笔记:这不是硬件问题。我启动了 Ubuntu 安装媒体,所有设备都正常工作。我希望我的本地 SSD 安装能像以前一样工作。由于许多原因(其中时间是最重要的),目前无法选择新安装。
个人电脑:英特尔 3770、金士顿 SSD 1TB、RAM 16GB、GTX970、2 台显示器、有线键盘和鼠标)以及 Ubuntu 22 和所有最新更新。足够的可用空间。无需硬件更改,无需新应用。
昨天刚刚关闭电源,早上又打开电源。
启动准备就绪后,我看到的是:第二台显示器未收到信号;第一台显示器的分辨率较低(大约在 1024x768 左右)。键盘和鼠标都可以使用。我转到显示设置,它显示“未知显示器”,我无法更改分辨率(我 100% 确定它之前有“BenQ 显示器”名称)。我决定重新启动并看到相同的结果。当时我认为这是显示器/电缆问题,并重新连接了两个显示器以及 KB。当我这次启动到操作系统时,只有鼠标可以使用。KB 不工作。我可以启用辅助功能并输入我的密码。lspci 显示所有设备(检测 nvidia 卡、VIA USB 等)。
之后我重启了大概 50 次,尝试了不同的选项。没有结果。以下是一些观察结果:
- 我可以进入 Shift 菜单并选择不同的内核,但没有变化。
- 当我进入 BIOS 时,鼠标和 KB 都可以工作。启动后,只有鼠标可以工作。
- 启动屏幕(UEFI 有 MB 徽标和 Ubuntu 徽标)的分辨率也很低。我确信之前它是正常的(适合显示器原始分辨率)。
- 如果我插入任何其他设备(KB、鼠标、通过 USB 的 SSD),它会在 BIOS 中可见,但 Ubuntu 无法识别。我没有尝试移除仍在工作的鼠标;我相信一旦我这样做,它就会停止工作。
此刻我认为某个文件已损坏,或者我需要以某种方式重新初始化硬件扫描或类似的东西,但谷歌搜索和询问 chatgpt 并没有给我任何建议。我擅长终端命令,但当涉及到外围设备和类似问题时,我不知道该怎么做。
我有主目录的备份,所以我不担心丢失数据,但是我必须重新安装或重新配置大量应用程序,而我现在没有时间这样做。
请指教。
关机前:
/usr/libexec/gdm-x-session[6971]: (EE) event5 - Microsoft Natural® Ergonomic Keyboard 4000: client bug: event processing lagging behind by 35ms, your system is too slow
日志充斥着(所有键码):
gnome-shell[7159]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
gnome-shell[7159]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
gnome-shell[7159]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
启动后:
/usr/libexec/gdm-x-session[6971]: (II) NVIDIA(0): Setting mode "DP-0: nvidia-auto-select @2560x1440 +0+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}"
/usr/libexec/gdm-x-session[6971]: (--) NVIDIA(GPU-0): CRT-0: disconnected
/usr/libexec/gdm-x-session[6971]: (II) NVIDIA(0): Setting mode "NULL"
gsd-color[7269]: failed to set xrandr-BenQ Corporation-BenQ LCD-M8K00722019 color transform matrix: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: The requested configuration is based on stale information
systemd-udevd[373]: event5: Failed to call EVIOCSKEYCODE with scan code 0xc022d, and key code 103: Invalid argument
systemd-udevd[362]: controlC1: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 1' failed with exit code 99.
systemd-udevd[368]: sdb: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/sdb' failed with exit code 1
systemd-udevd[380]: sdb1: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/sdb1' failed with exit code 1.
systemd-udevd[388]: sdb2: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/sdb2' failed with exit code 1.
kernel: [ 3.522661] input: A4TECH USB Device as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.3/2-1.6.3:1.0/0003:09DA:9090.0001/input/input6
kernel: [ 3.522953] hid-generic 0003:09DA:9090.0001: input,hiddev0,hidraw0: USB HID v1.11 Keyboard [A4TECH USB Device] on usb-0000:00:1d.0-1.6.3/input0
kernel: [ 3.523094] input: A4TECH USB Device as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.3/2-1.6.3:1.1/0003:09DA:9090.0002/input/input7
kernel: [ 3.523306] hid-generic 0003:09DA:9090.0002: input,hidraw1: USB HID v1.11 Mouse [A4TECH USB Device] on usb-0000:00:1d.0-1.6.3/input1
kernel: [ 3.553358] input: Microsoft Natural® Ergonomic Keyboard 4000 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.1/2-1.6.1.2/2-1.6.1.2:1.0/0003:045E:00DB.0003/input/input8
kernel: [ 3.610732] microsoft 0003:045E:00DB.0003: input,hidraw2: USB HID v1.11 Keyboard [Microsoft Natural® Ergonomic Keyboard 4000] on usb-0000:00:1d.0-1.6.1.2/input0
kernel: [ 3.610934] input: Microsoft Natural® Ergonomic Keyboard 4000 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.1/2-1.6.1.2/2-1.6.1.2:1.1/0003:045E:00DB.0004/input/input9
kernel: [ 3.670743] microsoft 0003:045E:00DB.0004: input,hidraw3: USB HID v1.11 Device [Microsoft Natural® Ergonomic Keyboard 4000] on usb-0000:00:1d.0-1.6.1.2/input1
/usr/libexec/gdm-x-session[3188]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
/usr/libexec/gdm-x-session[3188]: (==) No Layout section. Using the first Screen section.
/usr/libexec/gdm-x-session[3188]: (==) No screen section available. Using defaults.
/usr/libexec/gdm-x-session[3188]: (**) |-->Screen "Default Screen Section" (0)
/usr/libexec/gdm-x-session[3188]: (**) | |-->Monitor "<default monitor>"
/usr/libexec/gdm-x-session[3188]: (==) No monitor specified for screen "Default Screen Section".
/usr/libexec/gdm-x-session[3188]: #011Using a default monitor configuration.
/usr/libexec/gdm-x-session[3188]: #011ABI class: X.Org Video Driver, version 25.2
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(2): using default device
/usr/libexec/gdm-x-session[3188]: vesa: Refusing to run on UEFI
/usr/libexec/gdm-x-session[3188]: (EE) Screen 0 deleted because of no matching config section.
/usr/libexec/gdm-x-session[3188]: (II) UnloadModule: "modesetting"
/usr/libexec/gdm-x-session[3188]: (EE) Screen 0 deleted because of no matching config section.
/usr/libexec/gdm-x-session[3188]: (II) UnloadModule: "fbdev"
/usr/libexec/gdm-x-session[3188]: (II) UnloadSubModule: "fbdevhw"
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(0): Creating default Display subsection in Screen section
/usr/libexec/gdm-x-session[3188]: #011"Default Screen Section" for depth/fbbpp 24/32
/usr/libexec/gdm-x-session[3188]: (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
/usr/libexec/gdm-x-session[3188]: (==) FBDEV(0): RGB weight 888
/usr/libexec/gdm-x-session[3188]: (==) FBDEV(0): Default visual is TrueColor
/usr/libexec/gdm-x-session[3188]: (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(0): hardware: EFI VGA (video memory: 3072kB)
/usr/libexec/gdm-x-session[3188]: (DB) xf86MergeOutputClassOptions unsupported bus type 0
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(0): checking modes against framebuffer device...
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(0): checking modes against monitor...
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(0): Virtual size is 1024x768 (pitch 1024)
/usr/libexec/gdm-x-session[3188]: (**) FBDEV(0): Built-in mode "current": 78.7 MHz, 59.9 kHz, 75.7 Hz
/usr/libexec/gdm-x-session[3188]: (II) FBDEV(0): Modeline "current"x0.0 78.65 1024 1056 1184 1312 768 772 776 792 -hsync -vsync -csync (59.9 kHz b)
/usr/libexec/gdm-x-session[3188]: (==) FBDEV(0): DPI set to (96, 96)
启动后-垃圾邮件(不同的设备名称,例如Microsoft Natural Keyboard等):
/usr/libexec/gdm-x-session[3188]: (II) config/udev: Adding input device A4TECH USB Device (/dev/input/mouse0)
/usr/libexec/gdm-x-session[3188]: (II) No input driver specified, ignoring this device.
/usr/libexec/gdm-x-session[3188]: (II) This device may have been added with another device file.
gnome-session[3318]: libEGL warning: DRI2: failed to authenticate
gnome-session[3287]: gnome-session-check-accelerated: GLES Helper exited with code 512
gnome-session[3284]: gnome-session-binary[3284]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
gnome-session[3284]: gnome-session-binary[3284]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
gnome-session-binary[3284]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
gnome-session-binary[3284]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
答案1
笔记:不是真正的解决方案,但找到了可能的原因。
我没有解决驱动程序问题,所以这不是如何恢复所有设备的真正答案,但情况通过以下方式解决。
我基本上被迫安装一个全新的 Ubuntu,结果我的 GTX970 开始死机,这以某种方式导致了主题中描述的行为。全新 Ubuntu 上的 gnome-shell 开始崩溃,并显示与显卡或驱动程序相关的消息(注意:我尝试了社区和 nvidia),例如“未调用 nvidia 探测例程”等。
用 Radeon 580 替换显卡后,两天内没有出现任何问题。尝试了旧版 Ubuntu,但不幸的是它不起作用,但正如我已经提到的,我不想让这个问题得不到解决,所以如果有人遇到同样的设备消失的情况,那可能是你的硬件问题,在这种情况下,Live DVD 不能成为衡量硬件运行状况的良好工具。