Debian 不能使用左 Shift

按下左 shift 后输入的光标消失,不能用作上档键,在vim下不能使用 \ 键。键盘布局为“美国英语”。
而且没有 sudo 这个命令好奇怪,现在先输入 su root,再输入命令。

  1. 类似问题 参考 forums.debian.net/viewtopic.php?f=7&t=80217
  2. 安装 sudo 并将普通用户添加进 sudoers 即可

运行 xev,按异常按键查看输出

可否详细说明

运行 xev,输入 Shift L,结果为:
PropertyNotify event, serial 33, synthetic NO, window 0x1e00001,
atom 0x128 (_NET_WM_STATE), time 2017231, state PropertyNewValue

FocusIn event, serial 33, synthetic NO, window 0x1e00001,
mode NotifyUngrab, detail NotifyNonlinear

KeymapNotify event, serial 33, 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

按 \ 结果为:
KeyPress event, serial 36, synthetic NO, window 0x1e00001,
root 0x16d, subw 0x0, time 2158456, (-800,475), root:(289,728),
state 0x0, keycode 51 (keysym 0x5c, backslash), same_screen YES,
XLookupString gives 1 bytes: (5c) ""
XmbLookupString gives 1 bytes: (5c) ""
XFilterEvent returns: False

在 Ubuntu 下没有这个问题,两次安装 Debian 都有这个问题。(Ubuntu会出现卡机,上次强制关机后系统坏掉,换了Debian)
换个 usb 接口问题依然存在。