Tarnish misinterprets short-press of hardware key as long-press
Describe the bug While using xochitl, tarnish occasionally believes a key is being held despite recognizing it being released. Bug can be temporarily fixed by killing xochitl from Oxide launcher.
To Reproduce (appears inconsistently)
- open xochitl
- short-press left or middle button of rM1
- process manager or Oxide launcher will open
Expected behavior A short press of the button should only be recognized by up/down, and not as key held.
Log
Jul 27 18:05:50 reMarkable tarnish[169]: Up Qt::Key_Left
Jul 27 18:05:50 reMarkable tarnish[169]: Down Qt::Key_Left
Jul 27 18:05:51 reMarkable tarnish[169]: Key held Qt::Key_Left
Version Information:
- Device: reMarkable 1
- OS: 2.12.1.527 w/ ddvk-hacks (bug present in prior versions)
- Version: Oxide 2.3-1
@rendeko Could you provide more logs from before this happens? I'd like to see if I can correlate anything that might be causing this.
@rendeko poke?
Here I have it occurring on the home key, starting between March 4th to March 5th. https://pastes.io/se2rku6o1j
Here I have it occurring on the home key, starting between March 4th to March 5th. https://pastes.io/se2rku6o1j
It looks like you have power management enabled in xochitl. This is causing suspend to happen without tarnish being able to properly keep up with the current state. Thus, it gets confused about the state of the home key when resuming from sleep. It is reporting the key down and up events in the wrong order and thingks that it's being held down. If you disable xochitl's power management (auto sleep/poweroff) this should no longer happen after a reboot.
Mar 05 19:59:37 reMarkable tarnish[6882]: [xochitl 29943] 19:59:37.832 rm.batterymanager Entering "LightSleep" for 4489 seconds Mar 05 19:59:37 reMarkable tarnish[6882]: [xochitl 29943] 19:59:37.836 rm.batterymanager Woke up Mar 05 19:59:37 reMarkable tarnish[6882]: [xochitl 29943] 19:59:37.853 rm.batterymanager Wake-up reason: Other Mar 05 19:59:37 reMarkable tarnish[6882]: [xochitl 29943] 19:59:37.853 rm.batterymanager Re-entering "LightSleep" in 12 secs... Mar 05 19:59:38 reMarkable tarnish[6882]: Up Qt::Key_Home Mar 05 19:59:38 reMarkable tarnish[6882]: Down Qt::Key_Home Mar 05 19:59:39 reMarkable tarnish[6882]: Key held Qt::Key_Home
Since this is due to having xochitl's power management enabled, instead of using the Oxide one, I'm closing this issue.