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 07-20-2024, 06:52 PM   #1
kdusr
Connoisseur
kdusr began at the beginning.
 
kdusr's Avatar
 
Posts: 85
Karma: 13
Join Date: Oct 2016
Location: Mars
Device: KV,KOA2,PW5
Question Kill unnecessary background services

I have written an app for the Kindle to display some information.
To reduce the number of charging times(save power consumption), I want to stop all unnecessary background services.
Is there a way to list all background services on the Kindle and kill unnecessary ones?

Last edited by kdusr; 07-20-2024 at 06:54 PM.
kdusr is offline   Reply With Quote
Old 07-20-2024, 09:17 PM   #2
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,323
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
ps -A
this is command to see ALL packages.

Get some inspiration from koreader.sh script inside koreader folder.

kill packages (via killall or stop) one by one to make sure you are not killing processes needed for your use case.
mergen3107 is offline   Reply With Quote
Old 07-20-2024, 09:21 PM   #3
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,323
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
c.f., https://github.com/koreader/koreader...le/koreader.sh
Line 69 for the list, and Line 284 for when they are stopped.

In KOReader, they are resumed after koreader exits.
mergen3107 is offline   Reply With Quote
Old 07-21-2024, 02:26 AM   #4
kdusr
Connoisseur
kdusr began at the beginning.
 
kdusr's Avatar
 
Posts: 85
Karma: 13
Join Date: Oct 2016
Location: Mars
Device: KV,KOA2,PW5
Hi Mergen3107, thanks for your reply, I searched in the forums, found your previous post from this link : https://www.mobileread.com/forums/sh...d.php?t=345556

Does this setting save a bit on power consumption? (and does this setting block OTA?)
Quote:
Originally Posted by mergen3107 View Post
@squelch
If you would like to stop Kindle sending stuff to Amazon, here is how you can do it:

Warning! Before firmware update, restore usr/bin/showlog binary, otherwise the update's gonna fail.


How to disable logging:
1) Backup files
/usr/sbin:
syslog-ng (syslog server and logging daemon)
loginfo (pulls specific info from syslog)
tinyrot (rotates log files to be pulled from remote servers)
/usr/bin:
showlog (specifies which log file to send)

2) Link log files to null location:
Code:
mntroot rw
ln -s -b /dev/null /usr/sbin/syslog-ng
ln -s -b /dev/null /usr/sbin/loginfo
ln -s -b /dev/null /usr/sbin/tinyrot
ln -s -b /dev/null /usr/bin/showlog
mntroot ro
How to Revert back:
Code:
mntroot rw
mv /usr/sbin/syslog-ng~ /usr/sbin/syslog-ng
mv /usr/sbin/loginfo~ /usr/sbin/loginfo
mv /usr/sbin/tinyrot~ /usr/sbin/tinyrot
mv /usr/bin/showlog~ /usr/bin/showlog
mntroot ro
Disable user store reset and shipping mode:
Code:
mntroot rw
ln -s -b /dev/null /usr/sbin/userstore_reset
ln -s -b /dev/null /usr/sbin/userstore_clean
ln -s -b /dev/null /usr/sbin/shipping_mode
mntroot ro
Restore:
Code:
mntroot rw
mv /usr/sbin/userstore_reset~ /usr/sbin/userstore_reset
mv /usr/sbin/userstore_clean~ /usr/sbin/userstore_clean
mv /usr/sbin/shipping_mode~ /usr/sbin/shipping_mode
mntroot ro
kdusr is offline   Reply With Quote
Old 07-21-2024, 07:40 AM   #5
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,323
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
No, this doesn’t save you from OTA (you need renameOTAbin for this). I don’t think it saves you any energy neither.
mergen3107 is offline   Reply With Quote
Old 07-21-2024, 07:41 AM   #6
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,323
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
What Kindle do you have?
The ones in your profile description?
mergen3107 is offline   Reply With Quote
Old 07-21-2024, 08:30 AM   #7
kdusr
Connoisseur
kdusr began at the beginning.
 
kdusr's Avatar
 
Posts: 85
Karma: 13
Join Date: Oct 2016
Location: Mars
Device: KV,KOA2,PW5
Quote:
Originally Posted by mergen3107 View Post
What Kindle do you have?
The ones in your profile description?
I will run my app on KV, KO and KO2, (my PW5 bricked, boot loop....)

I found some sample code on github for cleanup background process.
https://github.com/mattzzw/kindle-cl...indle-clock.sh

The following process will be killed:
stop lab126_gui
stop otaupd
stop phd
stop tmd
stop todo
stop mcsd
stop x
What is the "x", if the "x" is killed, when my application crashed, can I go back to the terminal?

to re-enable the process , just run: start xxxx, is it right?
kdusr is offline   Reply With Quote
Old 07-21-2024, 09:12 AM   #8
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,323
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Yes, with start. Or you can just restart Kindle if it doesn’t work
mergen3107 is offline   Reply With Quote
Reply

Tags
background services, kill unnecessary


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Background picture or even playing slideshow of background pic for ebooks as feature gdrdr Calibre 7 09-16-2016 05:25 AM
Harper Lee's heirs kill mass market paperback of 'To Kill a Mockingbird' bgalbrecht News 65 03-25-2016 11:21 AM
'VOWS TO KILL' - Detective receives an email: 'I will kill you on your wedding day'. tothepoint Self-Promotions by Authors and Publishers 2 02-21-2013 06:27 AM
Pdf background darker than LRF/RTF background LOL2005 Sony Reader 2 10-23-2007 11:00 AM


All times are GMT -4. The time now is 12:37 AM.


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