View Single Post
Posts: 26 | Thanked: 39 times | Joined on Jul 2012 @ Bulgaria
#100
Hey guys, I got intrested in the swap switching idea that you have and i'm currently testing it (thou without the scripts, I prefer doing it manualy 'till i'm in testing phase) ..anyway I have few suggestion:

1. As you already said, it needs GUI ... not that i'm really good at GUI programming ...i kind of hate writing GUI stuff, but i'll try to find some free time to help out with that.
2. Adding the possability of automatic reswaping.
3. Don't edit startup scripts! It's a bad idea.... it think it will be better if you add the (or switch to) second swap at a later stage (maybe after Xstart with sleep for $user_defined seconds before X an then doing it) This way you'll only add dbus scripts.
4. Some changes in the scripts..... first one shoud only check if it is time to do the reswaping, and call the seconds one (if needed). The second one will do the actual reswaping. (not sure but I think that currently both scripts can do some of the same stuff, correct me if i'm wrong.... i'm to lazy to check it out right now)
5. About the automatic reswaping... one way to go is to start a script after phone is locked, sleep for 3-4-5 minutes (this can be user defined too) then check if the load is below some value (for example 0.5) and start reswaping if it is time. if the load is grater -> loop on the sleep and check again. Ofc kill the script on phone unlock.


Anyway those are just my thoughts on the matter, tell me what you think and (if any) with what can I help
 

The Following 3 Users Say Thank You to l4m3rx For This Useful Post: