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 02-18-2016, 08:33 AM   #1
XXCoder
Member
XXCoder began at the beginning.
 
XXCoder's Avatar
 
Posts: 23
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
How change screen timeouts?

I want to set it to 30 minutes (10 minutes is too short for me) but my research goes everywhere and nowhere. Is there nice and safe way to change timeouts on my pw2?
XXCoder is offline   Reply With Quote
Old 02-19-2016, 06:48 PM   #2
XXCoder
Member
XXCoder began at the beginning.
 
XXCoder's Avatar
 
Posts: 23
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
t1_timeout seem to contain that setting, but I don't see how to alter it, even when I use mntroot rw. Oddly there seem to be few copies so I'm uncertain how to change.

One suggests this command (it's for k5 not pw2 so paths is wrong)
sed -e 's/600/900/' /etc/kdb.src/luigi/system/daemon/powerd/t1_timeout.bkp > /etc/kdb.src/luigi/system/daemon/powerd/t1_timeout

but it did not work either. I could not make backup file (with BKP ext) first as it says read only.
XXCoder is offline   Reply With Quote
Old 02-19-2016, 07:52 PM   #3
knc1
Ex-Helpdesk Addict
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: 12,228
Karma: 12451893
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by XXCoder View Post
t1_timeout seem to contain that setting, but I don't see how to alter it, even when I use mntroot rw. Oddly there seem to be few copies so I'm uncertain how to change.

One suggests this command (it's for k5 not pw2 so paths is wrong)
sed -e 's/600/900/' /etc/kdb.src/luigi/system/daemon/powerd/t1_timeout.bkp > /etc/kdb.src/luigi/system/daemon/powerd/t1_timeout

but it did not work either. I could not make backup file (with BKP ext) first as it says read only.
There seems to be two details that you are overlooking -

That: mntroot ro/rw command **only** effects the filesystem mounted at: '/' (root of the system tree) -
The rw or ro status does not propagate to other filesystems mounted in the system tree.

In addition to a file system mount to be marked ro/rw - it is possible that the file system is inherently read-only (I.E: Does not support write operations).

For example:
Code:
[root@kindle root]# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (ro,noatime,nodiratime,barrier=0,data=writeback)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /var type tmpfs (rw,relatime,size=32768k)
/dev/loop/2 on /usr/share/X11/xkb type cramfs (ro,noatime,nodiratime)
/dev/loop/3 on /usr/java/lib/fonts type cramfs (ro,noatime,nodiratime)
/dev/loop/4 on /etc/kdb.src type cramfs (ro,noatime,nodiratime)
/dev/loop/5 on /usr/lib/locale type cramfs (ro,noatime,nodiratime)
/dev/loop/6 on /usr/share/keyboard type cramfs (ro,noatime,nodiratime)
/dev/mmcblk0p3 on /var/local type ext3 (rw,relatime,errors=continue,barrier=0,data=writeback)
fsp on /mnt/us type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other)
/dev/loop/0 on /mnt/base-us type vfat (rw,noexec,noatime,nodiratime,fmask=0000,dmask=0000,all)
ext2 on /var/local/swpmnt type ramfs (rw,relatime,size=3M)
Note the type of filesystem behind /dev/loop/4 -
It is cramfs -
cramfs is a read-only filesystem, it does not have a 'write' function.
cramfs can only be 'created' or 'read'.
knc1 is offline   Reply With Quote
Old 02-20-2016, 06:50 PM   #4
XXCoder
Member
XXCoder began at the beginning.
 
XXCoder's Avatar
 
Posts: 23
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
Interesting. So far I know, there is only method to STOP screensaver. Then it would need to be rebooted to enable it again. Is there any method I don't know about that can change timing to be besides 10 minutes? I would love it to be 30 minutes.
XXCoder is offline   Reply With Quote
Old 05-13-2016, 11:13 PM   #5
XXCoder
Member
XXCoder began at the beginning.
 
XXCoder's Avatar
 
Posts: 23
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
https://kaarthik.wordpress.com/2007/...-cramfs-image/

Hm wonder if that'd work lol
XXCoder is offline   Reply With Quote
Old 05-14-2016, 01:46 AM   #6
knc1
Ex-Helpdesk Addict
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: 12,228
Karma: 12451893
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by XXCoder View Post
If you where 'root' while doing it (to maintain ownership and permissions).

And a note about the 'sed ... ' method of changing things -
kdb.src is a database file, it is better to change its entries using kdb than possibly corrupting things in the dg.

K == Key, D == Data, B == Base (the system's key database - it is fairly important not to corrupt it. )
knc1 is offline   Reply With Quote
Old 05-14-2016, 11:40 AM   #7
Yourcat
Groupie
Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.
 
Posts: 168
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
Afaik /etc is a folder in / and thus writable after the remount.
'find /etc/kdb.sec -name t1_timeout' should return the files. 'cat /path-to/t1_timeout' should display the contents and in the last line '600'. Setting this to 1800 may work for some Kindles.
I need to test this locally, hopefully /etc/kdb.sys is not a cramfs. So no joy here.

http://www.mobileread.mobi/forums/sh...d.php?t=220810 describes how to restart the 10min timer.

Show the remaining time, reset the timer and show the time again:
Code:
/usr/bin/powerd_test -s
lipc-set-prop com.lab126.powerd -i touchScreenSaverTimeout 1
/usr/bin/powerd_test -s

Last edited by Yourcat; 05-14-2016 at 12:00 PM.
Yourcat is offline   Reply With Quote
Old 05-14-2016, 11:59 AM   #8
knc1
Ex-Helpdesk Addict
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: 12,228
Karma: 12451893
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by Yourcat View Post
Afaik /etc is a folder in / and thus writable after the remount.
'find /etc/kdb.sec -name t1_timeout' should return the files. 'cat /path-to/t1_timeout' should display the contents and in the last line '600'. Setting this to 1800 may work for some Kindles.
I need to test this locally, hopefully /etc/kdb.sys is not a cramfs.

http://www.mobileread.mobi/forums/sh...d.php?t=220810 describes how to restart the 10min timer.
/etc is
/etc/kdb.sec is not (different file system)

You must be thinking 'Windows' -
*nix systems are 'single root' file trees (not per backing store) -
and any directory (a.k.a: folder) may have a file system attached to it (I.E: mounted).
Each mount point has its own mount options.
and in the case of kdb.src, the file system attached there does not support write operations - create and read only.

At the command line, type the command:
mount
to list all the active mount points.

There you will find:
Code:
/dev/loop/4 on /etc/kdb.src type cramfs (ro,noatime,nodiratime)
That 'ro' is because cramfs does not include 'rw' operation.

You can use the kdb utility (included in the Kindle firmware) to read that database.
See the cpu report script for an example.
(and the kdb utility's built-in help)

Last edited by knc1; 05-14-2016 at 12:04 PM.
knc1 is offline   Reply With Quote
Old 05-14-2016, 12:03 PM   #9
Yourcat
Groupie
Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.
 
Posts: 168
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
@knc1 I just saw the FS in your post (and on my kindle). I missed it on my small smartphone screen.
At least everything else in /[etc] is writable but this doesn't help here.
Yourcat is offline   Reply With Quote
Old 05-14-2016, 12:10 PM   #10
knc1
Ex-Helpdesk Addict
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: 12,228
Karma: 12451893
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by Yourcat View Post
@knc1 I just saw the FS in your post (and on my kindle). I missed it on my small smartphone screen.
At least everything else in /[etc] is writable but this doesn't help here.
Ah, sometimes.
The file system mounted at / is subject to the mntroot script actions.
and /etc is a part of the file system mounted at /

But keep in mind, this is *nix, the file system tree does not place any relationship on the file system backing stores it includes.
Non-*nix systems assign a 'root per file system' with some sort of notation to the user, such as: C: D: E: (etc).

Your phone is most likely also a *nix system, you should be used to the differences to non-*nix systems.

Last edited by knc1; 05-14-2016 at 12:12 PM.
knc1 is offline   Reply With Quote
Old 05-17-2016, 07:45 AM   #11
XXCoder
Member
XXCoder began at the beginning.
 
XXCoder's Avatar
 
Posts: 23
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
So it is /etc/kdb.sys that contains data for say timeout and such?

So basically I remount that and recreate cramf but with modified timeout? I'd love it to be 30 minutes.
XXCoder is offline   Reply With Quote
Old 05-17-2016, 08:38 AM   #12
knc1
Ex-Helpdesk Addict
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: 12,228
Karma: 12451893
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by XXCoder View Post
So it is /etc/kdb.sys that contains data for say timeout and such?
- - - -
I thought that you had already determined that it does.

Use the kdb utility installed on the Kindle to list it, find out if it does.
knc1 is offline   Reply With Quote
Old 06-20-2016, 03:23 AM   #13
XXCoder
Member
XXCoder began at the beginning.
 
XXCoder's Avatar
 
Posts: 23
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
I really need to try this. :P Been so busy.
XXCoder is offline   Reply With Quote
Old 06-20-2016, 10:54 AM   #14
geekmaster
Carpe diem, c'est la vie.
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: 6,430
Karma: 10764602
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
NiLuJe warned of the dangers of editing this file:
http://www.mobileread.com/forums/sho...06#post1473606

Last edited by geekmaster; 06-20-2016 at 02:53 PM.
geekmaster is offline   Reply With Quote
Old 06-20-2016, 12:59 PM   #15
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 6,973
Karma: 6556573
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O
Yup.

Note that I broke my own advice for the custom MAC address thingy in USBNetwork, if one were to be so bold as to try this and wanted an example .
NiLuJe 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
Timeouts when sending large books to Kindle HD 7 mathuin Calibre Companion 9 01-04-2015 03:12 AM
About log-in timeouts Quexos Feedback 3 07-17-2012 07:34 PM
change screen orientation jacek.poplawski Amazon Kindle 7 10-25-2011 08:47 AM
iLiad How to change the darkness of the screen delbers iRex 2 10-09-2010 09:23 PM
screen change changing coolnamehere Sony Reader 1 04-29-2010 03:41 AM


All times are GMT -4. The time now is 04:10 PM.


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