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...