Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Onyx Boox

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2022, 03:03 PM   #1
csdvrx
Enthusiast
csdvrx began at the beginning.
 
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.
csdvrx is offline   Reply With Quote
Old 11-12-2022, 08:20 AM   #2
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,919
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by csdvrx View Post
Now that the cover buttons are working...
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
I would have gone for SLEEP instead of POWER and that ALT_LEFT is unnecessary. Eh, I'll fix it in the kernel.

Last edited by Renate; 11-12-2022 at 08:32 AM.
Renate is offline   Reply With Quote
Advert
Old 11-12-2022, 02:06 PM   #3
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
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
Renate is offline   Reply With Quote
Old 11-14-2022, 03:21 PM   #4
csdvrx
Enthusiast
csdvrx began at the beginning.
 
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?)
csdvrx is offline   Reply With Quote
Old 11-14-2022, 04:51 PM   #5
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
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.
Renate is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:39 AM.


MobileRead.com is a privately owned, operated and funded community.