자동 반복이 작동하지 않습니다

자동 반복이 작동하지 않습니다

내 노트북에서는 자동 반복( )을 켜도 xset r on작동하지 않습니다. 출력을 검토해 보면 xev자동 반복이 실패하는 이유는 다른 키를 간헐적으로 눌러(아무 키도 누르지 않더라도) 현재 누르고 있는 키의 자동 반복이 취소되기 때문인 것으로 보입니다. 아무 키도 누르지 않으면 다음 이벤트가 반복적으로 기록됩니다.

KeyPress event, serial 33, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1652400, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1652400, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

실제로는 누르지 않았는데도 키코드 221의 키가 눌려진 것처럼 보입니다.

그렇다면 xorg가 해당 키코드로부터 키 입력을 전혀 수신하지 않도록 키코드를 완전히 비활성화하는 것이 가능합니까? 또는 다른 키를 눌렀는지 여부에 관계없이 키를 누르고 있으면 자동으로 반복되도록 할 수 있습니까?


고쳐 쓰다:

실행 후 sudo evtest숨겨진 출력이 다음에서 나오는 것 같습니다.

/dev/input/event11 PEAQ WMI hotkeys

아무 것도 누르지 않으면 다른 입력 장치는 이벤트를 보내지 않는 것 같습니다. evtest에서 키보드 이벤트를 확인할 때 자동 반복이 작동합니다.


xev버튼을 누르지 않았을 때 몇 초 동안 실행되는 전체 출력:

Outer window is 0x1200001, inner window is 0x1200002

PropertyNotify event, serial 8, synthetic NO, window 0x1200001,
    atom 0x27 (WM_NAME), time 1651733, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x1200001,
    atom 0x22 (WM_COMMAND), time 1651733, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x1200001,
    atom 0x28 (WM_NORMAL_HINTS), time 1651733, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x1200001,
    parent 0x1200001, window 0x1200002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x1200001,
    atom 0x15c (WM_PROTOCOLS), time 1651734, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x1200001,
    event 0x1200001, window 0x1200002, override NO

ReparentNotify event, serial 28, synthetic NO, window 0x1200001,
    event 0x1200001, window 0x1200001, parent 0x4000d5,
    (0,0), override NO

ConfigureNotify event, serial 28, synthetic NO, window 0x1200001,
    event 0x1200001, window 0x1200001, (2,0), width 952, height 1033,
    border_width 2, above 0x0, override NO

PropertyNotify event, serial 28, synthetic NO, window 0x1200001,
    atom 0x15e (WM_STATE), time 1651735, state PropertyNewValue

MapNotify event, serial 28, synthetic NO, window 0x1200001,
    event 0x1200001, window 0x1200001, override NO

VisibilityNotify event, serial 28, synthetic NO, window 0x1200001,
    state VisibilityUnobscured

Expose event, serial 28, synthetic NO, window 0x1200001,
    (0,0), width 952, height 10, count 3

Expose event, serial 28, synthetic NO, window 0x1200001,
    (0,10), width 10, height 58, count 2

Expose event, serial 28, synthetic NO, window 0x1200001,
    (68,10), width 884, height 58, count 1

Expose event, serial 28, synthetic NO, window 0x1200001,
    (0,68), width 952, height 965, count 0

ConfigureNotify event, serial 28, synthetic YES, window 0x1200001,
    event 0x1200001, window 0x1200001, (962,18), width 952, height 1033,
    border_width 2, above 0x0, override NO

FocusIn event, serial 28, synthetic NO, window 0x1200001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  4294967236 0   0   0   16  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   

PropertyNotify event, serial 28, synthetic NO, window 0x1200001,
    atom 0x14f (_NET_WM_DESKTOP), time 1651736, state PropertyNewValue

KeyRelease event, serial 30, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1651775, (-509,794), root:(455,814),
    state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
    XLookupString gives 1 bytes: (0d) "
"
    XFilterEvent returns: False

MappingNotify event, serial 33, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 33, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1652400, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1652400, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1653200, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1653200, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1654000, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1654000, (-509,794), root:(455,814),
    state 0x0, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

MappingNotify event, serial 34, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 34, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1654760, (-509,794), root:(455,814),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

MappingNotify event, serial 35, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 35, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1654800, (-509,794), root:(455,814),
    state 0x40, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x1200001,
    root 0x123, subw 0x0, time 1654800, (-509,794), root:(455,814),
    state 0x40, keycode 221 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

MappingNotify event, serial 36, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

FocusOut event, serial 36, synthetic NO, window 0x1200001,
    mode NotifyGrab, detail NotifyAncestor

ClientMessage event, serial 37, synthetic YES, window 0x1200001,
    message_type 0x15c (WM_PROTOCOLS), format 32, message 0x15d (WM_DELETE_WINDOW)

답변1

커널 4.13에 도입된 버그인 것 같습니다.Redhat bugzilla 버그 #1497861.

peaq_wmi모듈을 제거하는 것도 해결 방법이라는 것을 알았습니다 . 누군가가 이 문제를 해결하기 위해 패치를 제출한 것 같습니다.

peaq_wmi( 모듈을 제거하려면 명령을 실행할 수 있습니다 sudo modprobe -r peaq_wmi.)

답변2

PEAQ WMI 단축키를 비활성화하면 문제가 해결되는 것으로 나타났습니다. 먼저 PEAQ WMI 단축키를 비활성화하여 xinput listID를 찾았습니다 .

[email protected]:~$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=11   [slave  pointer  (2)]
⎜   ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=12   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=10   [slave  keyboard (3)]
    ↳ Lenovo EasyCamera: Lenovo EasyC           id=13   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=14   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=15   [slave  keyboard (3)]
    ↳ Dell Dell KM632 Wireless Keyboard and Mouse   id=18   [slave  keyboard (3)]
    ↳ PEAQ WMI hotkeys                          id=17   [slave  keyboard (3)]

이 예에서 ID는 17입니다. 그런 다음 .xinitrc에 xinput --disable 17문제를 일으키는 , 또는 ID를 추가했더니 문제가 해결되었습니다.

답변3

최신 커널 업데이트 이후 ElementaryOS에서도 같은 문제가 발생했습니다. 그것에 대해 포스팅했어요여기. 답변 중 하나를 사용하여 sudo modprobe -r peaq_wmi문제를 해결했습니다.

편집: xinput --disable 17.xinit에 추가됨아니요이 문제는 영구적으로 해결되었으므로 부팅할 때마다 위 명령을 실행했습니다. 내 Lenovo Yoga 500-14IHW는 기본 OS에서 실행됩니다.

또한, 이 버그는 아치 리눅스와는 아무런 관련이 없으므로, 더 많은 사람들이 이 문제에 대한 해결책을 찾을 수 있도록 표시해 주시기 바랍니다.

관련 정보