01-31-2024, 07:28 PM | #46 |
Member
Posts: 23
Karma: 11102
Join Date: Jan 2022
Device: kobo libra h2o, kobo clara hd, kobo elipsa 2e
|
if input_demo can draw to screen, that is really promising!! now the question is: why did remux not succeed at drawing :-/ the line about "displayed launcher for 400ms" is a little suspicious, but I'm unsure
Last edited by raisjn; 01-31-2024 at 07:30 PM. |
01-31-2024, 07:33 PM | #47 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
That is encouraging news!
Dragging the square - you're right about how that works. Swiping not killing app - right again, it is killed by clicking on the memory stat listed to the right of the item in the main menu, which you are not seeing. Drawing_demo and simple not doing much - lol drawing_demo presents a blank page for you to drag your finger around to leave a hazy trail. Simple is really a framework within a framework to support the actual script app which you would click on like menu.sh. The one other test I could suggest before Raisjn checks in is: If you put your ereader in Activities mode so that there are no Nickelly elements to respond to touch in the middle of the display, what happens when you click on your invisible remux main window, where the menu elements are supposed to be? Maybe they are there but invisible.... |
Advert | |
|
01-31-2024, 08:07 PM | #48 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
oh hi raisjn, didn't see you there!
I'm not sure if this is anything, but unlike Clouds, my very next line after detecting device was "Enabled Kobo Mark 7 quirks". Maybe NiLuJe could lend some insight? |
02-01-2024, 09:35 PM | #49 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
***
On a hunch, I tried rmkit in landscape rotation and got the same "NOT SHOWING LAUNCHER IN LANDSCAPE" as Clouds. So I removed the condition. $ nano -l src/remux/launcher.cpy Code:
34 //#define PORTRAIT_ONLY Clouds can you try this one please? *** Last edited by elinkser; 02-02-2024 at 09:51 PM. |
02-01-2024, 11:21 PM | #50 |
Member
Posts: 23
Karma: 11102
Join Date: Jan 2022
Device: kobo libra h2o, kobo clara hd, kobo elipsa 2e
|
wow, good catch! I completely missed that log line - hmmm
elinkser: when you removed that define, did remux show in landscape mode? |
Advert | |
|
02-02-2024, 02:25 PM | #51 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
***
Yes that's right. The previous remux (0131) gives repeated "NOT SHOWING LAUNCHER IN LANDSCAPE" log messages when I swipe up in landscape orientation. The latest remux (0201) displays the launcher menu correctly when I swipe up. (You have to swipe from all the way at the bottom corner, but it did not cause me any nickel item activation.) Interestingly, the latest input_demo (0131) works while the one I uploaded in Post #1 gives me a double pane. Conversely, the harmony drawing app uploaded in Post #10 still works great, as does the puzzles collection from Post #28, but the latest harmony seems to not permit drawing with any drawing tool. Rpncalc works, for those who like reverse polish notation calculators. Killing apps and returning to Nickel worked unless I used the old input_demo. So, I guess we're waiting on Clouds... I uploaded rpncalc for an extra incentive! *** Last edited by elinkser; 02-23-2024 at 11:36 AM. |
02-02-2024, 05:41 PM | #52 | |
Member
Posts: 23
Karma: 11102
Join Date: Jan 2022
Device: kobo libra h2o, kobo clara hd, kobo elipsa 2e
|
Quote:
|
|
02-02-2024, 07:23 PM | #53 | ||
Member
Posts: 24
Karma: 10
Join Date: Aug 2017
Device: Kobo Aura One
|
Quote:
Quote:
On the positive side of things: rpncalc works fine... |
||
02-02-2024, 09:49 PM | #54 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
***
Ok, let's try this: You can try to get launcher to "show" via second SSH window where you launch command: # echo 'show' > /run/remux.api (This info was from src/remux/README.md) Code:
92 ### API (0.1.6) 93 94 remux opens `/run/remux.api` as a FIFO and listens for incoming commands. The supported commands are `show`, `hide`, and `back`. Let's add a second way to get the launcher to show in remux-0202: # echo 'show2' > /run/remux.api Anything displayed? You may have to do a '# ps' then '# kill -KILL <remux.sh process id> to kill remux. $ nano -l src/remux/launcher.cpy Code:
430 if line == "show": 431 self.show_launcher() 432 else if line == "show2": 433 app_dialog->show() *** (Unrelated) kludge to get wordlet app to compile: $ nano -l src/wordlet/app/keyboard.cpy Code:
... 119 kev := KeyboardEvent {self.text} ... 130 kev := KeyboardEvent {self.text} ... 159 kev := KeyboardEvent {self.text} ... Otherwise, same error would occur 3 times e.g.: /keyboard.h:121:18: error: designated initializers cannot be used with a non-aggregate type 'ui::KeyboardEvent' 121 | auto kev = KeyboardEvent {text:this->text}; *** Last edited by elinkser; 02-23-2024 at 11:37 AM. |
02-02-2024, 11:42 PM | #55 |
Member
Posts: 23
Karma: 11102
Join Date: Jan 2022
Device: kobo libra h2o, kobo clara hd, kobo elipsa 2e
|
Clouds: i'm waiting on a KA1, should hopefully be here next week
elinkser: you can try fbink branch again (harmony should support drawing properly now (i hope). i tested on elipsa and clara. i'll also go back over this thread and pull in more of your fixes |
02-03-2024, 06:19 PM | #56 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
Latest harmony tested and drawing working again.
Thanks raisjn! |
02-03-2024, 07:41 PM | #57 | ||
Member
Posts: 24
Karma: 10
Join Date: Aug 2017
Device: Kobo Aura One
|
Quote:
Running remux-0201, issuing echo 'show' > /run/remux.api in the second ssh window launches the menu! Menu items that refer to programs that would work when launched from cli (such as input_demo, rpncalc) can then be launched from the menu. After running echo 'show' > /run/remux.api the menu shows and the window running remux says: NEW THREAD EXC Unknown error 759165664 NEW THREAD EXC Unknown error 768111328 NEW THREAD EXC Unknown error 776913632 NEW THREAD EXC Unknown error 785732320 NEW THREAD EXC Unknown error 794272480 NEW THREAD EXC Unknown error 803054304 NEW THREAD EXC Unknown error 812266208 NEW THREAD EXC Unknown error 821236448 NEW THREAD EXC Unknown error 830251744 NEW THREAD EXC Unknown error 839172832 NEW THREAD EXC Unknown error 848065248 NEW THREAD EXC Unknown error 856732384 NEW THREAD EXC Unknown error 865923808 NEW THREAD EXC Unknown error 874996448 NEW THREAD EXC Unknown error 884101856 NEW THREAD EXC Unknown error 892920544 NEW THREAD EXC Unknown error 901657312 NEW THREAD EXC Unknown error 910340832 NEW THREAD EXC Unknown error 919360224 NEW THREAD EXC Unknown error 928658144 NEW THREAD EXC Unknown error 937951968 NEW THREAD EXC Unknown error 946873056 NEW THREAD EXC Unknown error 955974368 HANDLING API LINE show NEW THREAD EXC Unknown error 965087968 CURRENT APP IS Nickel current app took 0.0133834 SENDING 19 TO GROUP -736 RET 0 SENDING 19 TO GROUP -614 RET 0 stopping apps took 0.0222954 SNAPSHOTTING Nickel COMP TOOK 0.220952 TOTAL SIZE 3572 KBYTES, 228656 ELEMENTS No such file or directory No such file or directory No such file or directory memory stats took 0.0319325 DISPLAYED LAUNCHER FOR 4232 MS LAUNCHING APP input_demo input_demo POWER MANAGEMENT: 1 RESETTING MT GESTURES CHECKING PROCESS input_demo 0 COULDNT OPEN machine id FILE 2 [FBInk] Detected a Kobo Aura One (373 => Daylight @ Mark 6) [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 300 dpi [FBInk] Variable fb info: 1404x1872, 32bpp @ rotation: 3 (Counter Clockwise, 270°) [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 10813440 bytes & line length: 5632 bytes [FBInk] Canonical rotation: 0 (Upright, 0°) [FBInk] Fontsize set to 32x32 (IBM base glyph size: 8x8) [FBInk] Line length: 43 cols, Page size: 58 rows [FBInk] Vertical fit isn't perfect, shifting rows down by 8 pixels [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background W: 1404 H: 1872 S: 1408 *** UNRECOGNIZED KOBO DEVICE, TOUCH MAY NOT WORK *** OPENING /dev/input/event0 AS BUTTONS OPENING /dev/input/event1 AS TOUCH OPENING /dev/input/event2 : UNKNOWN EVENT DEVICE RENDERING input_demo DECOMP TOOK 0.0162585 OPENING /dev/input/event3 : UNKNOWN EVENT DEVICE ERROR OPENING INPUT DEVICE /dev/input/event4 Quote:
It appears to me that this is because method2 doesn't stop the currently running app. The lines from method1 SENDING 19 TO GROUP -736 RET 0 SENDING 19 TO GROUP -614 RET 0 stopping apps took 0.0222954 don't appear with method2. Instead, with method2 only this line appears: SENDING 18 TO GROUP -2725 RET 0 Sometimes, regardless of the method used to spawn the menu, there will be a long (or even endless) loop of NEW THREAD EXC Resource temporarily unavailable put out to the window running remux. I haven't been able to find a pattern or cause yet. Also the screen isn't always (re)drawn completely. E.g. when launching the menu or one of the menu items, only part of the screen is redrawn. Input elements do work at that time even when invisible, and if input actions give reason to redraw (part of) the screen, the program is displayed (more) completely. I added the echo 'show' > /run/remux.api command as an entry to NickelMenu too. That way to spawn the menu works too. Last edited by Clouds; 02-03-2024 at 07:45 PM. |
||
02-04-2024, 10:09 PM | #58 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
***
Nice job. I'm glad were able to get a nice NickelMenu app out of it. Now we can relax and wait for raisjn to get an Aura One. But if you want, we can also continue to plod along at a leisurely pace. Totally optional of course! Did the usual edits: Spoiler:
Did a new edit: $ nano -l src/remux/launcher.cpy Code:
337 debug "HIDE:App" ... 894 debug "HIDE:launch" ... 940 debug "show_launcher:setup_gestures" ... Copied src/build/remux to /mnt/onboard/.adds/rmkit/bin/apps/ and ran from SSH: Spoiler:
Then, swiping up gives messages: Spoiler:
And I get the launcher menu. Clicked on Nickel menu entry to close the launcher and got: Spoiler:
*** Last edited by elinkser; 02-05-2024 at 08:00 PM. |
02-05-2024, 03:02 PM | #59 | |
Member
Posts: 24
Karma: 10
Join Date: Aug 2017
Device: Kobo Aura One
|
Quote:
Sure, I'm in as long as you are too :-D Results with remux-0204: Spoiler:
The main difference I see with your output log when swiping up is DISPLAYED LAUNCHER FOR 358 MS NOT HIDING LAUNCHER BECAUSE INTERVAL < 500 Could it be that the launcher is actually shown, but then quickly hidden again (before even being rendered to screen) because the swipe up is also interpreted as clicking outside the menu, thus closing it? |
|
02-05-2024, 07:58 PM | #60 |
Addict
Posts: 210
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
***
That's the spirit! Raisjn mentioned that quick exit too. So I am trying to find the entry points (leaving threading for raisjn.) Did the usual edits from Post #58. New edit 0205: $ nano -l src/remux/launcher.cpy Code:
... 243 void on_row_selected(string name): 244 CURRENT_APP = name 245 debug "AppDialog:on_row_selected:HIDE" 246 self.hide() ... 264 if bin != "": 265 c->mouse.click += PLS_LAMBDA(auto &ev) { 266 if app_name == APP_NICKEL.name: 267 debug "AppDialog:render_row:CLICK_APP_NICKEL" 268 return ... $ nano -l src/rmkit/ui/pager.cpy Code:
... 79 debug "AppDialog:ui::Pager:on_button_selected" ... Now after running rmkit and swiping up gives messages: Spoiler:
And I get the launcher menu. Clicked on Nickel menu entry to close the launcher and got: Spoiler:
If I had clicked on any blank area outside the menu area: Spoiler:
And I'm back in Nickel. If I had swiped up to show the launcher menu and clicked right at the end of the swipe: Spoiler:
And I'm back in Nickel. If I had clicked on input_demo instead of Nickel in laucher menu: Spoiler:
*** Last edited by elinkser; 02-27-2024 at 08:15 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Native FBInk: Another small tool to print crap on your screen! | NiLuJe | Kindle Developer's Corner | 285 | 05-30-2024 08:39 AM |
rmkit comes to kobo! | raisjn | Kobo Developer's Corner | 25 | 04-21-2024 11:23 PM |
fbink image scaling question | handyguy | Kindle Developer's Corner | 6 | 12-17-2020 08:01 PM |
Latest fbink install? | handyguy | Kindle Developer's Corner | 3 | 12-11-2020 10:13 PM |
Pre-Purchase Questions ... Clara/Libra/Forma | Catsnkites | Kobo Reader | 9 | 10-27-2019 12:28 PM |