View Single Post
Old 02-04-2024, 09:09 PM   #58
elinkser
Addict
elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.
 
Posts: 242
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:

$ nano -l src/common.make
Code:
 7 CPP_FLAGS=-pthread -lpthread -fdata-sections -ffunction-sections -Wno-narrowing -Wl,--gc-sections
$ nano -l src/rmkit/util/machine_id.cpy
Code:
69 //          case util::KOBO_DEVICE_ID_E::DEVICE_KOBO_CLARA_HD:
70 //            debug "RUNNING ON CLARA HD"
71 //            break
$ nano -l src/rmkit/input/events.cpy
Code:
190       swap_xy = false
191       if getenv("INV_Y") != NULL:
192         invert_y = true
193       if getenv("INV_X") != NULL:
194         invert_x = true
195       if getenv("SWP_XY") != NULL:
196         swap_xy = true
197       if getenv("ROT_4") != NULL:
198         rotation %= 4
199       switch version:



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:

# RMKIT_KOBO_ANY=1 INV_X=1 ROT_4=1 sh /opt/bin/remux.sh
[FBInk] Detected a Kobo Clara HD (376 => Nova @ Mark 7)
[FBInk] Enabled Kobo Mark 7 quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 300 dpi
[FBInk] Variable fb info: 1072x1448, 32bpp @ rotation: 3 (Counter Clockwise, 270°)
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 4352 bytes
[FBInk] Canonical rotation: 0 (Upright, 0°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 44 cols, Page size: 60 rows
[FBInk] Vertical fit isn't perfect, shifting rows down by 4 pixels
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
W: 1072 H: 1448 S: 1088
*** UNRECOGNIZED KOBO DEVICE, TOUCH MAY NOT WORK ***
OPENING /dev/input/event0 AS BUTTONS
OPENING /dev/input/event1 AS TOUCH
ERROR OPENING INPUT DEVICE /dev/input/event2
ERROR OPENING INPUT DEVICE /dev/input/event3
ERROR OPENING INPUT DEVICE /dev/input/event4
READING CONFIG FROM /home/root/.config/remux/remux.conf
No such file or directory
No such file or directory
No such file or directory
memory stats took 0.028295
CURRENT APP IS Nickel
RESETTING BPP TO 32
SETTING SCREEN DEPTH 32
STARTING SUSPEND THREAD
STARTING FIFO THREAD
LAST SUSPEND LOOP WAS 1707097068 AGO, RESETTING IDLE TIMER
SETTING UP GESTURES
SETTING LAUNCH GESTURES TO DEFAULT
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 0 0 107 1448
direction: up
distance:
show_launcher:setup_gestures
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 964 0 1072 1448
direction: up
distance:
show_launcher:setup_gestures
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 0 0 107 1448
direction: down
distance:
show_launcher:setup_gestures
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 964 0 1072 1448
direction: down
distance:
show_launcher:setup_gestures


Then, swiping up gives messages:

Spoiler:

NOT SHOWING LAUNCHER IN LANDSCAPE
CURRENT APP IS Nickel
current app took 0.0275937
SENDING 19 TO GROUP -200 RET 0
SENDING 19 TO GROUP -66 RET 0
stopping apps took 0.019426
SNAPSHOTTING Nickel
COMP TOOK 0.149806 TOTAL SIZE 940 KBYTES, 60162 ELEMENTS
No such file or directory
No such file or directory
No such file or directory
memory stats took 0.027762
SETTING SCREEN DEPTH 32


And I get the launcher menu.
Clicked on Nickel menu entry to close the launcher and got:

Spoiler:

HIDE:App
DISPLAYED LAUNCHER FOR 18764 MS
LAUNCHING APP Nickel Nickel
POWER MANAGEMENT: 0
RESETTING MT GESTURES
SENDING 18 TO GROUP -200 RET 0
CHECKING PROCESS nickel 1
nickel IS ALREADY RUNNING, RESUMING
SENDING 18 TO GROUP -66 RET 0
HIDE:launch
RENDERING Nickel
DECOMP TOOK 0.0116363
SETTING SCREEN DEPTH 32



***

Last edited by elinkser; 02-05-2024 at 07:00 PM.
elinkser is offline