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 / 问题

问题[xev](ubuntu)

Martin Hope
Sebastian Stumpf
Asked: 2020-05-17 05:52:44 +0800 CST

为什么我的罗技鼠标上的额外按钮在 20.04 下不再工作?

  • 2

我有一个罗技 G700s 鼠标。使用 Eon 下的额外按钮效果很好。现在我已经更新到 Focal,突然所有额外的按钮都不起作用了。按钮 1 和 2 以及滚轮正常工作。

xinput list            
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech G700s                            id=8    [slave  pointer  (2)]
⎜   ↳ HID 046a:0023                             id=11   [slave  pointer  (2)]

xinput list-props  8     
Device 'Logitech G700s':

Device 'Logitech G700s':
    Device Enabled (154):   1
    Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Natural Scrolling Enabled (291):   0
    libinput Natural Scrolling Enabled Default (292):   0
    libinput Scroll Methods Available (293):    0, 0, 1
    libinput Scroll Method Enabled (294):   0, 0, 0
    libinput Scroll Method Enabled Default (295):   0, 0, 0
    libinput Button Scrolling Button (296): 2
    libinput Button Scrolling Button Default (297): 2
    libinput Middle Emulation Enabled (298):    0
    libinput Middle Emulation Enabled Default (299):    0
    libinput Accel Speed (300): 0.000000
    libinput Accel Speed Default (301): 0.000000
    libinput Accel Profiles Available (302):    1, 1
    libinput Accel Profile Enabled (303):   1, 0
    libinput Accel Profile Enabled Default (304):   1, 0
    libinput Left Handed Enabled (305): 0
    libinput Left Handed Enabled Default (306): 0
    libinput Send Events Modes Available (276): 1, 0
    libinput Send Events Mode Enabled (277):    0, 0
    libinput Send Events Mode Enabled Default (278):    0, 0
    Device Node (279):  "/dev/input/event4"
    Device Product ID (280):    1133, 4138
    libinput Drag Lock Buttons (307):   <no items>
    libinput Horizontal Scroll Enabled (308):   1

按钮 1 和 2 + 滚轮显示在 下方xev,但所有其他额外按钮均未生成任何输出。我也跑sudo evtest /dev/input/by-id/usb-Logitech_USB_Receiver-if01-event-mouse了,结果和xev. 按钮 1、2 和鼠标滚轮工作正常。其他一切都没有出现。

如何让额外的按钮再次工作?

xorg mouse xev 20.04
  • 1 个回答
  • 553 Views
Martin Hope
Tanburi Ney
Asked: 2020-03-21 09:02:10 +0800 CST

特殊字符键带有 noname 而不是 xev 上的字母

  • 1
KeyRelease event, serial 37, synthetic NO, window 0x2600001,
    root 0x269, subw 0x0, time 25839746, (517,242), root:(622,350),
    state 0x0, keycode 254 (keysym 0x11f, (no name)), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x2600001,
    root 0x269, subw 0x0, time 25840405, (517,242), root:(622,350),
    state 0x0, keycode 255 (keysym 0x15f, (no name)), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x2600001,
    root 0x269, subw 0x0, time 25840514, (517,242), root:(622,350),
    state 0x0, keycode 255 (keysym 0x15f, (no name)), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

我在 dex 上使用 Linux。Ubuntu 16.0.4.5 LTS。我只需要一些特殊字符,例如şğİı。我在对 Linux 零知识的情况下对网络进行了一些研究(为期 2 天),但我的最后一站是这里。问题是当我打开时——这是我/usr/share/x11/xkb/symbols/tr系统上的当前键盘布局——我可以看到 gbreve(ğ)、scedilla(ş) 等。如果我的键被系统识别并显示 0x11f,我还尝试了 ibus 首选项。gbreve(ğ) 的表示是:UTF-16 :0x11f UTF-8 : 0xC4, 0x9F 当我按下它时。另外,当我键入时,我得到了这个:

$ locale -a 
C
C.UTF-8
en_US.utf8
POSIX
tr_CY.utf8
tr_TR.utf8

所以..我看到它是不同的 utf8 和 utf-16 但我能做些什么来输入这些字母?我只需要它用于 LibreOffice。

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

$ sudo dpkg-reconfigure keyboard-configuration
[sudo] password for dextop: 
grep: /proc/bus/input/devices: Permission denied
grep: /proc/bus/input/devices: Permission denied
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'int_container.sh' missing LSB tags and overrides
insserv: warning: script 'vnc.sh' missing LSB tags and overrides
insserv: warning: script 'init_container.sh' missing LSB tags and overrides

当我键入该命令时,没有像您这样的界面

在此处输入图像描述

我选择通用 105 int 并在那里选择语言布局。正如你提到的没有死键,我将 compose 设置为 alt gr 但这没有帮助。

我在以前的 Ubuntu img 设置上修复了 LSB 标签问题。所以问题不在于。另外,我听说一些错误是由 python 错误引起的。例如,我可以调出语言选择菜单,但是当我在系统设置上单击它时,什么也没有出现。我也尝试更改语言环境 tr 但它没有给我任何输出。我知道 dex 上的 Linux 设置起来并不可靠,但我的目标只是通过编辑 xkb x11 符号文件等生成几个字母。

好吧,我开始明白真正的问题是什么了。

  1. grep: /proc/bus/input/devices: Permission denied这个错误暗示了一些事情。需要许可。我也不能以任何方式改变布局。即使我选择英文键盘,它也会给我这个错误。所以我什么都改变不了。因此,由于它仍然是默认的英文键盘,它在 xev 输出中显示为 noname。因为它在 EN 布局中不存在。

  2. 我搜索了为什么它给了我这个错误。首先我看到proc文件夹被注册为nobody组。所以,只读。

首先,我使用 root 用户运行相同的 dkpg 命令。No protocol specified Cannot open display ":1"update-initramfs: deferring update (trigger activated)这次它给出了 3 个额外的错误。

然后尝试sudo adduser dextop /proc/bus/input/devices并得到 adduser: The group /proc/bus/input/devices' 不存在`

chown -R dextop /proc/bus/input/devices然后这次试了chown: changing ownership of '/proc/bus/input/devices': Permission denied

此时,根据此https://serverfault.com/questions/60711/chown-operation-not-permitted-for-root 我正在使用 FAT 文件系统,也许是我在 Linux dex 上使用的 Linux 映像。它不会也永远不会让我更改键盘布局。这很有趣。但感谢您的努力。

最后编辑:问题是 dex 应用程序中内置于 Linux 中的 Vnc 查看器,而不是 img 本身。因为当我以终端模式打开 Ubuntu 并连接到另一个 vnc 服务器时,我可以生成我想要的所有字符。(顺便说一句,连接到它没有用。当您全屏显示该 vnc 查看器应用程序时,连接会暂停)但我想我找到了一种使用我的母语使用 LibreOffice 的方法。我在reddit中解释过,这里:

https://www.reddit.com/r/LinuxonDex/comments/fuycwj/the_reason_of_why_i_cant_type_special_characters/

keyboard keyboard-layout locale ibus xev
  • 1 个回答
  • 271 Views
Martin Hope
Partack
Asked: 2019-12-01 22:35:15 +0800 CST

" ] " 和 " [ " 没有与 xsetwacom 正确映射

  • 0

我正在尝试映射我的绘图板按钮,并且针对我的特定场景执行此操作的命令是:

xsetwacom --set 'Tablet Monitor Pad pad' Button 1 "key a"
xsetwacom --set 'Tablet Monitor Pad pad' Button 2 "key b"

输出将是:

  • 按下按钮 1 > 键入字母 A,
  • 按钮 2 > 键入字母 B 等。

这很好用,没有问题。但是当我尝试设置“key [”或“key]”时,我得到的输出分别是数字 8 或 9 的按键。

我尝试了命令 XEV 来查找密钥代码:

极速电动车截图

事实证明"bracketright"是一回事,但设置它与](输出数字 9 而不是 ] 完全相同)

我什至尝试了0x5d 相同结果的键码(keysym?)。(输出9)

我不确定接下来要尝试什么..有人有什么想法吗?

我正在使用带有 DIGImend 驱动程序的 Ubuntu 18.04(我已经安装并正在运行)(如果有帮助,我的平板电脑是 Huion H640P..)

哦,我只是想到了一些可能有帮助的东西,我的键盘布局是英语(英国)。不知道这是否会弄乱任何东西?我觉得XEV无论如何都会抓住这一点,但我觉得值得一提。


编辑:原来它确实与键盘语言有关,我将键盘设置为 US 并且 [ 和 ] 的输出工作完美。

我检查了 XEV 的键码,它和以前一样。

这是一个错误吗?我应该报告吗?如果是这样,那么在哪里?

有没有办法检查英式键盘布局的实际绑定/键码?[]

shortcut-keys xev 18.04 keycodes
  • 1 个回答
  • 197 Views
Martin Hope
Rasmus
Asked: 2019-08-12 19:38:35 +0800 CST

如果 xev 不提供,则确定是否可以使 Fn + Key 生成键码

  • 5

关于对此答案的评论,我对以下内容感到好奇:

xev如果按下 时在 Event Tester中没有得到 keycode 输出Fn + Key,有没有办法确定是否可以获得组合的 keycode?

据我了解,一些键盘可能有硬编码的选项,而另一些可能是软编码的。我想知道是否有某种方法可以确定其中一种情况,而无需解构物理键盘。

keyboard keyboard-layout xev
  • 1 个回答
  • 409 Views
Martin Hope
Mutante
Asked: 2019-04-07 21:10:26 +0800 CST

使用 xev 映射左侧/右侧按钮

  • 2

我正在尝试将鼠标侧键配置为在 Firefox 和 Ubuntu 上后退/前进。

当我运行时,xev | grep ', button'我会为两个侧边按钮和滚动获得相同的按钮代码。所以我单击滚动,然后单击左侧按钮,然后单击右侧按钮并得到以下输出:

    state 0x10, button 2, same_screen YES
    state 0x210, button 2, same_screen YES
    state 0x10, button 2, same_screen YES
    state 0x210, button 2, same_screen YES
    state 0x10, button 2, same_screen YES
    state 0x210, button 2, same_screen YES

那么,我有三个具有相同数字/代码的按钮?有什么办法可以为每个按钮分配不同的代码吗?还是硬件问题?

mouse mouse-wheel xev
  • 1 个回答
  • 2594 Views
Martin Hope
user896702
Asked: 2019-02-03 16:10:11 +0800 CST

以某种方式映射“-”以逃避并且无法弄清楚如何将其映射回来

  • 0

非常愚蠢的问题,我将如何将“-”重新映射为其默认值(并在我按下 shift 时将其变为下划线)。

关键事件的输出xev:

KeyRelease event, serial 34, synthetic NO, window 0xc00001,
    root 0x1a8, subw 0x0, time 1776774, (-96,555), root:(3115,604),
    state 0x0, keycode 20 (keysym 0xff1b, Escape), same_screen YES,
    XKeysymToKeycode returns keycode: 9
    XLookupString gives 1 bytes: (1b) ""
    XFilterEvent returns: False
keyboard-layout shortcut-keys xev i3-wm
  • 2 个回答
  • 37 Views
Martin Hope
A.B.
Asked: 2015-09-13 08:01:56 +0800 CST

“xev”输出的含义

  • 7

我需要澄清一下:

当我xev在终端中启动并使用Super时,我得到以下输出。这是什么意思?

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

FocusIn event, serial 36, synthetic NO, window 0x2000001,
    mode NotifyUngrab, detail NotifyNonlinear

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys:  93  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
xev
  • 1 个回答
  • 6839 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