Notices


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#11
Ok, following on pipeline's idea, I wrote epause.

epause consists of a program that I wrote that returns the pid for the currently open window on your screen and a script that gets the state of the program (paused, running) and pauses it if running and vice versa.

Install the deb, reboot and run "gconftool-2 -s -t string /apps/osso/keybindings/global/epause escape" to activate. Replace "escape" with preferred key. Some keys like the fullscreen button and power button for example will not work (intentionally disabled in hildon-desktop). Pressing your key will run the program which will toggle the window's state.

If you have hw-screenshot installed, installing this will cause hw-screenshot not to work.
Attached Files
File Type: deb epause_0.1_armel.deb (36.5 KB, 57 views)
File Type: tar epause-0.1.tar (100.0 KB, 72 views)
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
thp's Avatar
Posts: 1,390 | Thanked: 4,262 times | Joined on Sep 2007 @ Vienna, Austria
#12
Don't forget - "frozen" apps still take up Memory (but are probably swapped out sooner or later if swapping is enabled - still, the memory usage is there).

For my part, I've taken this post as inspiration, and the next version of Tennix will save the current game automatically on quit and will allow to continue the game on next start.

I also think that while having a "general purpose" freezing/suspension utility, this should only be a temporary solution until all apps save and restore their state correctly.

Also, I think libosso already provides an API for putting apps to sleep and waking them later on - and IIRC this also makes them free up their used memory. You can see this in effect when you have many apps open, and some of them get that "zz" on top of their icon.

Last edited by thp; 2009-02-14 at 11:14. Reason: libosso, not hildon
 
Posts: 73 | Thanked: 11 times | Joined on Dec 2007 @ NJ, USA
#13
Is epause only for 810's? What would the key choices be on an N800?
__________________
Gone completely farbot.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:36.