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 06-11-2013, 07:26 AM   #1
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
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?
aditya3098 is offline   Reply With Quote
Old 06-13-2013, 08:54 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by aditya3098 View Post
I would like to run the blackbox wm on DISPLAY:1, but bb does not have a --replace option. What should I do?
Somewhere here, in the not too distant past, I recall reading a long list of the things that could be stopped (and how to do it).

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.
knc1 is offline   Reply With Quote
Advert
Old 06-13-2013, 09:09 AM   #3
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Quote:
Originally Posted by knc1 View Post
Somewhere here, in the not too distant past, I recall reading a long list of the things that could be stopped (and how to do it).

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.

Thatd be about ~30+% of twobob's posts
aditya3098 is offline   Reply With Quote
Old 06-13-2013, 09:33 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by aditya3098 View Post
Thatd be about ~30+% of twobob's posts
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.
knc1 is offline   Reply With Quote
Old 06-14-2013, 03:37 AM   #5
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
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.
hawhill is offline   Reply With Quote
Advert
Old 06-14-2013, 10:26 AM   #6
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
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
That stops the desktop from interfering with your app, but will not free up memory (which would require more advanced methods).

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.
geekmaster is offline   Reply With Quote
Old 06-15-2013, 01:51 AM   #7
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Quote:
Originally Posted by geekmaster View Post
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
That stops the desktop from interfering with your app, but will not free up memory (which would require more advanced methods).

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...
Will try that
aditya3098 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:03 PM.


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