Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50069

Content [K4NT] KDB: A Minimalist E-Ink Dashboard + K4NT Zero-Compromise Wi-Fi Takeover

$
0
0
Hi everyone,

I want to share a little project I’ve been working on to breathe some new life into our legacy devices, specifically the K4NT. It is called KDB (Kindle Desktop Dashboard), a highly optimized, offline-capable smart display for weather, calendar, and sticky notes, relying on RTC for deep sleep to squeeze out battery life.

While building this, I ran into the classic K4NT networking headache: connecting to modern Wi-Fi networks without the native wifid daemon panicking or dropping the connection. I ended up implementing a rather robust, zero-compromise network takeover encapsulated in Lua and Shell, which I thought might interest the developers here.

To achieve this without triggering system instability, the script freezes the native network manager using a killall -STOP wifid signal. Once the native daemon is asleep, KDB directly commands wpa_supplicant via wpa_cli to associate with the network. Since the native DHCP is also frozen, the script manually invokes udhcpc. If that fails, it mathematically derives and injects a dynamic IPv4 gateway via the route command.

Handling DNS on a read-only filesystem was another fun challenge. The script constructs a custom resolv.conf with reliable public DNS in /tmp, and dynamically injects it over the system's DNS file using a Linux mount bind. Finally, if DNS resolution still times out, the system falls back to a direct IPv4 request to the API.

My original code is written under the MIT license, but to respect and inherit the upstream libraries I used, the overall project is distributed under AGPL-3.0. You can check out the source code and the gallery here:
https://github.com/yuxiao1231/kindle-dashboard

I just wanted to drop this here in case anyone finds the network bypass approach or the dashboard useful. I am not very active on the forums or checking GitHub issues, so please feel free to fork the repo, explore the code, and tinker with it however you like. Have fun!

Viewing all articles
Browse latest Browse all 50069

Latest Images

Trending Articles



Latest Images