Commit Graph
22690 Commits
Author SHA1 Message Date
Paul KilarandClaude Opus 5 dc718d3e29 ePassport: fix the segfault on startup
The app died with SIGSEGV before drawing anything, on every entry point
including --help.

The window minimum size was pre-seeded into Kivy's Config, and
WindowBase.__init__ is the only place Kivy reads it - so it was applied from
inside WindowSDL.create_window(), while Window.initialized was still False.
If the window SDL has just made is smaller than that minimum, SDL resizes it
on the spot; the resize comes back through the SDL event filter into
EventLoop.idle(), which runs the clock and re-enters create_window(). Still
not initialised, that call runs setup_window() again and resizes again, until
the C stack gives out.

A scaled HiDPI session is enough to reach it: with sdl2-compat on SDL3 under
Wayland sizes come back in logical points, so the inherited 800x600 default
arrives as a 500x375 window, under the 760x520 minimum. Set the minimum on
Window once it exists instead, where the same resize takes Kivy's cheap
already-initialised path.

That exposed a second fault on the same path. _install_kivy_logging attached a
bare StreamHandler() to Kivy's own logger, and kivy.logger replaces sys.stderr
with a stream that feeds whatever is written to it back in as a warning -
kivy/logger.py cautions about exactly this. Any warning _KivyNoise did not
drop answered itself until the recursion limit stopped it, with stderr as the
broken part, so nothing legible came out. Not theoretical: this machine logs
"MTD: Unable to open device" at startup, which would have killed the app as
soon as the segfault was out of the way. Point the handler at the real stderr,
which Kivy leaves alone.

Behaviour change: a window that opens smaller than 760x520 is now grown to it,
rather than the constraint being imposed while the window is built.

Testing: 257 passed, 2 skipped (was 254/2); --help, a plain launch, --dump on
a generated sample and -v all start and stay up; black clean. Python-only
change, so no client or firmware build matrix applies.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-30 14:17:37 -04:00
Philippe Teuwen 0197fe8484 Battery test graph: elapsed time 2026-08-30 00:06:13 +02:00
Philippe Teuwen 8017246fd5 Battery test scripts 2026-08-30 00:06:13 +02:00
Iceman 1d035e8643 Merge pull request #3498 from 0x6r1an0y/20260823-ndefnlen
Correct NLEN log message and empty record example
2026-08-30 04:28:30 +07:00
歐歪 910f6ba41f Update cmdhf14a.c
Signed-off-by: 歐歪 <brian20020925@gmail.com>
2026-08-30 03:46:41 +08:00
iceman1001 a1053ad70d New individual json dump file formats for ht1, ht2, htS, htU. '.bin' / binary format for hitag has been deprecated 2026-08-29 20:58:59 +02:00
Iceman dda9d7dd1c Merge pull request #3548 from nieldk/master
add hw bwmwifi status
2026-08-30 01:51:45 +07:00
iceman1001 009490134b revert 2026-08-29 20:37:18 +02:00
iceman1001 d1386baae2 honor T=x framing 2026-08-29 20:29:09 +02:00
iceman1001 d9b8f75b0c make T=0 / T=1 autonegate over sim... 2026-08-29 20:05:19 +02:00
Niel Nielsen 03bbf292dc Enhance CLI with WiFi status check and timeout adjustment
Added status option to CLI for checking WiFi connection state and IP address. Updated command timeout for join and DHCP wait.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-29 20:03:12 +02:00
Niel Nielsen 1b92f7e026 Increase DHCP wait time to 20000 ms
Increased the DHCP wait time from 10 seconds to 20 seconds to allow more time for lease acquisition.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-29 20:01:24 +02:00
Niel Nielsen 2572326440 Add bwm_wifi_forward_status function for WiFi status
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-29 20:00:36 +02:00
Niel Nielsen 7d6ca7ba91 Add BWM_WIFI_ACTION_STATUS definition
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-29 19:59:21 +02:00
Niel Nielsen 1faf1662a0 Handle WiFi actions in CMD_PM5_BWM_WIFI case
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-29 19:56:20 +02:00
Iceman bb18ff0e49 Merge pull request #3547 from nieldk/master
Refine low battery shutdown conditions
2026-08-30 00:42:33 +07:00
Niel Nielsen d49a5299b0 Refine low battery shutdown conditions
Update low battery shutdown logic to require corroboration from both voltage and SoC.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-29 19:10:08 +02:00
Philippe Teuwen 09bf8fb04e doc 2026-08-29 18:33:01 +02:00
iceman1001 7fade30465 remove commented out code 2026-08-29 17:48:25 +02:00
iceman1001 b0125c036e removed CMD_SMART_SETBAUD since we dont use it any more. Thanks Claude! 2026-08-29 17:46:06 +02:00
iceman1001 35c098d489 make style 2026-08-29 17:42:29 +02:00
iceman1001 a0a3eb4bbf remove CMD_LF_SIMULATE_BIDIR, never implemented 2026-08-29 17:38:41 +02:00
iceman1001 026a1c7648 fixed missing waits for return OPcodes 2026-08-29 17:30:07 +02:00
iceman1001 297d5cef4b fix argparser 2026-08-29 17:15:52 +02:00
iceman1001 0a0d7f19c3 fixed another MIX command laying around 2026-08-29 17:11:43 +02:00
iceman1001 c5ee0ea3d5 fix leftover oldarg in lua scripts 2026-08-29 17:07:33 +02:00
iceman1001 0fbd4aa6a7 text 2026-08-29 17:06:38 +02:00
iceman1001 1ee41ecf95 fix leftover oldargs 2026-08-29 17:06:24 +02:00
iceman1001 87b5ee37c9 stablize download trace more 2026-08-29 17:02:15 +02:00
iceman1001 0f11c5c4d1 Phase E - dismantle MIX functionality 2026-08-29 16:50:29 +02:00
iceman1001 07a0ff70db fix string formatting CodeQL 2026-08-29 16:42:01 +02:00
iceman1001 ff56ec85f9 missed one 2026-08-29 16:35:13 +02:00
iceman1001 11f5e58136 text 2026-08-29 16:34:47 +02:00
iceman1001 177d240ee3 dangling code parts 2026-08-29 16:34:08 +02:00
iceman1001 094bed1176 remove MIX bindings in lua 2026-08-29 16:33:16 +02:00
iceman1001 bd20f7cc81 OLD/MIX convert to NG: Phase D. reworked all lua scripts to handle and behavie same way. Thanks Claude 2026-08-29 16:31:01 +02:00
iceman1001 24a9a686ea Update doc with lessons. Thanks Claude 2026-08-29 16:09:45 +02:00
iceman1001 85ce9c94c4 OLD/MIX convert to NG: Phase C11 2026-08-29 16:03:00 +02:00
iceman1001 7b7ec48bd9 OLD/MIX convert to NG: Phase C10 2026-08-29 15:50:36 +02:00
iceman1001 72ff6a5b80 OLD/MIX convert to NG: Phase C9 2026-08-29 15:18:54 +02:00
iceman1001 721641428c OLD/MIX convert to NG: Phase C8 2026-08-29 15:13:34 +02:00
iceman1001 0bbc9025ae OLD/MIX convert to NG: Phase C7 2026-08-29 15:00:03 +02:00
iceman1001 3762130c42 OLD/MIX convert to NG: Phase C6 2026-08-29 14:48:36 +02:00
iceman1001 5589cbf847 OLD/MIX convert to NG: Phase C5 2026-08-29 14:31:34 +02:00
iceman1001 d1cc742987 OLD/MIX convert to NG: Phase C4 2026-08-29 14:24:11 +02:00
iceman1001 f42564283e OLD/MIX convert to NG: Phase C3 2026-08-29 14:19:26 +02:00
iceman1001 ad629c77e8 OLD/MIX convert to NG: Phase C2 2026-08-29 14:12:22 +02:00
iceman1001 5c7e9f6c42 OLD/MIX convert to NG: Phase C1 2026-08-29 13:58:42 +02:00
iceman1001 1a3f64960a OLD/MIX convert to NG: Phase C 2026-08-29 13:50:49 +02:00
iceman1001 bbc8cc25b2 OLD/MIX convert to NG, Phase B 2026-08-29 13:30:07 +02:00