![]() |
#16 |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
For anyone who has the official boox remote does it work with third party apps as page up/down like
Brave Einkbro Koreader Inoreader Scribd Nytimes Blinkist Many thanks !! |
![]() |
![]() |
![]() |
#17 | |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Quote:
If rooted, you can remap scancodes-keycodes per peripheral under /system/usr/keylayout using the VID/PID (also for Bluetooth devices). You can modify your app too. Also Button Mapper. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Speaking of button mapper I can't get it for the life of me to remap the volume control buttons on my nova air to be page up and page down. Was anyone successful at this ?
Also experimented with tasker without luck |
![]() |
![]() |
![]() |
#19 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
For KOReader you can remap all buttons except for home button (maybe back too, I don't remember). You just need the keycodes posted by Renate in https://www.mobileread.com/forums/sh...13&postcount=6 and a custom keymap following the instructions in https://github.com/koreader/koreader...customize-keys
The numbers of the left are keycodes. The strings on the right are "known" actions. You can see defaults in https://github.com/koreader/koreader.../event_map.lua. |
![]() |
![]() |
![]() |
#20 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Here's my latest project, although I'm still fighting with software fine-tuning. This pedal is mostly for guitar playing in the park, something small I can throw in my pack.
The original is an MAudio wired foot pedal. It sells for about $10. I kind of like the metal and the size but you have to make a few mods to use this for Bluetooth.
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#22 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
That looks like it was designed by Klingons. $40 is a bit pricey.
Please give us a report of the keycodes it generates when it comes in. |
![]() |
![]() |
![]() |
#23 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
So, the next chapter of the saga...
I want to make my own clicker. I ordered some cases, they are the Serpac CA-4-4B (4 button). I was quite pleased when they showed up. They have 4 buttons in a weird Klingon-ish pattern but widely spaced. I think this will be a big improvement on those 5-way switches that are so tiny and it's easy to hit up and right at the same time. This is just the case, I'm working on the PCB. The software is all working out well. I also retrofited an iRig BlueBoard and I'm quite pleased with it. I don't need to use a translator app to make it work with things and the button backlight is easier to turn on with a press on the outer two buttons (instead of having to go to some app and hit a slider). Edit: So I did the board design, hit Enter and now the design is at the fab. I hope it gets here soon. Last edited by Renate; 10-22-2021 at 03:39 PM. |
![]() |
![]() |
![]() |
#24 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
They do make it tough to check the battery on your Bluetooth devices.
Android was late to the game and they initially made checking of the batteries in your Bluetooth headphones years after Apple. They weren't thinking much of keyboards or mice or anything else. In the Android stock Settings you can click on a Bluetooth device and if it's a headset that takes phone calls it will display the battery level. Why can't it be a headphone that you only use for playing music or why not a keyboard? The devil only knows. In the latest Android source it should support everything else but it's not in the 3.1 software on my Poke 3. There is an app (which I haven't even tried) called BatOn which should work. Why do we even have to have separate apps for what should be in the OS? Ok, so I wrote my own stupid app instead. It works fine for my stuff (i.e. stuff I wrote firmware for) but not for a commercial headset, a keyboard and a clicker. It's not clear if they are simply missing BAS service (the service that reports battery level) or what. (The TestBed is at 100% because it's running on a power supply.) |
![]() |
![]() |
![]() |
#25 | |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Quote:
Luckily enough the remote works with KoReader pretty well! Yay! However, when trying it say within eInkBro, it doesn't seem to scroll (come on bro), Brave it scrolls but no repeater option so you have to tap down directional arrow each time you want to scroll Inoreader -- same thing; one line per tap, no repeat setting Nytimes -- a bit better than inoreader but still no repeat setting I already left feedback via the the settings menu that repeat settings would be nice. But overall, a great device that completes something I've wanted for awhile -- truly remote page turns so my book doesn't shake when it's mounted or on a stand and I want to change the page. let the lazy reading commence! PS: ideally i could remap the small arrow key that down is mapped to in certain apps and map it to page down instead. Last edited by arooni; 10-26-2021 at 02:33 PM. |
|
![]() |
![]() |
![]() |
#26 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Could you do me a favor? Could you check what codes it's generating. There is an app called UsbMode.apk (in my signature) that can tell you what codes it's generating. The 5 way buttons remain a mystery. The control ones that do F1-12 codes are speculated earlier in this thread, but you could document which symbol on the remote goes to what.
|
![]() |
![]() |
![]() |
#27 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Uh-oh, I see what they've done.
A long press (from any source) of PgDn gives you full page refresh! A long press of PgUp gives you "Menu"! Mmm, I don't like that. It also means that your button press works on the release, a bit of a delay. This is at the system level, before an app gets a chance to see anything. Edit: Well, that was quick but I still have to try it. All the goofy code is in /system/framework/framework.jar in android.onyx.util.PhoneWindowHelper It loads JSON presets in /system/framework/framework-res.apk in res/raw/keypad.json (also bt_keypad.json). Code:
{ "keySet": [ "KEYCODE_PAGE_DOWN" ], "shortPressAction": "switchByConf", "longPressAction": "fullRefreshScreen", "repeat": false }, Last edited by Renate; 10-27-2021 at 02:35 PM. |
![]() |
![]() |
![]() |
#28 |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Did you still need me to test something?
Would love to make the remote useful outside of the ebook reading apps |
![]() |
![]() |
![]() |
#29 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,924
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
So, I've got a fix. There's problems (unknown) round-tripping with ApkTool.
If you are using Magisk, this is safe and fairly easy. If you are modifying /system directly you might want to make a backup of that partition? I dunno. Just warning you. Also! ADB starts late so you want to boot up normally so you have ADB. Then you can issue the command: Code:
# stop As I said, the JSON files are in /system/framework/framework-res.apk Grab a copy and pull it on your desktop. My Poke3 has: Code:
md5: 9b99400530a31ad55f29bc68fc417fc1 24,578,369 framework-res.apk Use whatever desktop hex editor tools you have to find the ASCII string "keypad", without unzipping the file. There should be six eight occurences of it. Leave the first two alone, change the last four strings. Change #5, #6, #7, #8 (I like changing the "keypad" to a "zeypad" so that I know what I've done.) That's your file. Put it in your Magisk module directory or else replace the original system/framework file. I really like that now the page goes down when I press the button down, not when I release it. Right now, the auto-repeat is pretty fast. You can see it by holding down a letter in a text editor. If I do a typical "long press" on PgDn now I see that it goes off doing about 10 pages forward. I'll look into tempering that a bit. You could also handle that in your app to not go go on the auto-repeated DOWN but either timer or checking whether the page turning is backed up. Hmm, another project for me...* Good luck. If you screw up, don't reboot! just stop, fix something, start. *Edit: I added that idea to my reader. It goes fast, but stops after you let up the button (instead of staggering on for a second or two). I like it! Last edited by Renate; 10-30-2022 at 08:27 PM. |
![]() |
![]() |
![]() |
#30 |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Do you have the same remote yourself ?
Thanks for the suggestions! I didn't know Magisk could run on this device. Will magisk root the device ? I thought I needed to unlock the bootloader first ? It's been awhile since I've messed with it on previous android devices |
![]() |
![]() |
![]() |
Tags |
clicker |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unutterably Silly Love or Hate | DrDln | Lounge | 32 | 10-02-2012 09:39 AM |
Which Holiday do you hate/love the most? | kennyc | Lounge | 25 | 10-30-2010 02:08 PM |
Gen3 What do you love/hate about your Cybook - G3? | Rique | Bookeen | 66 | 09-09-2009 01:11 PM |
My love and hate | stevierg | Amazon Kindle | 9 | 03-01-2009 01:19 AM |
Love it or hate it? | grimo1re | Lounge | 9 | 08-03-2008 05:38 AM |