Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-25-2013, 09:47 AM   #16
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 ixtab View Post
However, I'm not sure how to determine when it will enter suspend mode. (Actually, does the PW ever enter it at all?). This is the relevant lines from the output in screensaver mode:
With the typical setup of one used as a development machine: Rarely if Ever.
But it can be persuaded to sleep.

Since a change in the hardware configuration will 'wake' the suspended Linux kernel, it is sometimes hard to catch it sleeping.
A hardware configuration change like the insertion or removal of the USB cable (the kernel wakes on USB events).

The best way to know if it **was** asleep is to review the dmesg kernel buffer. Which, among other things, will report how long it was asleep.
knc1 is offline   Reply With Quote
Old 08-25-2013, 11:17 AM   #17
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
Quote:
Originally Posted by ixtab View Post
Concerning the "how did you know it was 600 seconds" - unfortunately, the property is write-only, so it won't show you its current value when using lipc-probe -v . But it could be determined indirectly, by looking at the lipc-probe output: ..........
thanks, very interesting! i really appreciate it
zxczxc is offline   Reply With Quote
Old 08-26-2013, 08:48 PM   #18
silverzhao
Enthusiast
silverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplane
 
silverzhao's Avatar
 
Posts: 28
Karma: 55702
Join Date: Sep 2012
Device: Kindle Touch
This command will show you the remaining time before entering screensaver mode:
Code:
$ powerd_test -s
Powerd state: Active
Remaining time in this state: 599.965714
defer_suspend:0
suspend_grace:0
prevent_screen_saver:0
drive_mode:off
Battery Level: 90%
Last batt event at: 90%
Charging: No
batt_full=0
Battery logging: On

Last edited by silverzhao; 08-26-2013 at 08:53 PM.
silverzhao is offline   Reply With Quote
Old 08-27-2013, 12:10 PM   #19
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
silverzhao that is cool, thanks a lot.

a new thing, is it possible to send keyboard presses via ssh? probably not right... otherwise there would be a command that to turn pages instead of having to use something like xdotool.

but still, if the search bar on the home menu is selected, and i want to put an 'a' in that box, what could i do? any ideas?
zxczxc is offline   Reply With Quote
Old 08-27-2013, 12:21 PM   #20
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 zxczxc View Post
silverzhao that is cool, thanks a lot.

a new thing, is it possible to send keyboard presses via ssh? probably not right... otherwise there would be a command that to turn pages instead of having to use something like xdotool.

but still, if the search bar on the home menu is selected, and i want to put an 'a' in that box, what could i do? any ideas?
Trade in your Paperwhite on a Touch and just talk to it?
There is a package here for speaker independent, voice recognition on the Kindle Touch.
knc1 is offline   Reply With Quote
Old 08-27-2013, 07:08 PM   #21
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
Quote:
Originally Posted by knc1 View Post
Trade in your Paperwhite on a Touch and just talk to it?
There is a package here for speaker independent, voice recognition on the Kindle Touch.
no offense, but i am not interested in voice control (for kindle), it would get boring pretty fast i can imagine
although yes... i could do everything i want on my k3 since that has buttons i can just make use of... that's an idea. i'll charge it up!
zxczxc is offline   Reply With Quote
Old 04-12-2018, 08:21 AM   #22
shane blade
Junior Member
shane blade began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
Old post, but I just found this:
powerd_test: Utility to test powerd
Options:
s : Print status
i : Simulate input event
p : Simulate power button pressed event
h : Simulate power button held event
l : Simulate low batt low event
d <value> : Set defer sleep property to given value
r : Simulate a random series of events at random intervals.
Max interval is 10s by default.
b<optional>: Set fake battery level if a value is provided. Remember to
there is no space between b and value. If no value is
provided, it interactively accepts values from you and sets
fake battery level
t <value> : Max interval between events in seconds.
Valid only when used with -r
NOTE : Only one of i,p,d, b and r can be used at one time

So simulating a touch with -i might be the easiest way (eg from inside a script)
shane blade is offline   Reply With Quote
Old 04-12-2018, 09:33 AM   #23
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 shane blade View Post
Old post, but I just found this:
Code:
powerd_test: Utility to test powerd
Options:
  s          : Print status
  i          : Simulate input event
  p          : Simulate power button pressed event
  h          : Simulate power button held event
  l          : Simulate low batt low event
  d <value>  : Set defer sleep property to given value
  r          : Simulate a random series of events at random intervals.
               Max interval is 10s by default.
  b<optional>: Set fake battery level if a value is provided. Remember to
               there is no space between b and value.  If no value is 
               provided, it interactively accepts values from you and sets
               fake battery level
  t <value>  : Max interval between events in seconds.
               Valid only when used with -r
  NOTE       : Only one of i,p,d, b and r can be used at one time
So simulating a touch with -i might be the easiest way (eg from inside a script)
'code ... /code' tags can make that more readable.
knc1 is offline   Reply With Quote
Reply

Tags
sleep disable, sleep timer


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Ink Keyboard Concept Marries Best Of Touch And Physical Keys amjbrown News 22 02-05-2013 12:06 AM
Kobo Touch Reset Solved - I'ts Alive ! KTREADER Kobo Reader 0 09-01-2012 10:44 AM
Kindle and Physical buttons ewandeep Sony Reader Dev Corner 4 07-09-2012 10:12 AM
Bargain (Kindle/Sony) Burned Alive: A Victim of the Law of Men ($1.99) arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-30-2010 10:50 PM
Kindle edition discount with physical purchase? cjschmidt Amazon Kindle 9 02-11-2009 09:42 PM


All times are GMT -4. The time now is 03:00 PM.


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