Repository navigation
Releases: ibrarwtf/kindle4ever
Releases · ibrarwtf/kindle4ever
Release list
v1.4.0
- Deep sleep by default.
install.sh --sleepsets powerd to screensaver after 3 min idle and suspend right after, the same
path the power button takes. boot.sh no longer keeps the device awake unless/mnt/us/kindle4ever/KEEP_AWAKEexists.
k4home shows one screensaver image on the way to sleep (random from/mnt/us/kindle4ever/screensavers/*.png, else Amazon's
stock set) and redraws on wake;/mnt/us/kindle4ever/WAKE_EVERY
(seconds) arms powerd's RTC alarm atreadyToSuspendfor scheduled wakes, absent by default so only the power button wakes it. tools/k4 hold/wait,tools/twin.sh status/reset,tools/release.sh: the small tools the day's work kept needing.- k4draw
-aauto refresh: snapshots the screen at start, diffs at the end, refreshes only the changed box partially, and
flashes when the box covers 60% of the screen, 30% of pixels changed, or after 10 partials (ghosting). Live station uses it,
so a 5-minute refresh that only moves a few times no longer flashes the whole panel.
v1.3.0
- Simulator, second stage.
tools/sim serveopens a local page with the simulated screen, the 13 buttons and keyboard
shortcuts;tools/twin.shruns device scripts and apps unmodified on Linux/WSL against that screen (host mode), or inside the
Kindle's own root filesystem under qemu-arm (armmode, from your backup image: the Kindle's real busybox, awk and sh).
Simulatedk4keys,lipc-*,gasgauge-info,k4appandpowerd_testlive intools/simbin/. - k4draw:
K4DRAW_TRACErecords every refresh in sim mode (the viewer outlines partial regions and counts flashes);
K4DRAW_FONTDIRmaps the device font folder to a local copy, so text measures as on the panel. - livestation:
LIVESTATION_FIXTURE=page.htmlruns the whole pipeline offline. - CI:
tools/ci-sim.shparses every device script and awk program with busybox, draws k4home under busybox sh with the stubs,
runs the livestation pipeline on the fixture in landscape, and checks that the ARM k4draw (under qemu) renders pixel-identical
to the host build. No private files involved; the same script runs locally in WSL.
v1.2.0
- k4draw landscape mode:
K4DRAW_ROTATE=90(device turned anticlockwise, keypad on the right) or270. Commands, the
dirty-rectangle refresh andexportall work in 800x600 landscape coordinates; k4draw rotates into the portrait framebuffer. - Apps on the home screen:
k4homelists every/mnt/us/kindle4ever/apps/<name>/app.sh(label from its# name:line)
as a cell after Reader and About, wrapping two per row. An app runs with the screen already taken and returns on Back/Home. apps/livestation: the first app. An Indian Railways live platform board for one station (NTES), drawn as trains,
fully on the device:k4fetch+ three busybox awk programs +k4drawlandscape. About 1.2 s CPU and under 1.5 MB per refresh.
Configured by one smallstation.conf(your station, its neighbours);tools/k4 app apps/livestationinstalls it.- Apps can ship an
icon.shthat prints k4draw commands for their home-screen icon;tools/fetch-vendor.shnow also fetches
the DejaVu fonts (DejaVu Sans Mono has the box-drawing glyphs the board uses). - Apps carry their own
# version:line (livestation 0.1.0); the kindle4ever tag versions the bundle that ships them. - Private apps and configs stay out of this repo; only the folder convention is public.
v1.1.0
install.sh --amazon-off: stops and disables Amazon's phone-home (phd) and transfer (tmd) daemons.phdretried Amazon
every 30-60 min and asked powerd for an RTC wakeup before each suspend, so a sleeping Kindle woke up to phone home. Also points the
stock clock sync (/usr/sbin/updatetime) atpool.ntp.org. New doc:docs/amazon.md, one place for everything Amazon-related.install.sh --no-browser: stops and disables the experimental web browser (webreader,browserd, about 21 MB of RAM).install.sh --tz <zone>: time zone for the device (zoneinfo file,/etc/TZ, andTZexported byboot.sh,tools/k4and login shells,
because the stock busybox ignores the files).tools/lib/tzfile.pybuilds the zone file from your computer's tzdata or a fixed offset.k4homeandinstall.sh --home: a minimal home screen that replaces Amazon's UI at boot (Amazon's ownDONT_START_FRAMEWORKflag):
status bar (clock, cpu %, ram %, Wi-Fi, battery), two items, Reader (starts Amazon's UI with the right time zone for Java) and About.
5-way to choose (only the two cells' border strips are redrawn and partially refreshed), Select to open (full flash on every screen
change), hold the Keyboard key in the Reader to come back.k4aboutclears the screen and returns to whoever called it.
k4app offlifts the home flag while Amazon's UI starts. Frees about 50 MB of RAM and the Java UI's CPU time.k4logs: log sizes,clean [DAYS]for old archives in/var/local/log,tailwithout lipc chatter.uninstall.shreverses all of the above (rc5.d links, ntp, TZ, profile, home flag).- Findings: phd/RTC behaviour, powerd's
rtcWakeupproperty, log history (starts 2025, not 2012), time zone handling.