Giter Site home page Giter Site logo

kindlescripts's Introduction

KindleScripts

This repo includes a bunch of scripts for doing various things on a Kindle PW

Primitives

General commands are located in the root directory. Usage includes

./block-ota-updates # blocks over-the-air Kindle updates
./prevent-ss # Prevents screensaver from starting. Need to restart kindle to re-enable SS
./refresh-display # Forces a refresh of the Kindle's eink display
./set-brightness 254 # Set the brightness of the Kindle's frontlight to a value between 0 and 254 (inclusive)

Debian

Used for installing/running debian as a chroot on a Kindle (my build env of choice)

./debian/create-debian-image # Run on Debian/Ubuntu to bootstrap debian.ext3 (A sys partition containing Debian built for armel). Copy this to your Kindle via USB (or scp it to /mnt/base-us/debian.ext3)
./debian/mount-debian # Mounts /mnt/base-us/debian.ext3 as /mnt/debian
./debian/setup-debian # Completes the debootstrap second stage process, adds apt-get repos and installs software in Debian (e.g. python + git). Requires mount-debian to be called first
./debian/umount-debian # Unmounts /mnt/debian
./debian/chroot-debian # Chroot into debian

Draw

Used for drawing images to the Kindle's display. See draw/README.md

./draw/draw-image draw/test.png # Draws the image draw/test.png to the Kindle's eink display by writing it to the framebuffer
./draw/image-to-binary.py -h # Converts any image file to a raw bitmap file to dump to the Kindle PaperWhite's frame buffer (/dev/fb0)
./draw/draw-noise # Draws noise to the Kindle's eink display

Backing up a kindle

ssh [email protected] "dd if=/dev/mmcblk0p1" | gzip --best - | dd of=mmcblk0p1.img.gz
ssh [email protected] "dd if=/dev/mmcblk0p2" | gzip --best - | dd of=mmcblk0p2.img.gz
ssh [email protected] "dd if=/dev/mmcblk0p3" | gzip --best - | dd of=mmcblk0p3.img.gz
ssh [email protected] "dd if=/dev/mmcblk0p4" | gzip --best - | dd of=mmcblk0p4.img.gz

kindlescripts's People

Contributors

tobiaswooldridge avatar

Stargazers

Jason Todd avatar Ruvian S. avatar Mitchell Dokken avatar buckket avatar Matthew Nielsen avatar Yifan Gao avatar Kaloyan Raev avatar James Oakey avatar Andrew Back avatar mendhak avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

rogeros qiangf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.