View Single Post
Old 01-19-2011, 11:05 PM   #12
mobad
Enthusiast
mobad began at the beginning.
 
Posts: 27
Karma: 23
Join Date: Jan 2011
Device: Kindle 3 WiFi
While I won't claim to know how the Kindle judges what should be indexed and what has already been indexed, I have a feeling that a constantly updating file will probably trigger the indexer and would probably decrease your battery life.

A bit off topic but while looking for other interesting commands in the Kindle I found that arecord can record sound from the built in microphone (doesn't seem like anyone else has mentioned it.)

Just run "arecord -f dat test.wav" then "aplay -f dat test.wav" to try it out.

Anyway back on topic.
The method I'm going to use is text to speech as there are not any simple ways that I know of to display text on screen (One could use launchpad to do so possibly) and will need the launchpad program https://www.mobileread.com/forums/showthread.php?t=97636

Install launchpad then create a file called percent.ini in the launchpad folder containing:

[Actions]
;; run TTS Percent
Shift P = !/mnt/us/launchpad/scripts/percent.sh TTS_Percent &

Next create a file called percent.sh in launchpad/scripts containing:

#!/bin/sh
say "The battery is at $(gasgauge-info -s)"

Now just chmod +x percent.sh.

Now just hit "Shift Shift P" whenever you want to hear the percentage remaining.

Last edited by mobad; 01-20-2011 at 05:23 AM.
mobad is offline   Reply With Quote