我最近安装了 Ubuntu 18.04,不明白为什么触摸屏不工作。以下是相关日志xorg.log
:
[ 359.454] (II) config/udev: Adding input device ELAN Touchscreen (/dev/input/event7)
[ 359.454] (**) ELAN Touchscreen: Applying InputClass "libinput touchscreen catchall"
[ 359.455] (II) Using input driver 'libinput' for 'ELAN Touchscreen'
[ 359.458] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 27 paused 0
[ 359.458] (**) ELAN Touchscreen: always reports core events
[ 359.458] (**) Option "Device" "/dev/input/event7"
[ 359.458] (**) Option "_source" "server/udev"
[ 359.460] (II) event7 - ELAN Touchscreen: is tagged by udev as: Touchscreen
[ 359.460] (II) event7 - ELAN Touchscreen: device is a touch device
[ 359.460] (II) event7 - ELAN Touchscreen: device removed
[ 359.461] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:04F3:0034.0001/input/input8/event7"
[ 359.461] (II) XINPUT: Adding extended input device "ELAN Touchscreen" (type: TOUCHSCREEN, id 8)
[ 359.461] (**) Option "AccelerationScheme" "none"
[ 359.461] (**) ELAN Touchscreen: (accel) selected scheme none/0
[ 359.461] (**) ELAN Touchscreen: (accel) acceleration factor: 2.000
[ 359.461] (**) ELAN Touchscreen: (accel) acceleration threshold: 4
[ 359.463] (II) event7 - ELAN Touchscreen: is tagged by udev as: Touchscreen
[ 359.463] (II) event7 - ELAN Touchscreen: device is a touch device
[ 359.466] (II) config/udev: Adding input device ELAN Touchscreen (/dev/input/mouse1)
xinput
:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Video Bus id=9 [slave keyboard (3)]
↳ Laptop_Integrated_Webcam_HD: In id=10 [slave keyboard (3)]
↳ Dell WMI hotkeys id=11 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
dmesg | grep "1-1.6"
:
[ 3.512037] usb 1-1.6: new full-speed USB device number 4 using ehci-pci
[ 3.608042] usb 1-1.6: device descriptor read/64, error -32
[ 3.839565] usb 1-1.6: device descriptor read/64, error -32
[ 4.024035] usb 1-1.6: new full-speed USB device number 5 using ehci-pci
[ 4.104032] usb 1-1.6: device descriptor read/64, error -32
[ 4.292021] usb 1-1.6: device descriptor read/64, error -32
[ 5.312798] usb 1-1.6: new full-speed USB device number 6 using ehci-pci
sudo dmidecode | grep -A 9 "System Information"
:
System Information
Manufacturer: Dell Inc.
Product Name: Inspiron 5537
Version: A11
Serial Number: #######
UUID: 4C4C4544-0035-5910-8031-B7C04F543032
Wake-up Type: Power Switch
SKU Number: Inspiron 5537
Family: 00
我已经尝试了提到的所有步骤触摸屏 - Ubuntu 维基百科但无法让它工作。有什么建议吗?
今天发生了一件奇怪的事情,触摸屏突然开始工作,过了一会儿就停止了。相关内容如下dmesg
:
[ 86.280036] usb 1-1.6: new full-speed USB device number 10 using ehci-pci
[ 86.390483] usb 1-1.6: New USB device found, idVendor=04f3, idProduct=0034
[ 86.390487] usb 1-1.6: New USB device strings: Mfr=4, Product=14, SerialNumber=0
[ 86.390489] usb 1-1.6: Product: Touchscreen
[ 86.390490] usb 1-1.6: Manufacturer: ELAN
[ 87.041347] input: ELAN Touchscreen as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:04F3:0034.0001/input/input16
[ 87.041675] hid-multitouch 0003:04F3:0034.0001: input,hiddev0,hidraw0: USB HID v1.10 Device [ELAN Touchscreen] on usb-0000:00:1d.0-1.6/input0
[ 90.337071] rfkill: input handler disabled
[ 257.888791] usb 1-1.6: reset full-speed USB device number 10 using ehci-pci
[ 330.230527] usb 1-1.6: reset full-speed USB device number 10 using ehci-pci
[ 330.310492] usb 1-1.6: device descriptor read/64, error -32
[ 330.498404] usb 1-1.6: device descriptor read/64, error -32
[ 330.686280] usb 1-1.6: reset full-speed USB device number 10 using ehci-pci
[ 330.766239] usb 1-1.6: device descriptor read/64, error -32
uname -a
:
Linux dell 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
:
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
答案1
由于我没有您的硬件,因此无法进行测试。话虽如此,过去我曾使用过硬件支持。
根据来自 Ubuntu 软件包搜索的结果对于 18.04,您目前有 2 个选项。linux-generic-hwe-18.04 (4.18.0.15.65)和linux-generic-hwe-18.04-edge。
你也许还会发现一些线索这里。
答案2
说实话,我相信这是一个XY问题 这个问题的真正根源可能是通过拔掉插入有问题端口的故障设备来解决的,或者这个答案会很有用。此外,有时 USB 连接会因为端口中的灰尘而失败,可以用罐装空气清理干净来解决。
回答你最初提出的问题,不。我认为你不能禁用笔记本电脑上的特定端口。很少有集线器允许这样做(请参阅 README.md 文件https://github.com/mvp/uhubctl/),但它们很少见,而且我认为您的笔记本电脑主板不会支持此功能。据我所知,自 2.6.33 版以来,内核不支持禁用每个端口。以下是摘录:
The user interface for dynamic PM
---------------------------------
The user interface for controlling dynamic PM is located in the power/
subdirectory of each USB device's sysfs directory, that is, in
/sys/bus/usb/devices/.../power/ where "..." is the device's ID. The
relevant attribute files are: wakeup, control, and
autosuspend_delay_ms. (There may also be a file named "level"; this
file was deprecated as of the 2.6.35 kernel and replaced by the
"control" file. In 2.6.38 the "autosuspend" file will be deprecated
and replaced by the "autosuspend_delay_ms" file. The only difference
is that the newer file expresses the delay in milliseconds whereas the
older file uses seconds. Confusingly, both files are present in 2.6.37
but only "autosuspend" works.)
power/wakeup
This file is empty if the device does not support
remote wakeup. Otherwise the file contains either the
word "enabled" or the word "disabled", and you can
write those words to the file. The setting determines
whether or not remote wakeup will be enabled when the
device is next suspended. (If the setting is changed
while the device is suspended, the change won't take
effect until the following suspend.)
power/control
This file contains one of two words: "on" or "auto".
You can write those words to the file to change the
device's setting.
"on" means that the device should be resumed and
autosuspend is not allowed. (Of course, system
suspends are still allowed.)
"auto" is the normal state in which the kernel is
allowed to autosuspend and autoresume the device.
(In kernels up to 2.6.32, you could also specify
"suspend", meaning that the device should remain
suspended and autoresume was not allowed. This
setting is no longer supported.)
来源:https://www.kernel.org/doc/Documentation/usb/power-management.txt
编辑:根据您的评论,在回答您问题的当前版本时,您与触摸屏的连接存在问题,您可以使用以下命令进行观看udevadm monitor
自从你不喜欢摆弄你的硬件我建议您将其送至合格的技术人员进行维修,或者如果在保修期内,请联系制造商或购买地点。