您尚未登录。

#1 2021-03-12 22:18:34

ifnk
会员
注册时间: 2021-01-25
帖子: 93

archlinux 无法 使用 alt + shift + <any> 组合键了

我的archlinux 不知道 怎么怎么突然不能使用  alt+shift 的组合键了

就是 可以 使用  ctrl+shift 组合键
但 是 当你 按 alt+shift+h  组合键的 时候  他就会发送  alt+h 或者 shift+h ,好像 alt 被忽略 了

一开始 我以为是 xkeysnail 或者  fcitx 的原因 ,我把这两个 程序 都关了 ,但是 还是 这样
然后 我 又开了 xkeysnail 监听 了 下 我按 alt+shift+h 是 可以  被 xkeysnail 输出的日志 监听到的 ,但是 shift就是发不出来 ……

下面是日志
Watching keyboard devices plug in
WM_CLASS 'St' | active keymaps = [Anonymous keymap]
LM-LShift-H

我谷歌了一下 ,发现 这个 人和我有一样的毛病

https://bbs.archlinux.org/viewtopic.php?id=223221

但是 我按照 他的 命令  setxkbmap de
却还是没有变化 ,重启了也没有变化 ,实在 是不知道怎么办了
我的 /etc/locale.conf
是 zh_CN 的
语言配置里面 也只开 了 en_Us.utf-8 和 zh-cn.utf-8
但是我 觉得 不是 语言的问题
因为我刚安装 的时候 应该是 好用的
台试机 也装了 archlinux ,alt+shift+<any> 也是好用的

离线

#2 2021-03-13 10:09:57

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

xev 看看呢?

离线

#3 2021-03-13 12:51:31

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

依云 说:

xev 看看呢?

这个是 显示按键 信息 的吧 ? 我试了下 alt 的 code 是 64

KeyPress event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 286132, (128,239), root:(1092,1324),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 286264, (128,239), root:(1092,1324),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

shift 的code 是 50


我按 alt + shift + <any> 组合键 的时候 他是 会显示 64 和 50 这个码 的呢

离线

#4 2021-03-13 12:55:03

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

依云 说:

xev 看看呢?


这是我按 alt +shift + l 的 记录

KeyPress event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 447809, (88,237), root:(1052,1322),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 447852, (88,237), root:(1052,1322),
    state 0x8, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 448006, (88,237), root:(1052,1322),
    state 0x2008, keycode 46 (keysym 0x6c, l), same_screen YES,
    XLookupString gives 1 bytes: (6c) "l"
    XmbLookupString gives 1 bytes: (6c) "l"
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 448094, (88,237), root:(1052,1322),
    state 0x2008, keycode 46 (keysym 0x6c, l), same_screen YES,
    XLookupString gives 1 bytes: (6c) "l"
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 448265, (88,237), root:(1052,1322),
    state 0x2008, keycode 50 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2800001,
    root 0x7a7, subw 0x0, time 448265, (88,237), root:(1052,1322),
    state 0x2008, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

奇怪 的是 alt 上面 显示的是 keysym 0xffe9, Alt_L  但是 shift 怎么显示的是 keysym 0xfe08, ISO_Next_Group

离线

#5 2021-03-13 13:11:21

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

你的键盘布局和你预想的不一样。看看 https://unix.stackexchange.com/a/583088/17219

离线

#6 2021-03-13 13:47:10

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

依云 说:

你的键盘布局和你预想的不一样。看看 https://unix.stackexchange.com/a/583088/17219

这个网址 的解决方法 看不懂呀 …… 就是说我的键盘布局 和默认 的 qwerty 有区别是么? 可我明明什么都没有做呀……还是某个程序给我改 了……

我用 localectl status 看了下

> localectl status                                                     13:43:39
   System Locale: LANG=zh_CN.UTF-8
       VC Keymap: n/a
      X11 Layout: cz,us
       X11 Model: pc104
     X11 Variant: ,dvorak
     X11 Options: grp:alt_shift_toggle
发现 x11 variant 变成 了  dvorak 这个布局 ,我都没有用过这个布局 ……

请问下 我怎么 才能改会来呢 ,就 是 正常 用户 的 qwerty 布局 ,然后 把这个  ISO_Next_Group 改成 shift

离线

#7 2021-03-13 14:05:40

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

依云 说:

你的键盘布局和你预想的不一样。看看 https://unix.stackexchange.com/a/583088/17219

啊,我解决了 , 我之前 为了 解决 我 开机 外接 键盘 不能用的 问题 参考 了 这个 wiki
https://wiki.archlinux.org/index.php/Xo … figuration

然后 按照  他的 例子 编辑 了 sudo rm -rf /etc/X11/xorg.conf.d/00-keyboard.conf
这个文件
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "cz,us"
        Option "XkbModel" "pc104"
        Option "XkbVariant" ",dvorak"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

导致把我的键盘 布局 换成  dvorak 了 ……  我现在 把这个  00-keyboard.conf删除 重启 了 就好了
我想问下管理员 这个 /etc/X11/xorg.conf.d/00-keyboard.conf 文件 删除 了不影响 我 日常 使用 把?

离线

#8 2021-03-13 14:24:57

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

cz 这是捷克……你往自己系统里塞配置文件时都不看看它写了些什么么。
导致出现 ISO_Next_Group 的应该是 grp:alt_shift_toggle 这个选项。

离线

#9 2021-03-13 15:09:46

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 无法 使用 alt + shift + <any> 组合键了

依云 说:

cz 这是捷克……你往自己系统里塞配置文件时都不看看它写了些什么么。
导致出现 ISO_Next_Group 的应该是 grp:alt_shift_toggle 这个选项。

嗯,我把它删除了 ,我再也不乱塞配置文件 了……

离线

页脚