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 04-18-2022, 09:14 PM   #1
ajs256
he/him
ajs256 is on a distinguished road
 
Posts: 21
Karma: 68
Join Date: Mar 2022
Device: Jailbroken Kindle PW3 + PW5
Run script on boot?

Is there a way to run a script (either a shell script in /mnt/us or a KUAL app) on boot?

Context: My PW3's hall sensor is flaky, and I would like to be able to disable it as part of the boot process rather than have to disable it through KUAL every boot.
ajs256 is offline   Reply With Quote
Old 04-19-2022, 03:43 AM   #2
eddie.t.h
Groupie
eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.
 
eddie.t.h's Avatar
 
Posts: 198
Karma: 123456
Join Date: Jan 2018
Device: Too Much Kindle :-)
Moisture often accumulates at this sensor. See if there are any signs of corrosion around it. It is usually sufficient to wash it with isopropyl alcohol.

You can also disable the sensor by:

Code:
echo 0 > /sys/devices/system/wario_hall/wario_hall0/hall_enable
Just add such a line to one of the system scripts.

Last edited by eddie.t.h; 04-19-2022 at 04:32 AM.
eddie.t.h is offline   Reply With Quote
Advert
Old 04-19-2022, 12:21 PM   #3
ajs256
he/him
ajs256 is on a distinguished road
 
Posts: 21
Karma: 68
Join Date: Mar 2022
Device: Jailbroken Kindle PW3 + PW5
Quote:
Originally Posted by eddie.t.h View Post
Code:
echo 0 > /sys/devices/system/wario_hall/wario_hall0/hall_enable
Just add such a line to one of the system scripts.
Which file? There's no /etc/rc.local, and @reboot directives in crontab don't work.
ajs256 is offline   Reply With Quote
Old 04-19-2022, 02:51 PM   #4
eddie.t.h
Groupie
eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.eddie.t.h is an accomplished Snipe hunter.
 
eddie.t.h's Avatar
 
Posts: 198
Karma: 123456
Join Date: Jan 2018
Device: Too Much Kindle :-)
The boot files of the system are in the /etc/upstart directory. Try in the battery or display file. They start as one of the first.
eddie.t.h is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to exec script on boot knauck Kindle Developer's Corner 23 09-13-2022 11:08 AM
K4 Run a Python script in background damix Kindle Developer's Corner 5 11-12-2020 06:44 PM
run script on wifi connect sinisterguy Kindle Developer's Corner 1 10-18-2010 03:46 PM
iLiad Can't run my first script ragdoll iRex Developer's Corner 4 01-28-2008 06:40 AM


All times are GMT -4. The time now is 03:44 AM.


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