05-24-2021, 01:54 PM | #1 |
Grand Sorcerer
Posts: 5,289
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
How do I restart (GUI?) framework?
I need to apply changes to FONT_RAMP without rebooting on a PW3 running 5.9.6.1.
https://www.mobileread.com/forums/sh...93&postcount=3 says a framework restart will do it. It looks like amazon switched from init to upstart somewhere along the way. I've looked at some upstart tutorials and remain confused. They imply something like Code:
service restart framework I'm stuck. Please help. |
05-24-2021, 04:39 PM | #2 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
start|stop|restart lab126_gui
Or just x might be enough, depending. I don't rightly recall the differences, and the depgraph is hilarious. Check what MRPI and the Font hack do for some inspiration . EDIT: Or, well, apparently framework is still a service, too ^^. Look at the script from the Font Hack's KUAL extension for more details. Last edited by NiLuJe; 05-24-2021 at 04:44 PM. |
05-24-2021, 05:23 PM | #3 | |
Grand Sorcerer
Posts: 5,289
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
I had already found a shutdown script and guessed stop framework start framework which worked. I didn't know about restart as a command. Withe tab completion, I just now found restartFramework.sh but it is in entirety: Code:
#!/bin/sh /sbin/restart framework |
|
05-24-2021, 06:22 PM | #4 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
.conf is just the extension for an upstart job, perfectly normal (there may be actual scripts not part of the depgraph in that folder, can't remember).
|
05-26-2021, 03:54 PM | #5 |
Grand Sorcerer
Posts: 5,289
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Both restart framework and restart lab126_gui return in well under 1 second, but it takes quite a bit longer for screen to return to its previous state. How should a script invoking one of them know when it is finished?
|
05-26-2021, 10:09 PM | #6 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You don't, not really .
You'd need to make that an actual upstart job and listen for the framework_started event, and/or add another job that does something you can react to based on that event. Fair warning: if you break upstart, or just subtly break the dep chain, you break the boot. Which potentially means a softbrick because of the failed startup counters. (e.g., have the RP/CRP at the ready if supported by your device, or have serial access otherwise. Barring that, big brassy balls required). |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Need help setting up a Python GUI framework | Mavireck | Kobo Developer's Corner | 3 | 05-08-2020 12:30 PM |
Bible Framework | ProDigit | Workshop | 46 | 12-18-2015 04:39 AM |
What is the difference between framework.fiona.conf vs framework.mario.conf | kocoman | Kindle Developer's Corner | 1 | 03-19-2013 09:40 AM |
Framework for integrating applications | mkaluza | Sony Reader Dev Corner | 4 | 09-16-2008 02:50 AM |