Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Zachary57
Old
#31  
Senior Member
Thanks Meter 125
Posts: 575
Join Date: Feb 2011
Maybe it will be good to implement a long sleep mod to our phone to be able to stop phone ( even if it's not really ) and to keep fastboot kernel.
I mean an option that unload all system and keep only kernel in memory and that re-load all system when long press at start button ( I don't know if it is possible ).
 
3rdstring
Old
#32  
3rdstring's Avatar
Recognized Contributor
Thanks Meter 1037
Posts: 2,173
Join Date: Dec 2010
Location: Cincinnati
There are numerous "hot" reboot apps in the market that reload the android GUI without touching the kernel.
Chuck

Nexus 4 - 4.2.1 / Stock - Rooted
Kindle Fire
The Following User Says Thank You to 3rdstring For This Useful Post: [ Click to Expand ]
 
peshovec
Old
#33  
Senior Member - OP
Thanks Meter 340
Posts: 294
Join Date: Nov 2010
killing system-server do the same....

but as i understand, the goal is something similar to "standby"

e.g. something like echo mem > /sys/power/state

i have not strong memories, that i tried that one, but was not able to wake the phone after ....


at least for now having a charger around is not so bad workaround
The Following User Says Thank You to peshovec For This Useful Post: [ Click to Expand ]
 
Zachary57
Old
#34  
Senior Member
Thanks Meter 125
Posts: 575
Join Date: Feb 2011
Quote:
Originally Posted by peshovec View Post
killing system-server do the same....

but as i understand, the goal is something similar to "standby"

e.g. something like echo mem > /sys/power/state

i have not strong memories, that i tried that one, but was not able to wake the phone after ....


at least for now having a charger around is not so bad workaround
Yes something like that. The goal is to have phone like halt but without losing fastboot kernel. In case of no charger or when phone have to be stop.
 
syrokos
Old
#35  
Junior Member
Thanks Meter 5
Posts: 16
Join Date: Jan 2012
Have you read about KSM? sounds like a good solution for our RAM problems but I don't know it its possible to use it, since it appears to be 2.6.32+
 
peshovec
Old
#36  
Senior Member - OP
Thanks Meter 340
Posts: 294
Join Date: Nov 2010
i run some tests, (look at the screenshot -> uptime)




so far my current config seems stable

differences from the default:

kernel:
https://github.com/CyanogenModXT720/...0-test-patches

highlights of them:
swap enabled, 800Mhz by default (imho no need to overclock anymore)

in the attached fastboot.zip you will find the boot-custom.img :

highlights of using it:
the above kernel
no 2nd init (as with fastbooting imho it is needless)


p.s. btw, using auto process purging once a day, seems very good to avoiding memory pressure
Attached Thumbnails
Click image for larger version

Name:	screenshot-1341565192833.jpg
Views:	314
Size:	13.7 KB
ID:	1180279  
Attached Files
File Type: zip fastboot.zip - [Click for QR Code] (3.34 MB, 48 views)
The Following User Says Thank You to peshovec For This Useful Post: [ Click to Expand ]
 
Mioze7Ae
Old
#37  
Mioze7Ae's Avatar
Recognized Developer
Thanks Meter 2091
Posts: 2,153
Join Date: Dec 2010
Location: Queen City of the West
Sweet!

One concern... avoiding 2nd-init means that there are now two boot mechanisms to debug. If you bake the rootfs into boot.img, then you have to keep track of boot.img+ROM compatibility.

On the other hand, is there really any downside to 2nd-init and keeping a unified boot process for normal and fastbooted kernels? If there are actually any real disadvantages to 2nd-init, I think there has to be a more elegant and generic way to bypass 2nd-init rather than baking the rootfs updates into boot.img... we should be able to pare down the boot.img init scripts so that the /system/etc/rootfs updates are merged without using 2nd-init to restart /init. I pondered this a bit a while ago but I decided it's less error-prone just stick to 2nd-init.
Milestone XT720 -- CM6.3.6.2/github -- OpenRecoveryXT720 -- fastboot kernels -- SBF master thread/mirrors -- reverendkjr's video tutorials
SD card/app2ext/Link2SD problems: ORXT720 > "SD Card Utilities" > "Save diagnostics" and post /sdcard/sdcard-info.txt

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...