Hello
I'd like to remap the 2 keys (volume up/down or page up/down) with
sds100 keymapper to define contextual functions (ex: be volume up/down in this app, page up/down in that other app, toggle wifi if they are pressed in sequence, etc.)
I have done that on other devices, it works great!
However, on the boox I can't record the keys: no action is detected.
Right now my best guess is that it's due to the smart cover app in settings: something must already be intercepting the buttons and trying to interpret their function.
However, I don't see any app with a telling name with`pm list packages |grep onyx`
- package:com.onyx.dict
- package:com.onyx.kime
- package:com.onyx.mail
- package:com.onyx.android.onyxotaservice
- package:com.onyx.android.production.test
- package:com.onyx.android.ksync
- package:com.onyx
- package:com.onyx.easytransfer
- package:com.onyx.kreader
- package:com.onyx.android.note
- package:com.onyx.floatingbutton
- package:com.onyx.tscalibration
- package:com.onyx.appmarket
- package:com.onyx.calculator
Pressing on the keys while running top doesn't show anything either
The only thing I see is in the dmesg:
- [ 2.438118] input: onyx-misc as /devices/platform/soc/soc
nyx_misc/input/input5
- [ 2.438454] input: onyx-hall as /devices/platform/soc/soc
nyx_hall/input/input6
- [ 2.631472] input: gpio-keys as /devices/platform/soc/soc:gpio_keys/input/input7
So I suppose the hall sensor (for the cover) is input6 sending key 1
With this information in hand, I've tried `cat /dev/input/event7` and I see actions whenever I press on the cover keys, even if the screen is off.
lsof reports all these are opened by the same thing:
Binder:1398_3 1398 system 161u CHR 13,71 0t0 10155 /dev/input/event7
So I think I'm missing something. Any help or hint would be appreciated!