09-09-2021, 08:50 PM | #106 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Re-enabling com.onyx and restarting doesn't help. I should probably let Onyx know
|
09-09-2021, 08:54 PM | #107 | |
Wizard
Posts: 2,314
Karma: 9599999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Quote:
Onyx knew that they screwed up so they wrapped it in tissue paper (a try-catch) so it only prints a W warning. |
|
09-09-2021, 09:07 PM | #108 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Ah, I see. Thank you for clarifying.
Will these extra lines in the log actually make any difference to worry about? I know the log files are rotated with some size limit, but still these extra write operations. |
09-09-2021, 09:10 PM | #109 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
I just like this solution (long-press to call stock dialog) because it is simple and yet functional. I can adjust each level or locked together, select profiles and toggle lights from this dialog.
Before that I had GentleGlow on long-press, however to turn off the lights I had to go Notifications menu. Also, it is kinda separate from the stock brightness control, so other apps do not sync with it. |
09-10-2021, 05:54 AM | #110 | ||
Wizard
Posts: 2,314
Karma: 9599999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Quote:
Quote:
If you don't write to them the lights will not restore to the same level the next time you turn it on. Me? I just leave the lights on at 30% all the time. If it's bright, I don't notice. I haven't noticed battery drain. I almost never explicitly charge. It's connected enough for sync/dev. |
||
09-10-2021, 07:57 PM | #111 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Is there a safe way to shuffle screensavers (or make the system select them randomly) located in /data/local/assets/images/ ?
Currently the only way I see is to run a shell script that renames those “standby-n.png” randomly after boot completed. Magisk has a directory for such shell scripts. However I am not sure how will it behave. I only tested it manually: via SSH, renamed the screensaver number that was supposed to be the next one (e.g. number 2 if I only put the device to sleep once after fresh boot). The substitution worked well. If the next file is not strictly named in that format (for example standby-2A.png), it uses some pre-cached stock image of 600x800 px. I replaced those in /system/media/ — but this didn’t change a thing. I don’t know where these pre-cached things come from, maybe from disabled com.onyx. I should probably also make a check of chmod (777) for those files. |
09-10-2021, 09:47 PM | #112 |
Wizard
Posts: 2,314
Karma: 9599999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Are you actually modifying /system?
Right now all the updates (~1GB) seem to be full and not incremental, but if they ever switch to incremental it might make life more difficult if you've modified /system. I saw that I had tried putting links in /system/media (but in Magisk, not /system) but that hadn't worked. Now I just keep 3 copies of the same graphic in /data/local/assets/images. I haven't found the place in the code yet where the names of 3 files are hard-coded. |
09-11-2021, 01:56 AM | #113 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
|
09-11-2021, 07:00 AM | #114 |
Wizard
Posts: 2,314
Karma: 9599999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Yes, but even deleting A, deleting B, writing B, writing A changes the disk layout.
|
09-11-2021, 04:42 PM | #115 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
OK
If this will ever be a problem, I'll just edl the backed up untouched system.img |
09-16-2021, 02:39 AM | #116 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Answering my own question, here is how I managed to shuffle screensavers on each boot.
(As a reminder, since I disabled com.onyx, my screensavers are in /data/local/assets/images/ . This is a barebones screensaver engine, so I couldn't find any controls to it.) 1) Installed ccbins (Cross-Complized Binaries) module in Magisk. It installs busybox with a handful of utilities. My main goal was to get "shuf", to shuffle things in the array. 2) Wrote a script "shuffle_run.sh" and placed it in /data/adb/service.d which refers to another script "shuffle.sh" in /data/local/assets/ (giving chmod 755 to both of them as well). This file takes the names via ls (maybe not the best option, but it works), renames to a temp filenames and then renames again to the same names but taking a shuffled array of temporary names as input. Files attached, if you wanna try. Tested, works fine. I am happy P.S. ccbins has a really good amount of utils. If ran from ssh (just "ccbins"), you can download more things like bash, zsh, tcpdump, htop, nano, and many others. |
03-06-2022, 02:58 AM | #117 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
For those interested, I connected an Xbox Wireless controller to Kon-Tiki 2 and caught keycodes:
Code:
Button | Code | Action | -------------------|----------|----------| Xbox button | 0 | (nil) | Left stick move | (ignore) | (nil) | Left stick button | 106 | (nil) | Right stick move | (ignore) | (nil) | Right stick button | 103 | (nil) | A | 96 | (nil) | B | 97 | (nil) | X | 99 | (nil) | Y | 100 | (nil) | Dpad: left | (ignore) | (nil) | Dpad: right | (ignore) | (nil) | Dpad: up | (ignore) | (nil) | Dpad: down | (ignore) | (nil) | Menu left | 109 | (LPgFwd) | Menu right | 108 | (nil) | LB | 102 | (nil) | LT | (ignore) | (nil) | RB | 103 | (nil) | RT | (ignore) | (nil) | |
03-06-2022, 05:52 AM | #118 | |
Wizard
Posts: 2,314
Karma: 9599999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Quote:
That all comes out of /system/usr/keylayout/Generic.kl like everything. I haven't played with them, but the joysticks are at the end of that file. Most certainly the D pad can be make anything that you like. You can even add a 10 key numeric pad and use it for non-numeric. You want to make your own VID/PID specific keylayout. You can make different peripherals respond differently as long as they are not the exact same device. |
|
03-06-2022, 02:01 PM | #119 | |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Quote:
Last edited by mergen3107; 03-10-2022 at 06:13 AM. |
|
03-11-2022, 03:09 AM | #120 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Hmm, so weird. Looks like Onyx has broken bootloader commands in the recent update. Unless it was me who did something stupid. I cannot do "fastboot flash boot boot.img" anymore. Right after this command, fastboot gets disconnected and I have to restart the device with power button. I still can access edl and replace boot partition there.
I am not sure when did this start, before or after update. I remember doing "fastboot flashing lock" to lock it, but doing unlock works OK as it seems. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kon-tiki | mirage | Onyx Boox | 1 | 01-21-2021 10:30 PM |
Onyx Boox is releasing Note3 & Nova3 in China | winstonma | Onyx Boox | 23 | 10-20-2020 10:49 PM |
Apps for onyx boox | Narwhall85 | Onyx Boox | 0 | 05-08-2020 02:51 AM |
Removing Google apps on the Onyx Boox Note | Dav_25 | Onyx Boox | 4 | 04-29-2019 05:22 AM |
Readability/instapaper-like apps on onyx boox M92? | Acryde | Onyx Boox | 2 | 04-26-2012 10:05 AM |