Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-06-2012, 06:45 PM   #1
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Arrow Paperwhite technical exploration

The cover magnet hall-effect sensor is located about 1 inch (2-3 cm) above the bottom of the screen right edge. You can hold a magnet over it and read the sensor change:

No cover magnet:
[root@kindle /]# cat /sys/devices/system/yoshime_hall/yoshime_hall0/hall_detect
0


With cover magnet:
[root@kindle /]# cat /sys/devices/system/yoshime_hall/yoshime_hall0/hall_detect
1


I will add more findings to this thread as I discover them, and you can too.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 06:50 PM   #2
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
[root@kindle /]# cat /sys/devices/system/yoshi_battery/yoshi_battery0/battery_current
183

[root@kindle /]# cat /sys/devices/system/yoshi_battery/yoshi_battery0/battery_voltage
4188

[root@kindle /]# cat /sys/devices/system/yoshi_battery/yoshi_battery0/battery_temperature
78

[root@kindle /]# cat /sys/devices/system/yoshi_battery/yoshi_battery0/battery_capacity
98%

[root@kindle /]# cat /sys/devices/system/yoshi_battery/yoshi_battery0/battery_mAH
1379

Last edited by geekmaster; 10-06-2012 at 07:09 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 06:52 PM   #3
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
[root@kindle /]# cat /proc/sys/kernel/poweroff_cmd
/sbin/poweroff

[root@kindle /sys]# poweroff

Broadcast message from root@kindle
(/dev/pts/0) at 23:15 ...

The system is going down for power off NOW!
[root@kindle /sys]#

And it is showing the "Kindle Tree" screen with message "Please wait a moment while your Kindle starts up." It has been there a long time. The SSH shell is not responding either. The power must really be OFF (except no blank screen like when using a 7-second power button hold).

Tap power button. Now the "pre-boot" spinner is showing. Now the progress bar while the framework is loading. And now the "USB Drive Mode" screen. The USBNet switched back to mass storage during startup, as expected. Unplug USB cable. Light dimmer than with USB cable, then off, then desktop with dim light. A couple more USB in/out events shows that the screen light changes brightness with USB connect/disconnect events.

Last edited by geekmaster; 10-06-2012 at 07:22 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 07:14 PM   #4
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
First, we will read current brightness values set from the desktop framework.

Asleep, screensaver image or ad showing:
[root@kindle /]# cat /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
FrontLight(Intensity) = 0


Awake, slider at maximum brightness:
[root@kindle /]# cat /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
FrontLight(Intensity) = 254


Slider adjusted to minimum brightness (almost off):
[root@kindle /]# cat /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
FrontLight(Intensity) = 1


Slider adjusted to medium brightness:
[root@kindle /]# cat /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
FrontLight(Intensity) = 36


Now we will see if we can CHANGE the screen brightness from the command line:


Lets try to SET maximum brightness:
[root@kindle /]# echo -n 254 > /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
Yes, it works!

Now let's try to turn it COMPLETELY off:
[root@kindle /]# echo -n 0 > /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
Yes, it is completely off even while awake!

Now, lets put the Paperwhite asleep by tapping the power button. The light is off. Now set maximum brightness:
[root@kindle /]# echo -n 254 > /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
Yes, it is showing the screensaver image at maximum brightness.

Now let's turn the screensaver light off again to save battery:
[root@kindle /]# echo -n 0 > /sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity
It is off again.

Now, I think that is useful!

EDIT: Now that we know how to change screen brightness from the command line, it is time to write a script to blink out Morse Code messages...

Last edited by geekmaster; 10-07-2012 at 02:25 AM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 07:16 PM   #5
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
I'll try to explore your device through distance... I'll hack it through space....

Lightning Lighting is also could be controlled through powerd: look at the output of
Code:
lipc-probe -v com.lab126.powerd | grep fl
(It shoulld be properties flIntensity and flMaxIntensity).

Last edited by eureka; 10-06-2012 at 07:30 PM. Reason: very funny misprint :)
eureka is offline   Reply With Quote
Old 10-06-2012, 07:25 PM   #6
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by eureka View Post
I'll try to explore your device through distance... I'll hack it through space....

Lightning is also could be controlled through powerd: look at the output of
Code:
lipc-probe -v com.lab126.powerd | grep fl
(It shoulld be properties flIntensity and flMaxIntensity).
So you learned secret of the Thunder Gods (controlling "lightning")?

Yeah, I know you meant "lighting" instead of "lightning".

Last edited by geekmaster; 10-06-2012 at 08:33 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 07:37 PM   #7
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
So you learned secret of the Thunder Gods (controlling "lightning")?

Yeah, I know you meant "lighting" instead of "lightning".
You're right.

(It's a secret, but... But lightning control is also possible with powerd. If you're lucky enough to have Kindle Mj÷lnir. Where "fl" means "fierce lightning". Don't try this at home!)
eureka is offline   Reply With Quote
Old 10-06-2012, 08:37 PM   #8
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by eureka View Post
(It's a secret, but... But lightning control is also possible with powerd. If you're lucky enough to have Kindle Mj÷lnir. Where "fl" means "fierce lightning". Don't try this at home!)
Mj÷lnir = Thor's hammer. Many years ago, I used to tell my children, when they were afraid of a loud thunderstorm at night, that the "angels" (or "gods", if you prefer) had beans for supper.

Last edited by geekmaster; 10-06-2012 at 08:46 PM.
geekmaster is offline   Reply With Quote
Old 10-07-2012, 01:12 PM   #9
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
When we get a screensaver that displays the time, we could also add temperature, using the above battery temperature reading. When asleep, that should stabilize to ambient room temperature. There are also other temperature sensors, such as for the eink screen, but this one will do the job for us.

Who wants to update the clock screensaver to include time + temperature?
geekmaster is offline   Reply With Quote
Old 10-07-2012, 01:15 PM   #10
twobob
( ͡░ ͜ʖ ͡░){ʇlnɐɟ ƃǝs}Třr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
heh that would be cool. K5 has a temp in there somewhere too.. *goes off to check if it's the same*

cat /sys/devices/system/yoshi_battery/yoshi_battery0/battery_temperature
Quote:
68
yep. it's the same.. hmm cool
I noticed just the other day myself. good idea for an application of it.

EDIT: And also on the 3...

Quote:
[root@kindle us]# cat /sys/devices/system/yoshi_battery/\
yoshi_battery0/battery_temperature

73

Last edited by twobob; 10-29-2012 at 10:46 PM.
twobob is offline   Reply With Quote
Old 10-07-2012, 11:50 PM   #11
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,664
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
kpw teardown

The only thing found so far is a video that does not expose the components.

It is straight forward dis-assembly.

The Bezel is removed first, it is fastened in place with adhesive. Gently pry loose by working around the Bezel with a slim tool (probably a credit card would do the job).

Unscrew the main frame from the back cover.

Flip over, release ribbon cables, unscrew battery, unscrew motherboard, etc.

Somebody please pick off the shield covers over the chips and take pictures with enough resolution and lighting so that part numbers and board details can be seen.

Reversing the process - the Bezel's adhesive will allow it to be replaced and pressed into place.
knc1 is offline   Reply With Quote
Old 10-08-2012, 08:57 AM   #12
twobob
( ͡░ ͜ʖ ͡░){ʇlnɐɟ ƃǝs}Třr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
what tears down must build up

Down

Check out the BRUTAL bezel removal !!


Up


: )

Last edited by twobob; 10-08-2012 at 08:58 AM. Reason: brutal
twobob is offline   Reply With Quote
Old 10-29-2012, 08:59 AM   #13
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
I guess, this is how screenshot gesture on Paperwhite is handled (found at /etc/upstart/makexconfig):
Code:
# Output multitouch device
multitouch()
{
  IS_TOUCH=$2
  echo 'Section "InputDevice"' >> $XCONFFILE
  echo "        Identifier      \"$2\"" >> $XCONFFILE
  echo '        Driver          "multitouch"' >> $XCONFFILE
  # ... skipped by eureka ...
  if [ "$(f_platform)" = "yoshime3" ]; then
    echo '        Option          "ScreenShot" "1"' >> $XCONFFILE
  fi
  # ... skipped by eureka ...
}
eureka is offline   Reply With Quote
Old 01-02-2013, 11:50 PM   #14
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,595
Karma: 27622694
Join Date: Dec 2011
Device: Kindle Paperwhite
Quote:
Originally Posted by eureka View Post
I'll try to explore your device through distance... I'll hack it through space....

Lightning Lighting is also could be controlled through powerd: look at the output of
Code:
lipc-probe -v com.lab126.powerd | grep fl
(It shoulld be properties flIntensity and flMaxIntensity).
This could have been useful when I was looking through my PW to find a program / function to turn off the light. Long story short, there is none. Or rather there appears to be none. flMaxIntensity I have not messed with (yet). From what I experimented on flIntensity I have found this:
- it is the light level that is selected on the slider, it has int values of 0 - 24
- it does NOT coincide with the values you get from reading the device itself
- if you change the values the light switches to the corresponding value (0 -> 1, 24 ->254) no matter if you touched the slider or used lipc-set-prop
- if the light is turned off (e.g. in screensaver mode) flIntensity still reads the last selected lightlevel, so you can find out what it was
- this also means that you cannot read this and assume the light is on, or on at that t level - if you want to reset the light, read the value first and then set it again
- if setting it out of range ( over 24 ) the real device will still only be set to 254
- there is no way to turn the light off with lipc, even though it has a function to turn it on

flMaxIntensity could be a solution, but that will depend on how it is used and if the values in it are device numbers or slider numbers. But since it is so easy to write to the device, I rather do that - no need to switch the max back when you are done.

Happy Hacking

p.s.: I really should start using a MR search first before going hunt for something on the Kindle itself. Not that it wasn't fun to use only: cd, pwd, ls, less, grep and vi. The invaluable insights are worth all the trouble - found some really interesting easter eggs on the way.
DuckieTigger is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bookigee, a new exploration tool for book lovers L.J. Sellers News 3 02-16-2011 11:58 AM
Extrasolar exploration: only a fantasy? MartinParish Lounge 22 07-19-2010 09:52 AM
Space exploration BlackVoid Reading Recommendations 16 07-30-2009 07:01 PM
Exploration of the use of ebooks in literary interpretation nekokami News 11 10-02-2008 11:53 AM


All times are GMT -4. The time now is 09:10 AM.


MobileRead.com is a privately owned, operated and funded community.