![升级到 VPS 服务器 20.04 后,使用标准 Ubuntu 桌面时没有鼠标/键盘](https://linux22.com/image/1173207/%E5%8D%87%E7%BA%A7%E5%88%B0%20VPS%20%E6%9C%8D%E5%8A%A1%E5%99%A8%2020.04%20%E5%90%8E%EF%BC%8C%E4%BD%BF%E7%94%A8%E6%A0%87%E5%87%86%20Ubuntu%20%E6%A1%8C%E9%9D%A2%E6%97%B6%E6%B2%A1%E6%9C%89%E9%BC%A0%E6%A0%87%2F%E9%94%AE%E7%9B%98.png)
当使用标准桌面时,在 VPServer 上使用 Ubuntu 20.04 时没有鼠标和键盘。
我可以在 VNC 中显示桌面,但如果没有鼠标/键盘,它几乎毫无用处。
没有错误,但我认为最后几行是问题所在。
在 Ubuntu 18.04 上,它运行起来没有问题。
有任何想法吗?
我尝试删除/安装 xserver-xorg-input-mouse xserver-xrog-input-kbd
此外我还安装了:xserver-xorg-hwe-18.04 xserver-xorg-input-all-hwe-18.04
这有助于解决图形问题,但无助于解决鼠标键盘问题。
我尝试发布完整日志但被屏蔽了“这看起来像垃圾邮件”
20.486] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[ 20.486] (II) No input driver specified, ignoring this device.
[ 20.486] (II) This device may have been added with another device file.
[ 20.487] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event1)
[ 20.487] (II) No input driver specified, ignoring this device.
[ 20.487] (II) This device may have been added with another device file.
[ 20.488] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event3)
[ 20.488] (II) No input driver specified, ignoring this device.
[ 20.488] (II) This device may have been added with another device file.
[ 20.496] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse1)
[ 20.496] (II) No input driver specified, ignoring this device.
[ 20.496] (II) This device may have been added with another device file.
[ 20.497] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event2)
[ 20.497] (II) No input driver specified, ignoring this device.
[ 20.497] (II) This device may have been added with another device file.
[ 20.498] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse0)
[ 20.498] (II) No input driver specified, ignoring this device.
[ 20.498] (II) This device may have been added with another device file.
答案1
找到了解决方案 apt install xserver-xorg-input-evdev 解决了问题
安装 xserver-xorg-hwe-18.04 xserver-xorg-input-all-hwe-18.04 似乎没有必要。
76551.603] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[ 76551.603] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 76551.603] (II) LoadModule: "evdev"
[ 76551.603] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 76551.604] (II) Module evdev: vendor="X.Org Foundation"
[ 76551.604] compiled for 1.20.1, module version = 2.10.6
[ 76551.604] Module class: X.Org XInput Driver
[ 76551.604] ABI class: X.Org XInput driver, version 24.1
[ 76551.604] (II) Using input driver 'evdev' for 'Power Button'
[ 76551.611] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 20 paused 0
[ 76551.611] (**) Power Button: always reports core events
[ 76551.611] (**) evdev: Power Button: Device: "/dev/input/event0"
[ 76551.612] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 76551.612] (--) evdev: Power Button: Found keys
[ 76551.612] (II) evdev: Power Button: Configuring as keyboard
[ 76551.612] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0/event0"
[ 76551.612] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 76551.612] (**) Option "xkb_rules" "evdev"
[ 76551.612] (**) Option "xkb_model" "pc105"
[ 76551.612] (**) Option "xkb_layout" "us"
[ 76551.614] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event1)
[ 76551.614] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 76551.614] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[ 76551.615] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 21 paused 0
[ 76551.615] (**) AT Translated Set 2 keyboard: always reports core events
[ 76551.615] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event1"
[ 76551.615] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[ 76551.616] (--) evdev: AT Translated Set 2 keyboard: Found keys
[ 76551.616] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[ 76551.616] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input1/event1"
[ 76551.616] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 7)
[ 76551.616] (**) Option "xkb_rules" "evdev"
[ 76551.616] (**) Option "xkb_model" "pc105"
[ 76551.616] (**) Option "xkb_layout" "us"
[ 76551.617] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event3)
[ 76551.617] (**) VirtualPS/2 VMware VMMouse: Applying InputClass "evdev pointer catchall"
[ 76551.617] (II) Using input driver 'evdev' for 'VirtualPS/2 VMware VMMouse'
[ 76551.619] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 22 paused 0
[ 76551.619] (**) VirtualPS/2 VMware VMMouse: always reports core events
[ 76551.619] (**) evdev: VirtualPS/2 VMware VMMouse: Device: "/dev/input/event3"
[ 76551.619] (--) evdev: VirtualPS/2 VMware VMMouse: Vendor 0x2 Product 0x13
[ 76551.619] (--) evdev: VirtualPS/2 VMware VMMouse: Found 3 mouse buttons
[ 76551.619] (--) evdev: VirtualPS/2 VMware VMMouse: Found scroll wheel(s)
[ 76551.619] (--) evdev: VirtualPS/2 VMware VMMouse: Found relative axes
[ 76551.619] (--) evdev: VirtualPS/2 VMware VMMouse: Found x and y relative axes
[ 76551.619] (II) evdev: VirtualPS/2 VMware VMMouse: Configuring as mouse
[ 76551.619] (II) evdev: VirtualPS/2 VMware VMMouse: Adding scrollwheel support
[ 76551.619] (**) evdev: VirtualPS/2 VMware VMMouse: YAxisMapping: buttons 4 and 5
[ 76551.619] (**) evdev: VirtualPS/2 VMware VMMouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 76551.619] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input3/event3"
[ 76551.619] (II) XINPUT: Adding extended input device "VirtualPS/2 VMware VMMouse" (type: MOUSE, id 8)
[ 76551.619] (II) evdev: VirtualPS/2 VMware VMMouse: initialized for relative axes.
[ 76551.619] (**) VirtualPS/2 VMware VMMouse: (accel) keeping acceleration scheme 1
[ 76551.619] (**) VirtualPS/2 VMware VMMouse: (accel) acceleration profile 0
[ 76551.619] (**) VirtualPS/2 VMware VMMouse: (accel) acceleration factor: 2.000
[ 76551.619] (**) VirtualPS/2 VMware VMMouse: (accel) acceleration threshold: 4
[ 76551.620] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse1)
[ 76551.620] (II) No input driver specified, ignoring this device.
[ 76551.620] (II) This device may have been added with another device file.
[ 76551.621] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event2)
[ 76551.621] (**) VirtualPS/2 VMware VMMouse: Applying InputClass "evdev pointer catchall"
[ 76551.621] (II) Using input driver 'evdev' for 'VirtualPS/2 VMware VMMouse'
[ 76551.622] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 23 paused 0
[ 76551.622] (**) VirtualPS/2 VMware VMMouse: always reports core events
[ 76551.622] (**) evdev: VirtualPS/2 VMware VMMouse: Device: "/dev/input/event2"
[ 76551.622] (--) evdev: VirtualPS/2 VMware VMMouse: Vendor 0x2 Product 0x13
[ 76551.622] (--) evdev: VirtualPS/2 VMware VMMouse: Found 3 mouse buttons
[ 76551.623] (--) evdev: VirtualPS/2 VMware VMMouse: Found absolute axes
[ 76551.623] (--) evdev: VirtualPS/2 VMware VMMouse: Found x and y absolute axes
[ 76551.623] (--) evdev: VirtualPS/2 VMware VMMouse: Found absolute touchscreen
[ 76551.623] (II) evdev: VirtualPS/2 VMware VMMouse: Configuring as touchscreen
[ 76551.623] (**) evdev: VirtualPS/2 VMware VMMouse: YAxisMapping: buttons 4 and 5
[ 76551.623] (**) evdev: VirtualPS/2 VMware VMMouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 76551.623] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input4/event2"
[ 76551.623] (II) XINPUT: Adding extended input device "VirtualPS/2 VMware VMMouse" (type: TOUCHSCREEN, id 9)
[ 76551.623] (II) evdev: VirtualPS/2 VMware VMMouse: initialized for absolute axes.
[ 76551.623] (**) VirtualPS/2 VMware VMMouse: (accel) keeping acceleration scheme 1
[ 76551.623] (**) VirtualPS/2 VMware VMMouse: (accel) acceleration profile 0
[ 76551.623] (**) VirtualPS/2 VMware VMMouse: (accel) acceleration factor: 2.000
[ 76551.623] (**) VirtualPS/2 VMware VMMouse: (accel) acceleration threshold: 4
[ 76551.624] (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse0)
[ 76551.624] (II) No input driver specified, ignoring this device.
[ 76551.624] (II) This device may have been added with another device file.