在尝试修复 Wayland 下的触控板灵敏度,并且无法使用 Wayland 下的 nvidia 卡后,我决定切换到 X,但 X 下的控制键有一个奇怪的问题,而我在 Wayland 下没有。按唯一的控制键(向左或向右)似乎有效,但会使当前选择失去焦点,特别是使在浏览器的开发人员控制台中编辑 CSS 变得非常困难,因为我不能简单地按 ctrl+C/V 来复制/粘贴 css 样式。戴尔 XPS 15 9560 有一个 Fn 键,与右控制键结合可以毫无问题地激活上下文菜单,但单个控制键一直在做这种奇怪的事情。在设置 > 区域和语言 > 键盘布局中,我可以看到它注册了每个键(甚至 Fn+rControl 为“菜单”),但没有注册任何控制键。
我希望你能帮助我解决这个问题。
编辑:这是按Fn + rightControl进行上下文菜单操作时键盘映射布局的图像。仅按左或右控制键时,键盘映射布局没有响应。
此外,来自 FFDev 开发人员控制台的一个小视频显示,每次我按下任何控制键(复制/粘贴)时,光标都会从该字段中失去焦点。https://www.dropbox.com/s/kpvyri5iuujx0bb/control-pressing.ogv?dl=0
谢谢!
编辑 02:使用 evtest 检查我看到消息:
Event: time 1536961386.805167, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1536961386.805167, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1536961386.805167, -------------- SYN_REPORT ------------
Event: time 1536961386.901359, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1536961386.901359, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1536961386.901359, -------------- SYN_REPORT ------------
Event: time 1536961217.724127, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9d
Event: time 1536961217.724127, type 1 (EV_KEY), code 97 (KEY_RIGHTCTRL), value 1
Event: time 1536961217.724127, -------------- SYN_REPORT ------------
Event: time 1536961217.820477, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9d
Event: time 1536961217.820477, type 1 (EV_KEY), code 97 (KEY_RIGHTCTRL), value 0
如果我继续按下任何控制键,值会从 1 变为 2,重复直到我停止按下它。
EDIT 03: Stranger still, I have tried remapping the keys to make Super_L work as Control_L and viceversa. What happens is that the Control key keeps on "unfocusing" as before, even the function is that of Super_L. I also tried unmapping all functions from Control_L and it keeps on doing the "unfocusing" thing, even it has no other function right now.
I have run:
xmodmap -pm
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
xmodmap -e "remove control = Super_L"
xmodmap -e "add mod 4 = Control_L"
For testing, I also ran:
xmodmap -e "remove control = Control_R"
Seems the issue ended up residing in the ~/.config/dconf
folder, I discovered it after creating a new user for testing and checking that the keyboard worked flawlessly. I installed dconf-editor
with apt
so I could edit the configuration but after a long while I decided to just rename de dconf and setting up again to my liking the "settings" app and the "gnome-tweak" app.
编辑:终于找到了真正的问题。它在 gnome-tweaks 设置中,在 Wayland 上工作正常,但在 X 上,键盘和鼠标下的指针位置是罪魁祸首,关闭它后,Ctrl 键再次完美工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句