朋友们,
我不断收到有关无法在充当运行 Ubuntu 20.04.3 LTS 的服务器的戴尔笔记本电脑上启动 Melfas LGD AIT 触摸控制器的日志消息。当我在 Ubuntu 中搜索禁用此或任何触摸屏控制器时,我得到了 xorg 结果 - 我没有安装 GUI,这仅适用于服务器。我无法在戴尔 BIOS 中禁用此设备。
您能否建议我如何在 Ubuntu 中禁用此功能,以便它停止尝试启动驱动程序/mod/等?
为了以防万一,我已经包含了重复的一组记录消息的一次迭代:
Jan 19 07:14:35 lt2 kernel: [ 630.844743] usb 1-1-port7: Cannot enable. Maybe the USB cable is bad?
Jan 19 07:14:35 lt2 kernel: [ 630.924518] usb 1-1.7: new full-speed USB device number 66 using ehci-pci
Jan 19 07:14:35 lt2 kernel: [ 631.420504] usb 1-1.7: device not accepting address 66, error -32
Jan 19 07:14:35 lt2 kernel: [ 631.423246] usb 1-1-port7: attempt power cycle
Jan 19 07:14:38 lt2 kernel: [ 633.876744] usb 1-1-port7: Cannot enable. Maybe the USB cable is bad?
Jan 19 07:14:38 lt2 kernel: [ 633.956498] usb 1-1.7: new full-speed USB device number 68 using ehci-pci
Jan 19 07:14:38 lt2 kernel: [ 633.986924] usb 1-1.7: New USB device found, idVendor=1fd2, idProduct=5001, bcdDevice= 5.00
Jan 19 07:14:38 lt2 kernel: [ 633.986930] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 19 07:14:38 lt2 kernel: [ 633.986934] usb 1-1.7: Product: LGD AIT Touch Controller
Jan 19 07:14:38 lt2 kernel: [ 633.986937] usb 1-1.7: Manufacturer: Melfas
Jan 19 07:14:38 lt2 kernel: [ 633.992266] input: Melfas LGD AIT Touch Controller as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.7/1-1.7:1.0/0003:1FD2:5001.00D8/input/input236
Jan 19 07:14:38 lt2 kernel: [ 633.992500] input: Melfas LGD AIT Touch Controller Mouse as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.7/1-1.7:1.0/0003:1FD2:5001.00D8/input/input237
Jan 19 07:14:38 lt2 kernel: [ 633.992975] hid-multitouch 0003:1FD2:5001.00D8: input,hiddev0,hidraw1: USB HID v1.00 Mouse [Melfas LGD AIT Touch Controller] on usb-0000:00:1d.0-1.7/input0
Jan 19 07:14:38 lt2 kernel: [ 633.994328] hid-generic 0003:1FD2:5001.00D9: hiddev1,hidraw2: USB HID v1.00 Device [Melfas LGD AIT Touch Controller] on usb-0000:00:1d.0-1.7/input1
Jan 19 07:14:38 lt2 kernel: [ 634.068679] usb 1-1.7: USB disconnect, device number 68
Jan 19 07:14:40 lt2 kernel: [ 636.612743] usb 1-1-port7: Cannot enable. Maybe the USB cable is bad?
Jan 19 07:14:41 lt2 kernel: [ 636.692417] usb 1-1.7: new full-speed USB device number 70 using ehci-pci
Jan 19 07:14:41 lt2 kernel: [ 637.188471] usb 1-1.7: device not accepting address 70, error -32
Jan 19 07:14:41 lt2 kernel: [ 637.191272] usb 1-1-port7: attempt power cycle
aTdHvAaNnKcSe!
编辑:我尝试通过在 blacklist.conf 中添加行“blacklist hid_multitouch”然后添加“update-initramfs -u”然后重新启动来禁用它,但这似乎没有什么区别。
答案1
您始终可以通过 ID 阻止设备,udev
以确保它不会被加载。方法如下:
- 通过 SSH 进入设备(或使用控制台)
- 创建一个允许您禁用设备的阻止文件。例如:
笔记:请务必sudo {editor of choice} /etc/udev/rules.d/01-usb-block.rules
{editor of choice}
用您选择的编辑器进行替换。 - 将以下内容添加到文件:
笔记:ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'" ACTION=="add", ATTR{idVendor}=="1fd2" RUN+="/bin/sh -c 'echo 1 >/sys$DEVPATH/authorized'"
1fd2
的值来自ATTR{idVendor}
您最初的问题。不过,您可以编辑 4 个字符的代码来过滤任何供应商。 - 保存文件
- 重启
1fd2
这将告诉系统不要使用任何来自供应商的硬件。