AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[evdev](ubuntu)

Martin Hope
Parth Shah
Asked: 2020-09-07 04:57:57 +0800 CST

戴尔有源笔 PN350M 无法正常工作

  • 2

我在 Dell Inspiron 15 7591 2 合 1 上运行 Ubuntu 20.04。笔记本电脑配有手写笔,戴尔 PN350M 有源笔,不幸的是,它在我的系统下无法正常工作。我发现笔使用 Microsoft Pen 协议与我的设备配对。以下是一些可能有助于解决此问题的输出。

我发现它sudo evtest完美地显示了压力读数,但xinput --test根本不显示压力读数,并且尖端被视为按钮 1。

sudo evtest
[sudo] password for parth: 
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:  Lid Switch
/dev/input/event1:  Power Button
/dev/input/event2:  Sleep Button
/dev/input/event3:  AT Translated Set 2 keyboard
/dev/input/event4:  Integrated_Webcam_HD: Integrate
/dev/input/event5:  DELL0908:00 04F3:30E3 Mouse
/dev/input/event6:  Dell WMI hotkeys
/dev/input/event7:  Intel HID events
/dev/input/event8:  Intel HID 5 button array
/dev/input/event9:  PS/2 Generic Mouse
/dev/input/event10: 2.4G Mouse
/dev/input/event11: 2.4G Mouse
/dev/input/event12: DELL0908:00 04F3:30E3 Touchpad
/dev/input/event13: Video Bus
/dev/input/event14: Video Bus
/dev/input/event15: CUST0000:00 27C6:0118
/dev/input/event16: CUST0000:00 27C6:0118 Stylus
/dev/input/event17: CUST0000:00 27C6:0118 UNKNOWN
/dev/input/event18: sof-hda-dsp Headphone Mic
/dev/input/event19: sof-hda-dsp HDMI/DP,pcm=3
/dev/input/event20: sof-hda-dsp HDMI/DP,pcm=4
/dev/input/event21: sof-hda-dsp HDMI/DP,pcm=5
Select the device event number [0-21]: 16
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x27c6 product 0x118 version 0x100
Input device name: "CUST0000:00 27C6:0118 Stylus"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
  Event type 3 (EV_ABS)
    Event code 47 (ABS_MT_SLOT)
      Value      0
      Min        0
      Max        9
    Event code 53 (ABS_MT_POSITION_X)
      Value      0
      Min        0
      Max     5760
      Resolution      17
    Event code 54 (ABS_MT_POSITION_Y)
      Value      0
      Min        0
      Max     3240
      Resolution      17
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max    65535
    Event code 58 (ABS_MT_PRESSURE)
      Value      0
      Min        0
      Max     1023
    Event code 59 (ABS_MT_DISTANCE)
      Value      0
      Min        0
      Max        1
Properties:
  Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
Event: time 1599396868.187587, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 43
Event: time 1599396868.187587, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3767
Event: time 1599396868.187587, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 1597
Event: time 1599396868.187587, -------------- SYN_REPORT ------------
Event: time 1599396868.189591, type 3 (EV_ABS), code 59 (ABS_MT_DISTANCE), value 0
Event: time 1599396868.189591, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 11
Event: time 1599396868.189591, -------------- SYN_REPORT ------------
xinput --test 15
motion a[0]=44467 a[1]=32959 
button press   1 a[0]=44467 a[1]=32959 
motion a[0]=44467 a[1]=32939 
motion a[0]=44490 a[1]=32919 
motion a[0]=44501 a[1]=32878 
motion a[0]=44524 a[1]=32858 
motion a[0]=44546 a[1]=32818 
motion a[0]=44592 a[1]=32757 
motion a[0]=44626 a[1]=32716 
motion a[0]=44672 a[1]=32676 
motion a[0]=44717 a[1]=32656 
motion a[0]=44774 a[1]=32615 
motion a[0]=44831 a[1]=32595 
motion a[0]=44888 a[1]=32575 
motion a[0]=44956 a[1]=32575 
motion a[0]=45013 a[1]=32575 
motion a[0]=45070 a[1]=32575 
motion a[0]=45127 a[1]=32555 
motion a[0]=45195 a[1]=32555 
motion a[0]=45252 a[1]=32534 
motion a[0]=45309 a[1]=32514 
motion a[0]=45366 a[1]=32494 
motion a[0]=45422 a[1]=32454 
motion a[0]=45491 a[1]=32433 
motion a[0]=45548 a[1]=32413 
motion a[0]=45616 a[1]=32393 
motion a[0]=45695 a[1]=32373 
motion a[0]=45775 a[1]=32332 
motion a[0]=45832 a[1]=32312 
motion a[0]=45877 a[1]=32292 
motion a[0]=45912 a[1]=32292 
motion a[0]=45934 a[1]=32272 
motion a[0]=45934 a[1]=32251 
motion a[0]=45946 a[1]=32231 
motion a[0]=45946 a[1]=32211 
motion a[0]=45946 a[1]=32191 
motion a[0]=45957 a[1]=32150 
motion a[0]=45957 a[1]=32110 
motion a[0]=45968 a[1]=32049 
motion a[0]=45980 a[1]=32009 
motion a[0]=45991 a[1]=31928 
motion a[0]=46048 a[1]=31665 
motion a[0]=46037 a[1]=31705 
motion a[0]=46105 a[1]=31422 
motion a[0]=46094 a[1]=31443 
motion a[0]=46105 a[1]=31402 
motion a[0]=46116 a[1]=31341 
motion a[0]=46116 a[1]=31341 
button release 1 a[0]=46116 a[1]=31341

任何帮助,将不胜感激!

dell stylus evdev input xinput
  • 1 个回答
  • 1459 Views
Martin Hope
brett stevens
Asked: 2020-04-10 07:15:23 +0800 CST

19.10:Thinkpad X1 Tablet gen 2 跟踪点不工作

  • 0

我有两台 Thinkpad X1 平板电脑 gen 2。一台运行 Ubuntu 19.04,另一台运行 Ubuntu 19.10。这台机器有一个可拆卸的键盘,其中包含一个触控板和轨迹点。触控板的左下角和右下角有两个按钮。空格键下方是三个鼠标按钮。

当我购买机器时,trackpoint 无法正常工作,但它的补丁最终进入了内核(我认为是 17.10),请参阅这个线程和另一个. 它已经工作了几年,但昨天我注意到空格键下方的轨迹点和左右按钮在我的 19.10 机器上不起作用。我一个月前升级到 19.10,恐怕我没有注意到它是否停止工作,因为在过去一个月的大部分时间里,我一直用鼠标将它连接到扩展坞上。我昨天做的另一件事是从一个连接的驱动器短暂地将计算机启动到 Windows,这会破坏启动,所以我安装了一个实时的 Ubuntu 19.10 来修复 grub。在实时 Ubuntu 19.10 中,trackpoint 工作正常。

在跟踪点工作的 19.04 机器上,当我对以下任何文件进行分类时,我会收到跟踪点和按钮事件

/开发/输入/鼠标2

/dev/input/event9

/dev/input/event10

/dev/hidraw3

前两个不显示触控板及其按钮的事件,但 event10 和 hidraw 显示触控板、轨迹点和所有按钮的事件。

event9 和 event 10 的 xinput 设备分别是“PRIMAX ThinkPad X1 Tablet Thin Keyboard Gen 2 Mouse”和“PRIMAX ThinkPad X1 Tablet Thin Keyboard Gen 2 Touchpad”。

当我跑

xinput --test "PRIMAX ThinkPad X1 Tablet Thin Keyboard Gen 2 Mouse"

我得到了跟踪点及其三个按钮的事件,但没有得到触控板的事件。当我跑

xinput --test "PRIMAX ThinkPad X1 Tablet Thin Keyboard Gen 2 Touchpad",

我得到触控板及其按钮的事件,而不是轨迹点或其按钮。

在跟踪点不起作用的运行 19.10 的机器上,两个相同的 xinput 设备都存在。它们的属性与xinput --list-props我的 19.04 机器上的相同。我从“PRIMAX ThinkPad X1 Tablet Thin Keyboard Gen 2 Touchpad”获得触控板和按钮事件,而我从“PRIMAX ThinkPad X1 Tablet Thin Keyboard Gen 2 Mouse”仅获得按钮 2 事件。当我cat /dev/input/mouse[n]或/dev/input/event9我一无所获时。 cat /dev/input/event10并/dev/hidraw3给我触控板、轨迹点和所有按钮的事件。

2020-05-11 更新

这是一些内核数据。

跟踪点在我的内核 5.0.0-38-generic 的 Ubuntu 19.04 X1 平板电脑上运行

它适用于内核分别为 5.3.0-28-generic 和 5.3.0.18-generic 的 Ubuntu live USB 18.04 和 19.10。

它不适用于内核为 5.4.0-26-generic 的 Ubuntu live USB 20.04。

thinkpad evdev trackpoint xinput
  • 2 个回答
  • 1426 Views
Martin Hope
ScottJ
Asked: 2014-11-12 14:52:22 +0800 CST

evdev 无法区分 Tivo Slide Pro 上的某些键

  • 0

我有一个 Tivo Slide Pro RF 遥控器,其 USB 接收器连接到 Ubuntu 14.04 系统。它在 HID 模式下工作,看起来像一个键盘。

大多数键通过 evdev 工作正常,但有四个键都发送相同的 evdev 事件,我找不到任何方法来区分这四个键。当我按下并释放这四个键中的任何一个时,运行 evtest 会显示以下事件:

Event: time 1415581661.700911, type 3 (EV_ABS), code 40 (ABS_MISC), value 0
Event: time 1415581661.700911, -------------- SYN_REPORT ------------
Event: time 1415581662.028970, type 3 (EV_ABS), code 40 (ABS_MISC), value 1
Event: time 1415581662.028970, -------------- SYN_REPORT ------------

USB key 被设计成可以插入 TiVo,这显然有一些区分方式。我从哪里开始追踪呢?

evdev
  • 1 个回答
  • 74 Views
Martin Hope
Vikash
Asked: 2010-12-09 01:43:56 +0800 CST

浏览器自动刷新并打开主文件夹窗口

  • 8

我面临一个非常奇怪的问题。出乎意料的是,我的浏览器开始无限刷新自己。我的第一个猜测是 Firefox 搞砸了。我安装了铬。但是,它也发生在 chrome 中。

除此之外,有时我的主文件夹会自动打开并无限地打开。我的下一个猜测是鼠标有问题。更换鼠标 - 但同样的事情。

即使我卸下键盘,也会发生这种情况。

可能是什么原因?这在我几天前安装 Ubuntu 10.10 后开始发生。早些时候在 Windows 上,一切正常。所以,我有点怀疑这是硬件故障。

如何解决这个问题?

更新:

xev 给出了这样的结果:

KeyPress 事件,序列号 36,合成 NO,窗口 0x4200001,root 0xb8,subw 0x0,时间 29897358,(237,791),root:(1252,842),状态 0x10,keycode 65(keysym 0x20,空格),same_screen YES,XLookupString 给出1 个字节:(20)"" XmbLookupString 给出 1 个字节:(20)"" XFilterEvent 返回:False

KeyRelease 事件,序列号 36,合成 NO,窗口 0x4200001,root 0xb8,subw 0x0,时间 29897603,(237,791),root:(1252,842),状态 0x10,keycode 65(keysym 0x20,空格),same_screen YES,XLookupString 给出1 个字节:(20)“” XFilterEvent 返回:False

keyboard hardware events evdev
  • 1 个回答
  • 435 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve