|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: May 2022
Device: kindle HD8 onyx
|
How to remap the power button and the launcher desactivated store icon?
Now that the cover buttons are working, I wonder if it's also possible to remap the power button with sds100 keymapper?
The goal is to hijack the power button "go to sleep" function, as the boox should still go to sleep by itself with the timer. The boox could also be put to sleep with a magnet applied to the Hall sensor (like the cover does). In any case, even if the power button key event is hijacked, pressing the power button would still cause a wakeup as it seem to be caused by a gpio triggering a change in the state machine. The main gain would be to have a physical button for common actions (ex: back, screen rotation) and which could be mapped to its regular function (go to sleep) with keymapper for a long press, or a sequence of 2 quick power button press. In the same vein, I wonder if it's possible to intercept the click on the default launcher side icon for the store, to launch something else (ex: fdroid, aurora...) if the store is desactivated in the settings. |
![]() |
![]() |
![]() |
#2 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,919
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
So they are working?
There are still plenty of gestures that you can use. See: /data/data/com.android.systemui/gestures_config The cover "Hall effect" sensor (which I believe is some sort of RF sensor actually) generates: Code:
/* Open */ e1 92 6f 63 00 00 00 00 72 88 01 00 00 00 00 00 01 00 38 00 01 00 00 00 // 0x38 -> 56 -> ALT_LEFT e1 92 6f 63 00 00 00 00 72 88 01 00 00 00 00 00 00 00 00 00 00 00 00 00 e1 92 6f 63 00 00 00 00 e4 88 01 00 00 00 00 00 01 00 8f 00 01 00 00 00 // 0x8f -> 143 -> WAKEUP e1 92 6f 63 00 00 00 00 e4 88 01 00 00 00 00 00 00 00 00 00 00 00 00 00 e1 92 6f 63 00 00 00 00 eb 88 01 00 00 00 00 00 01 00 8f 00 00 00 00 00 e1 92 6f 63 00 00 00 00 eb 88 01 00 00 00 00 00 00 00 00 00 00 00 00 00 e1 92 6f 63 00 00 00 00 f4 88 01 00 00 00 00 00 01 00 38 00 00 00 00 00 e1 92 6f 63 00 00 00 00 f4 88 01 00 00 00 00 00 00 00 00 00 00 00 00 00 /* Close */ f7 db 6e 63 00 00 00 00 f1 ad 03 00 00 00 00 00 01 00 38 00 01 00 00 00 // 0x38 -> 56 -> ALT_LEFT f7 db 6e 63 00 00 00 00 f1 ad 03 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 db 6e 63 00 00 00 00 5e ae 03 00 00 00 00 00 01 00 74 00 01 00 00 00 // 0x74 -> 116 -> POWER f7 db 6e 63 00 00 00 00 5e ae 03 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 db 6e 63 00 00 00 00 65 ae 03 00 00 00 00 00 01 00 74 00 00 00 00 00 f7 db 6e 63 00 00 00 00 65 ae 03 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 db 6e 63 00 00 00 00 6d ae 03 00 00 00 00 00 01 00 38 00 00 00 00 00 f7 db 6e 63 00 00 00 00 6d ae 03 00 00 00 00 00 00 00 00 00 00 00 00 00 Last edited by Renate; 11-12-2022 at 08:32 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,919
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Eh, much better.
Code:
/* Open */ 37 eb 6f 63 00 00 00 00 35 19 04 00 00 00 00 00 01 00 8f 00 01 00 00 00 // WAKEUP 37 eb 6f 63 00 00 00 00 35 19 04 00 00 00 00 00 00 00 00 00 00 00 00 00 37 eb 6f 63 00 00 00 00 97 19 04 00 00 00 00 00 01 00 8f 00 00 00 00 00 37 eb 6f 63 00 00 00 00 97 19 04 00 00 00 00 00 00 00 00 00 00 00 00 00 /* Close */ 33 eb 6f 63 00 00 00 00 e2 df 09 00 00 00 00 00 01 00 8e 00 01 00 00 00 // SLEEP 33 eb 6f 63 00 00 00 00 e2 df 09 00 00 00 00 00 00 00 00 00 00 00 00 00 33 eb 6f 63 00 00 00 00 3f e0 09 00 00 00 00 00 01 00 8e 00 00 00 00 00 33 eb 6f 63 00 00 00 00 3f e0 09 00 00 00 00 00 00 00 00 00 00 00 00 00 |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: May 2022
Device: kindle HD8 onyx
|
Thanks!
If you have had the chance to experiment, are my predictions correct? (ie once the power button has been remapped, can you use it with keymapper when the boox is awake? and is the Hall sensor putting the Boox to sleep, while the power button still wakes up the boox?) |
![]() |
![]() |
![]() |
#5 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,919
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
I'm not sure. Usually SLEEP, WAKEUP, POWER are not dispatched to any app.
You'd need to change POWER to something else and have your mapper map *that* to POWER/whatever. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Launcher icon for KUAL? | Aeris | Kindle Developer's Corner | 32 | 04-01-2021 07:57 PM |
Onyx Note: How can I remap the back button to wake up the device | cicabum | Onyx Boox | 0 | 08-24-2018 08:17 PM |
[KT]Turn store button on search bar to browser button | aditya3098 | Kindle Developer's Corner | 74 | 05-19-2017 08:33 PM |
Adding icon on Homescreen builtin launcher | anddam | Sony Reader Dev Corner | 0 | 11-09-2012 03:17 PM |
PRS-T1 How can I use back button as power button? | younghere | Sony Reader | 1 | 03-12-2012 06:37 PM |