![]() |
#1 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
[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. |
![]() |
![]() |
![]() |
#3 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
[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. |
![]() |
![]() |
![]() |
#4 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
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. |
![]() |
![]() |
![]() |
#5 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
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 Last edited by eureka; 10-06-2012 at 07:30 PM. Reason: very funny misprint :) |
![]() |
![]() |
![]() |
#6 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() Yeah, I know you meant "lighting" instead of "lightning". ![]() Last edited by geekmaster; 10-06-2012 at 08:33 PM. |
|
![]() |
![]() |
![]() |
#7 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
![]() ![]() (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!) |
|
![]() |
![]() |
![]() |
#8 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() Last edited by geekmaster; 10-06-2012 at 08:46 PM. |
|
![]() |
![]() |
![]() |
#9 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
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? |
![]() |
![]() |
![]() |
#10 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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:
![]() I noticed just the other day myself. good idea for an application of it. EDIT: And also on the 3... Quote:
Last edited by twobob; 10-29-2012 at 10:46 PM. |
||
![]() |
![]() |
![]() |
#11 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
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. |
![]() |
![]() |
![]() |
#12 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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 |
![]() |
![]() |
![]() |
#13 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
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 ... } |
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,755
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
Quote:
![]() - 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. |
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2015
Device: Kindle PW2
|
Since this is an old thread, but was a top entry off of Google (meaning, it's likely that what you're looking for, is certainly posted), I thought I'd add the following for posterity:
Screen Brightness on a Kindle PW2: [root@kindle max77696-bl]# echo 255 > /sys/class/backlight/max77696-bl/brightness [root@kindle max77696-bl]# cat brightness 255 [root@kindle max77696-bl]# echo "Backlight is on. Full brightness. A byte value" Backlight is on. Full brightness. A byte value [root@kindle max77696-bl]# echo 0 > brightness [root@kindle max77696-bl]# See: https://www.mobileread.com/forums/arc.../t-200266.html |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |