View Single Post
Old 05-25-2016, 03:14 PM   #5
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Vladi69 View Post
Ok, but in this way no screen off. DO you mean this is not useful? So why the option exist?
To differentate between a semi-long press to put the device to sleep and a very long press to restart the device.
(At least the pop-up panels I have seen give you more than one action to choose.)

The device will show a screen saver, and after a time period (if it has nothing to do) will go to sleep (and turn off the front light).

Note:
The Kindle's never go to sleep if you have something holding a "wake lock" in the system -
such as having the USB cable plugged in.
Although they will be showing a screensaver - even when kept awake by a 'wake lock'.

OR:

echo 'mem' >/sys/power/state
OR
echo 'standby' >/sys/power/state (does what it says -> everything possible is turned off or put to sleep - takes a few 1/10s of a second).

There is a recent thread here about giving ;log (a search bar command) a new meaning.
See the 'Hide books' thread and example scripts.

After you decide which state you want to enter - re-write the ;log script to match.

Edit:
Is it 'safe' to just poke power management?
Code:
[728133.980625] PM: Syncing filesystems ... done.
[728133.993436] PM: Preparing system for standby sleep
[728133.994245] Freezing user space processes ... (elapsed 0.02 seconds) done.
[728134.015707] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[728134.035692] PM: Entering standby sleep
[728134.035701] Suspending console(s) (use no_console_suspend to debug)
[728134.117192] udc suspend begins
[728134.117715] USB Gadget suspend ends
[728134.117858] KERNEL: I pmic:fg suspend battinfo:current=0mA, volt=4200mV, capav=100%, mAh=1464mAh:
[728134.136500] add wake up source irq 105
[728134.139261] add wake up source irq 51
[728134.139320] PM: suspend of devices complete after 103.192 msecs
[728134.139688] PM: late suspend of devices complete after 0.350 msecs
Ans: Yes
That is everything required to put the device to sleep.
Note that the battery current is shown a zero - that is only because it is too low to measure for the Kindle's current sensor.

The dynamic ram is in low power, self refresh mode -
There is a micro-controller running (clock, button, hall effect monitoring) -
As much as possible of the SoC (and cpu) has clocks and power removed.

This is about as close to 'off' as a Kindle can get without removing the battery.

Last edited by knc1; 05-27-2016 at 09:51 AM.
knc1 is offline   Reply With Quote