校园云网站建设,做名片哪个网站最好,百度联系方式,云凡济南网站建设开发1 问题描述 CPU#xff1a;G6900E OS#xff1a;ubuntu22.04 Kernel#xff1a;6.8.0-49-generic 系统下有两个一样的 edp 触摸屏#xff0c;两个触摸屏的触摸事件都响应在同一个 edp 屏幕上。
2 解决过程 使用“xinput”命令查看输入设备#xff0c;可以看到只有一个 to…1 问题描述 CPUG6900E OSubuntu22.04 Kernel6.8.0-49-generic 系统下有两个一样的 edp 触摸屏两个触摸屏的触摸事件都响应在同一个 edp 屏幕上。
2 解决过程 使用“xinput”命令查看输入设备可以看到只有一个 touch而且还有一个警告。表示正在使用 Xwayland 服务器而不是直接在 X11 环境中使用 xinput。xinput 是一个用于配置和管理 X11 输入设备的工具而 Xwayland 是一个让 X11 应用程序在 Wayland 环境下运行的兼容层。
jwjw-Windows-cpmpact-G6900E:~$ xinput
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer id2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:17 id6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:17 id7 [slave pointer (2)]
⎜ ↳ xwayland-pointer-gestures:17 id8 [slave pointer (2)]
⎜ ↳ xwayland-touch:17 id10 [slave pointer (2)]
⎣ Virtual core keyboard id3 [master keyboard (2)]↳ Virtual core XTEST keyboard id5 [slave keyboard (3)]↳ xwayland-keyboard:17 id9 [slave keyboard (3)]
jwjw-Windows-cpmpact-G6900E:~$ 将 wayland 关闭修改“/etc/gdm3/custom.conf”配置文件配置文件如下所示将“#WaylandEnablefalse”改为“WaylandEnablefalse”重启系统即可关闭 wayland 。
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.[daemon]
AutomaticLoginEnabletrue
AutomaticLoginjw# Uncomment the line below to force the login screen to use Xorg
#WaylandEnablefalse# Enabling automatic login# Enabling timed login
# TimedLoginEnable true
# TimedLogin user1
# TimedLoginDelay 10[security][xdmcp][chooser][debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enabletrue 再使用“xinput”命令查看输入设备可以看到有四个“Elo Touch”分别对应不同 id分别是 14、15、16、和 17。
jwjw-Windows-cpmpact-G6900E:~$ xinput
⎡ Virtual core pointer id2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id4 [slave pointer (2)]
⎜ ↳ USB OPTICAL MOUSE id10 [slave pointer (2)]
⎜ ↳ SIGMACHIP USB Keyboard Consumer Control id12 [slave pointer (2)]
⎜ ↳ Elo Touch ET1504LS pCAP USB HID id14 [slave pointer (2)]
⎜ ↳ Elo Touch ET1504LS pCAP USB HID Mouse id15 [slave pointer (2)]
⎜ ↳ Elo Touch ET1504L pCAP USB HID id16 [slave pointer (2)]
⎜ ↳ Elo Touch ET1504L pCAP USB HID Mouse id17 [slave pointer (2)]
⎣ Virtual core keyboard id3 [master keyboard (2)]↳ Virtual core XTEST keyboard id5 [slave keyboard (3)]↳ Power Button id6 [slave keyboard (3)]↳ Video Bus id7 [slave keyboard (3)]↳ Power Button id8 [slave keyboard (3)]↳ Sleep Button id9 [slave keyboard (3)]↳ SIGMACHIP USB Keyboard id11 [slave keyboard (3)]↳ SIGMACHIP USB Keyboard System Control id13 [slave keyboard (3)]↳ Intel HID events id18 [slave keyboard (3)]↳ SIGMACHIP USB Keyboard Consumer Control id19 [slave keyboard (3)] 需要确定哪个 id 对应哪个触摸屏使用“xinput test [id]”命令确定如执行“xinput test 14”命令点击触摸屏有输出 log 就表示当前触摸屏幕对应的 id 号是 14。
jwjw-Windows-cpmpact-G6900E:~$ xinput test 14
motion a[0]12855 a[1]27919
button press 1 a[0]12855 a[1]27919
motion a[0]13535 a[1]38575 使用“xrandr”命令可以查看屏幕的名称最终知道“eDP-1”触摸屏对应的触摸 id 是 14“DP-1”对应的触摸 id 是 16使用以下命令成功解决了 bug。
xinput map-to-output 14 eDP-1
xinput map-to-output 16 DP-1