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 05-09-2023, 09:00 AM   #1
jollyblondgiant
Member
jollyblondgiant began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jun 2021
Device: Kindle Touch K5
KTerm cleanup script?

I've got a Kindle Touch with KUAL and KTerm which I use mainly to ssh into a raspberry pi 4(00) as a kind of e-ink typewriter. I have modified the /mnt/us/extensions/kterm/bin/kterm.sh script to include the line from /bin/ds.sh

Code:
${EXTENSION}/bin/kterm ${PARAM} -e "/mnt/us/extensions/kterm/bin/kterm -k 1" "$@"

lipc-set-prop com.lab126.powerd preventScreenSaver 1
and this works like a charm to prevent the screen from sleeping while I'm working on my raspi. However, in order to re-enable sleep mode, I have to use a KUAL extension that basically runs

Code:
lipc-set-prop com.lab126.powerd preventScreenSaver 1
This still works, but it's an extra couple of keystrokes (fingerstrokes? ew?) 1I'd like to forget about and never have to do again.

The best way would be to trap ${} EXIT in the kterm.sh file but I can't get it to execute when I exit kterm. My next bet would be to execute the script in a file like .bash_logout or in any .*rc file, but the home directory is read-only.
jollyblondgiant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KTerm for Kobo? lordeagle Kobo Developer's Corner 6 11-25-2020 04:11 PM
Any Addons that aid in Library Cleanup and/or metadata repair/cleanup? Meido Calibre 2 01-17-2018 03:49 AM
taskwarrior (REQUIRES KTERM) twobob Kindle Developer's Corner 77 07-30-2017 01:30 PM
[HELP]How to quit the kterm frosn0w Kindle Developer's Corner 2 03-13-2014 12:06 PM
newsbeuter 2.3 - requires KTERM twobob Kindle Developer's Corner 14 10-15-2013 05:57 PM


All times are GMT -4. The time now is 04:53 AM.


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