View Single Post
Old 01-18-2024, 02:44 PM   #29
KetchupCider
Member
KetchupCider can extract oil from cheeseKetchupCider can extract oil from cheeseKetchupCider can extract oil from cheeseKetchupCider can extract oil from cheeseKetchupCider can extract oil from cheeseKetchupCider can extract oil from cheeseKetchupCider can extract oil from cheeseKetchupCider can extract oil from cheese
 
Posts: 22
Karma: 1000
Join Date: Jan 2024
Device: Paperwhite 4, Paperwhite 5 SE
Quote:
Originally Posted by shamanNS View Post
You will still get to see the Home tab content anytime you use KUAL or KOL? Since those exit out back to Home IIRC.
Darn, that's the use case I couldn't remember -- I tested only from boot, and it's certainly fast enough a transition that I don't even see the Home tab content.

Just tried exiting KUAL and it didn't work unfortunately. I'll see if modifying the sleep time back up to 300ms will catch it when I exit KUAL though.

Quote:
Originally Posted by mergen3107 View Post
Cool! So we just need to add this lipc command in the end? Or what are the exact steps please?
I followed the instructions from Sentenced above; step by step:
  • SSH into Kindle
  • Set filesystem rewritable: mntroot rw
  • Create a new file /etc/upstart/defaultscreen.conf: nano /etc/upstart/defaultscreen.conf
  • Paste contents of Sentenced's script into the editor:
    Code:
    start on started kppmainapp
    
    script
    source /etc/upstart/functions
    
    f_log I defaultscreen "defaultscreen.conf started"
               
    sleep 2                                              
    
    while ! lipc-get-prop com.lab126.appmgrd activeView | grep KPP_HOME >/dev/null; do               
        f_log I defaultscreen "Home screen not yet active, sleeping 300ms"               
        usleep 300000                                                
    done 
                                                                 
    f_log I homescreen "Homescreen is active, switching screens"
                                              
    lipc-set-prop com.lab126.appmgrd start app://com.lab126.KPPMainApp?view=KPP_LIBRARY
              
    end script
  • Save contents of file using Ctrl+O, exit nano using Ctrl+X
  • Set filesystem read-only: mntroot ro
  • Reboot device from either using the reboot command, or from the Kindle options... or manually power off/power on, etc

You can modify the 300ms time within the script before adding it, to change the value to whatever you'd like to test or run. Also, you can use other editors besides nano, that's just the one I usually go to.

Note I'm not responsible for any issues caused by this, as I only tested with a PW4 and PW5 using 5.15.1

Last edited by KetchupCider; 01-18-2024 at 02:48 PM. Reason: Added reboot step
KetchupCider is offline   Reply With Quote