English Community

Gaming – Lenovo LegionGaming Laptops
All Forum Topics
Options

1 Posts

09-24-2020

IT

1 Signins

0 Page Views

  • Posts: 1
  • Registered: ‎09-24-2020
  • Location: IT
  • Views: 0
  • Message 1 of 1

Lenovo Legion Y740 autogenerates KeyRelease events everytime a character key is pressed on RHEL 7.8

2020-09-24, 13:10 PM

I installed a Red Hat Enteprise Linux distribution version 7.8 on my Lenovo Legion Y740 machine and it is giving me a keyboard problem.

Everytime a character key is pressed, both a KeyPress event and a KeyRelease event are generated by xkb.

Below the output of running xev and pressing the d key without releasing it (notice the same time of generation)

 

KeyPress event, serial 66, synthetic NO, window 0x6000001,

   root 0x133, subw 0x0, time 1955222, (88,100), root:(1830,138),

   state 0x10, keycode 40 (keysym 0x64, d), same_screen YES,

   XLookupString gives 1 bytes: (64) "d"

   XmbLookupString gives 1 bytes: (64) "d"

   XFilterEvent returns: False

 

KeyRelease event, serial 66, synthetic NO, window 0x6000001,

   root 0x133, subw 0x0, time 1955222, (88,100), root:(1830,138),

   state 0x10, keycode 40 (keysym 0x64, d), same_screen YES,

   XLookupString gives 1 bytes: (64) "d"

   XFilterEvent returns: False

 

This bug makes it impossible for the entire system to recognize if a key was just pressed or kept in a holding state. Moreover, it only applies to characters, backspace, enter, space, the arrows and other keys useful to write text; the bug does not affect Left/Right Ctrl and Shift keys (see below for a log)

 

KeyPress event, serial 66, synthetic NO, window 0x6000001,

   root 0x133, subw 0x0, time 2308011, (27,109), root:(1769,147),

   state 0x10, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,

   XLookupString gives 0 bytes:

   XmbLookupString gives 0 bytes:

   XFilterEvent returns: False

 

KeyPress event, serial 66, synthetic NO, window 0x6000001,

   root 0x133, subw 0x0, time 2308447, (27,109), root:(1769,147),

   state 0x11, keycode 38 (keysym 0x41, A), same_screen YES,

   XLookupString gives 1 bytes: (41) "A"

   XmbLookupString gives 1 bytes: (41) "A"

   XFilterEvent returns: False

 

KeyRelease event, serial 66, synthetic NO, window 0x6000001,

   root 0x133, subw 0x0, time 2308447, (27,109), root:(1769,147),

   state 0x11, keycode 38 (keysym 0x41, A), same_screen YES,

   XLookupString gives 1 bytes: (41) "A"

   XFilterEvent returns: False

 

KeyRelease event, serial 66, synthetic NO, window 0x6000001,

   root 0x133, subw 0x0, time 2309427, (27,109), root:(1769,147),

   state 0x11, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,

   XLookupString gives 0 bytes:

   XFilterEvent returns: False

 

Running xset q I obtain the following (auto repeat is actually turned on, it just does not work)

Keyboard Control:

 auto repeat:  on    key click percent:  50    LED mask:  00000002

 XKB indicators:

   00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off

   03: Compose:     off    04: Kana:        off    05: Sleep:       off

   06: Suspend:     off    07: Mute:        off    08: Misc:        off

   09: Mail:        off    10: Charging:    off    11: Shift Lock:  off

   12: Group 2:     off    13: Mouse Keys:  off

 auto repeat delay:  660    repeat rate:  25

 auto repeating keys:  00ffffffffffffff

                       ffffffffffffffff

                       ffffffffffffffff

                       ffffffffffffffff

 bell percent:  50    bell pitch:  400    bell duration:  100

Pointer Control:

 acceleration:  20/10    threshold:  4

Screen Saver:

 prefer blanking:  yes    allow exposures:  yes

 timeout:  0    cycle:  600

Colors:

 default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff

Font Path:

 catalogue:/etc/X11/fontpath.d,built-ins

DPMS (Energy Star):

 Standby: 600    Suspend: 900    Off: 1200

 DPMS is Enabled

 Monitor is On

 

Is there a configuration file to modify to change this behavior, or is it just embedded in the keyboard driver?

Thank you for your response.

 

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete