![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Kill awesome without restarting the framework
I would like to run the blackbox wm on DISPLAY:1, but bb does not have a --replace option. What should I do?
|
![]() |
![]() |
![]() |
#2 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The only detail I recall is (I think) that it was in a reply to one of twobob's threads on things graphic. One of the "tricks of the trade" needed is that upstart is listening on DBus for termination events and is very stubborn about re-starting things you kill off. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Quote:
Thatd be about ~30+% of twobob's posts |
|
![]() |
![]() |
![]() |
#4 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Yes, not much help I understand.
But I waited almost two days for someone to come up with a better lead. And since he is on a "Holiday from Kindles" - off dealing with "real life" issues - we can't ask him where the info is at here. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
awesome's Lua core API has a function "exec" which will do what it indicates - a call to exec(), thus replacing its process by another. I think upstart shouldn't get in the way here since the PID is still claimed by the new process, i.e. it seems to be still running.
As of how to make awesome execute this command - it has a DBus interface. I can't look right now if the Kindle ships the awesome-client binary which is a wrapper that will issue DBus calls to the running awesome instance. Otherwise, you would need to make up the DBus call yourself. The awesome source code is a bit sprinkled over many files but still quite readable. That said, I don't know if Amazon made some bigger modifications. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
To prevent restarting, you can just pause and resume it like I did in the shell script in this post:
https://www.mobileread.com/forums/sho...71#post2081471 Excerpt: Code:
killall -STOP Xorg cvm # pause framework initvar # init global vars sigcap # signature vector capture killall -CONT cvm Xorg # resume framework You can call the statements highlighted in red with C system() function calls (or equivalent for your choice of programming language). Question: Does this method still work on the PW? It should, because it worked on the K5, and they both run version 5 firmware... Last edited by geekmaster; 06-14-2013 at 11:33 AM. |
![]() |
![]() |
![]() |
#7 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
'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 |
Automatic Downloaders Framework | -Thomas- | iRex | 41 | 10-19-2009 04:55 PM |
Framework for integrating applications | mkaluza | Sony Reader Dev Corner | 4 | 09-16-2008 02:50 AM |