02-18-2016, 07:33 AM | #1 |
Enthusiast
Posts: 27
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?
|
02-19-2016, 05:48 PM | #2 |
Enthusiast
Posts: 27
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. |
Advert | |
|
02-19-2016, 06:52 PM | #3 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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) It is cramfs - cramfs is a read-only filesystem, it does not have a 'write' function. cramfs can only be 'created' or 'read'. |
|
02-20-2016, 05:50 PM | #4 |
Enthusiast
Posts: 27
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.
|
05-13-2016, 10:13 PM | #5 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
|
|
Advert | |
|
05-14-2016, 12:46 AM | #6 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. ) |
|
05-14-2016, 10:40 AM | #7 |
Groupie
Posts: 175
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 11:00 AM. |
05-14-2016, 10:59 AM | #8 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
/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) 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 11:04 AM. |
|
05-14-2016, 11:03 AM | #9 |
Groupie
Posts: 175
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. |
05-14-2016, 11:10 AM | #10 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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 11:12 AM. |
|
05-17-2016, 06:45 AM | #11 |
Enthusiast
Posts: 27
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. |
05-17-2016, 07:38 AM | #12 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
06-20-2016, 02:23 AM | #13 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2015
Device: Kindle pw2, NST
|
I really need to try this. :P Been so busy.
|
06-20-2016, 09:54 AM | #14 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
NiLuJe warned of the dangers of editing this file:
https://www.mobileread.com/forums/sho...06#post1473606 Last edited by geekmaster; 06-20-2016 at 01:53 PM. |
06-20-2016, 11:59 AM | #15 |
BLAM!
Posts: 13,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
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 . |
|
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 02:12 AM |
About log-in timeouts | Quexos | Feedback | 3 | 07-17-2012 06:34 PM |
change screen orientation | jacek.poplawski | Amazon Kindle | 7 | 10-25-2011 07:47 AM |
iLiad How to change the darkness of the screen | delbers | iRex | 2 | 10-09-2010 08:23 PM |
screen change changing | coolnamehere | Sony Reader | 1 | 04-29-2010 02:41 AM |