yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] hausmanis:
#!/system/bin/sh

checkgov=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | grep ondemand -)

echo "Setting scaling_max_freq to 1200mhz"

echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "Setting scaling_min_freq to 100mhz"

echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "Setting governor to ondemand (if available)"

if [[ -n "$checkgov" ]]; then

echo "ondemand found"

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

else

echo "ondemand not found, using standard governor"

fi

i want to limit my cpu to max 800mhz and conservative govenor
[Galaxy S II Original Android Development] spookyx:
I know there isn't a way to measure which modem is better for me, but I am going to try it anyway.

Gonna charge up to 100%. Install new modem. Disable WiFi, let only 3G active with data on for an hour and see the result.

I don't see any other viable method.
[Galaxy S II Original Android Development] hausmanis:
Script help needed above
[Galaxy S II Original Android Development] smaberg:
#!/system/bin/sh

checkgov=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | grep conservative -)

echo "Setting scaling_max_freq to 800mhz"

echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "Setting scaling_min_freq to 100mhz"

echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "Setting governor to conservative (if available)"

if [[ -n "$checkgov" ]]; then

echo "conservative found"

echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

else

echo "conservative not found, using standard governor"

fi
[Galaxy S II Original Android Development] CSCicus:
iff i install latest siyah kernel will scipt working same ?

and what about SetCpu. Its possible using Setcpu if i already using this scipts ?
[Galaxy S II Original Android Development] smaberg:
simple YES :D

i also reuploaded SP1, now with working root :p
[Galaxy S II Original Android Development] CSCicus:
Again? :D thats 3 version :D i think
[Galaxy S II Original Android Development] thanksgiving60:
Hi

Does the KG5 Rom have CRT effect?
[Galaxy S II Original Android Development] bervin:
sorry for noob question but how do i access scripts, when i use root explorer to go to the scripts then i select view its just a bunch of weird symbols, not in english. thanks for the help guys
[Galaxy S II Original Android Development] hausmanis:
Thx for the help Smaberg, now all scripts is set, Rom ready for some serious testing.

100-800MHz Conservative, UVed to 200mhz 850mv 500mhz 850mv 800mhz 975mv

(That was as low as my phone would let me go stable)

GPU Uved and Underclocked to 100/133 600mv

Touch-X KG5 rom with reTOUCHED siyah kernel.

Gonna be interesting to se the batterylife but i got a good feeling, and one thing i already know is even with these pretty agressive? settings my phone still feels pretty smooth.

---------- Post added at 01:05 AM ---------- Previous post was at 01:02 AM ----------

scripts is code mixed up with some english, if you open for example system/ect/init.d/96undervolt with open in text editor while mounted as RW then you should se ALOT of english :D that script is good to start with if your a beginner like me, its VERY logical and explanation within the script
[Galaxy S II Original Android Development] jcrompton:
@ Smaberg

If I flash a doubleginger Jkay for KG5 will it effect any of the powersave touchs that you have done? Your battery is noce but a bit small for my eyes ...
[Galaxy S II Original Android Development] eozoon:
Flashed 2.1 about 5 hours ago and absolutely loving it so far.

Just one question: Is there anyway to change the boot animation? I'd like to use my own, plus the sound is a bit of a problem since I tend to flash things and reboot while in class a lot :p

Edit: Nevermind, found out I could get bootanimation.zip to load again once I delete the qmg file and the wav
[Galaxy S II Original Android Development] alcurtis93:
No
[Galaxy S II Original Android Development] goofy584:
strange file

Hi,

since I have flashed 2.0 with SP1 I get this strange file in the notifications area.

When I click on it a download starts (I canceled it). How to get rid of this file? From where does it come? ....?????

:confused:

thanks for help

Thomas
[Galaxy S II Original Android Development] smaberg:
In This remake, i removed some of The tweaks in apk files cause IT messed things up for some.

So you can flash whatever you want now...
[Galaxy S II Original Android Development] mustaka:
How can I make this script run after every boot? Obviously this will be put in a file, but which one? And then there must be a place like autorun.bat of DOS I suppose. In this way you will not need a software like SetCPU. I know there are many here who can help, so please don't hold back :)
[Galaxy S II Original Android Development] 02ranger:
I just made a script to mount /system r/o at boot because mine is always r/w across all ROMs for some reason. I saved it in /system/etc/init.d. You have to make sure the permissions match the other files in that folder. Name it something that falls alphabetically last in order of what's in the folder. For example, mine is named s99xsystemmnt. Added the x so it would be executed last. At least I think that's how it works. ;) Leave off any extension.
[Galaxy S II Original Android Development] mustaka:
Thank you very much for your kind answer. After your information I checked the files in init.d. How about directly modifying the files 96undervolt and 98underclock? This way I wouldn't need to adjust security settings for a new file and get rid of the need to execute an extra script at the end. I am aware of the risk involved but messing with system files without backups is always risky :)

Edit:

OK, I took the risk and modified 98underclock as below (max freq.800, conservative), had to adjust permissions since they were changed after save, and it worked nice, no need for SetCPU:

#!/system/bin/sh

checkgov=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | grep conservative -)

echo "Setting scaling_max_freq to 800mhz"

echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "Setting scaling_min_freq to 100mhz"

echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "Setting governor to conservative (if available)"

if [[ -n "$checkgov" ]]; then

echo "conservative found"

echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

else

echo "conservative not found, using standard governor"

fi
[Galaxy S II Original Android Development] 02ranger:
Cool! I'm glad that worked for you. I haven't gotten brave enough to modify existing scripts. I'm still learning. I read for a few hours before I'd even try adding my own script. I didn't notice yours was an underclock script or I might've suggested what you tried anyway. :) Anyway, I'm just glad I helped a little.

Also, I wanted to say I came to this ROM from cm7 and this is a great ROM. At this level of use I'd have ~50% battery on cm7. Now I have 83. I LOVE IT!! :D
[Galaxy S II Original Android Development] mustaka:
I concur. Before this I tried just one ROm but in the end I was not satisfied with the result being unable to clearly see the advantages besides some fancy but superficial features. This seems to be the only ROM which offers just the most practical features leaving the secondary ones to the user with great flexability. I am now trying to learn which parts I can change without messing with the smaberg's tunings.

I thank him once again for his great work. And I also beg for some patience with my nooby questions. There certainly are tons of resources there which could help me. However if I had that much time then I myself would be an expert on the subject :) Luckily for now it seems all my questions are answered except that I just wonder if disabling one of the CPUs were possible or not :)
[Galaxy S II Original Android Development] smaberg:
Me and some other devs from other forums are looking into this, and hope we can fix that.
[Galaxy S II Original Android Development] mustaka:
Great, that would really be the day. Looking forward to that :)
[Galaxy S II Original Android Development] brendonwardmusic:
So you buy a dualcore phone just to have one core disabled? :confused: lol
[Galaxy S II Original Android Development] smaberg:
Well, only to be applied when need for extra juice is needed.

Like lets say, your gonna go camping over weekend, you would need that extra batterylife... lets disable one core, let step down cpu to 800zmhz and we will save lots of battery....
[Galaxy S II Original Android Development] Stwzzz:
Do anyone know if it Would be possible to get the sixaxis controller from http://www.dancingpixelstudios.com/sixaxiscontroller/about.html to work with this rom?

I tried the sixaxis compability checker and it says its something wrong with the bluetooth protocol.

It Would be awesome if it was possible.

Cheers
[Galaxy S II Original Android Development] thanksgiving60:
so he can afford a high end mobile phone but not an extra battery? :confused::confused::confused:
[Galaxy S II Original Android Development] 02ranger:
That would be pretty awesome. Of course your whole ROM is great. I think I can safely say I'm a smaberg convert now. :)
[Galaxy S II Original Android Development] brendonwardmusic:
I can understand that, I can't see too much difference in battery life having one disabled.
[Galaxy S II Original Android Development] 02ranger:
I don't know about the other guy, but I personally don't want to have to carry an extra battery. I'm a man so I don't carry a purse, and I'm not gonna carry a man-purse, so pocket space is limited for me. If anybody wants to carry an extra battery that's fine, but I'd rather conserve juice every way I can.
[Galaxy S II Original Android Development] mustaka:
No. I just can't afford carrying extra batteries in my pockets defeating the purpose of having the thinnest and lightest device in the first place. Wouldn't it be nice to have a device having both best cpu and best battery performances with just a tiny adjustment? Anyways, this is a matter of personal preference.
[Galaxy S II Original Android Development] smaberg:
More new mods in page 1...

Here they are
[Galaxy S II Original Android Development] hausmanis:
well were here cause were battery freaks arent we ? more mods that can possibly save even more battery is ALWAYS welcome, looking forward to hearing more about that mod to disable 1 core !
[Galaxy S II Original Android Development] mustaka:
You can't see because you haven't looked yet. That depends on how frequently the second core is used, and honestly, I have no idea. It is just possible it may be used more than necessary, more frequently than desired. Though optimization efforts in that area are respectable, it is always safe to assume that no optimization is enough. Furthermore, there will be no need for that when we can find a way to disable it, meanwhile enabling you and me to see whether there is a significant difference or not, though that also depends on personal view.
[Galaxy S II Original Android Development] ncai97o:
I have installed Touch X-power+ 2.1 and everything is fine except for one thing. The "Notes" application is missing! Does anyone know where can I find it and how to restore it?
[Galaxy S II Original Android Development] brendonwardmusic:
You can download the missing apps here.

http://xdafiles.net/smaberg/mods/CWM_X-POWER+_XXKI3_2.0_Removed_apps.zip

Once downloaded extract the files, find the notes apk file and push it to your phone and install.
[Galaxy S II Original Android Development] spookyx:
I've made a breakthrough regarding modem.

So far the lesser battery drain I get with KG6. With All the others I have 7-8% or more of drain in idle per hour. KG6 drains about 2...3%/hour.

I still have several other to test.
[Galaxy S II Original Android Development] alcurtis93:
Thanks :)
[Galaxy S II Original Android Development] mariosraptor:
hi. i just flashed xxki3 from first post. fully wiped everything.

I am getting wifi error. any ideas?

EDIT. rebooted twice and it is working. but what was the problem and what is preventing from happening again. thanks.
[Galaxy S II Original Android Development] brendonwardmusic:
I know its basics, but did you wipe data&cache and the dalvik cache?
[Galaxy S II Original Android Development] hausmanis:
Appriciate your sharing that information, i doubt it will be the same for me here in Sweden but its worth trying KG6 again then, Thanks!
[Galaxy S II Original Android Development] ncai97o:
Thanks for advice, but no result! I've extracted the "memo.apk" file to the phone and after that I've tried to install it but everytime I try it says "the app was not installed".
[Galaxy S II Original Android Development] brendonwardmusic:
Okay, flash the whole zip file thru CWM, then remove the apps you don't want.
[Galaxy S II Original Android Development] BobbySteel:
Hm, just loaded this on a fresh new SGS2. Works great EXCEPT still seeing the battery charged notification with no way of getting rid of it. Is anyone else seeing this on 2.1?
[Galaxy S II Original Android Development] brendonwardmusic:
Never had that before, clear cache and dalvik cache.
[Galaxy S II Original Android Development] bervin:
I just wanna say for anyone whose on the fence for the KG5 rom it's really amazing using it with latest siyah kernel 1.7.8, i didnt tweak with any scripts and just used gemini app manager to block autorun of samsung apps and email clients i can get 24hrs with heav usage. THANKS SMABERG!!!
[Galaxy S II Original Android Development] GSBS:
Thank you for introducing the gemini app man. It's very useful but i don't know it before :D
[Galaxy S II Original Android Development] brendonwardmusic:
Its all lies unless you have screenies!!! Lol XD
[Galaxy S II Original Android Development] zipolly:
phone freezing

I have installed the 2.1 rom yesterday and performed dalvik wipe after also installed graphics fix then dalvik wipe but i have had around 3-4 total freezes whilst using the phone and had to pull the battery or long press on power button to reset phone ..... any ideas ?

ps i also performed a full data wipe before installation
[Galaxy S II Original Android Development] alcurtis93:
Update kernel to siyah 1.7.8
[Galaxy S II Original Android Development] smaberg:
Yes, like he said, update kernel. Then always after flashing anything reboot atleast twice...
[Galaxy S II Original Android Development] zipolly:
According to my phone im on 1.7.8 which was the kernel which came with rom 2.1 or am i missing something here ?
[Galaxy S II Original Android Development] smaberg:
Almost, its a pre 1.7.8
[Galaxy S II Original Android Development] hausmanis:
The dual core script would surely help some for battery life but what REALY would make a difference what i think is if dev´s could modify the radio/modem files, for example me im trying out the battery of the KG5 rom now undervolted and ect, today i realy had **** batterylife but i know for sure that dosnt depend on the rom, but on my bad modem, im gonna switch modem for tomorrow and im sure im gonna get double batterylife atleast there is probably alot of tweaks that skilled coders can do in them ?

Talking about modems, does anyone know how i can extract only the modem file from someone elses phone ? i got a friend who got a modem in his sgs2 named KDJ but this KDJ version is specialy designed for our network beeing "3", how do i extract that modem so i can use it in my phone ?

Oh and btw, anyone compared the 2,1 rom to the KG5 one in terms of batterylife, sofar it actually feels like i had alot better with the 2.1 rom but then again to be 100% sure im gonna test KG5 with another modem tomorrow
[Galaxy S II Original Android Development] mustaka:
First, you can't know that unless you manage to actually do it and see the result.

Second, I also happen to have an Omnia II which have a discharge duration of nearly 5 days. Now, both my phones have close display specs. Both are from Samsung. One is Super AMOLED, the other Super AMOLED+, same resolution, one being slightly smaller than other. Omnia 2 runs at 800MHz. So I underclocked i9100 to 800MHz as well. Same usage, no gaming at all, no internet browsing, no video, to ensure minimal or no GPU usage. But then why does my shiny latest high tech device requires recharge nearly 3 times more frequently than the old one? The only remaining major culprit is the second core, and no other factors, even you sum them up, can justify the difference.

No reason to worry, since if devs knew a way, they would do that until now a hundred times over. It seems there is not enough technical data at hand to be able to do that, in which case there is not much except waiting for further revelations from the heavens. The other way seems too costly, that is, reverse engineering both sofware and hardware. On the other hand, how seriously devs follow the subject does depend on the level of expectation of the masses, I suppose. I just wanted to show my interest, and light the fire in the hearts of the unaware :)

Now to the modems. You have many options there to try, installing via CWM recovery. You may start with the below link:

http://xdaforums.com/showpost.php?p=17967764&postcount=5

Edit: corrected the link
[Galaxy S II Original Android Development] hausmanis:
I know about that post thx anyways and i tried most of them, the problem is that my phone company modifies theire modem files, tweaks them to suit theire net
[Galaxy S II Original Android Development] mustaka:
Please do tell us the result of your comparison of KI3 ROM to the new KG5. I also suspect that KI3 may be slightly better than KG5 in terms of battery performance.
[Galaxy S II Original Android Development] sam911x:
Hi guys, i am trying the new KG5 POWERSAVE ROM but i am facing one problem whenever i go in the Jkay Delux Settings it gives me an error "Delux theme has expired Not all setting will work, please install delux theme v11" any ideas how to get rid of these?
[Galaxy S II Original Android Development] mustaka:
I installed one of the JKay themes for KG5 from the link:

http://www.mediafire.com/?r1wqcn3u36s60

And the message was gone. I think smaberg didn't put the correct theme version in his ROM :)

To see how to do that, refer to:

http://xdaforums.com/showthread.php?t=1154278

---------- Post added at 02:27 PM ---------- Previous post was at 02:04 PM ----------

I checked that purely out of curiosity, and found out that CWM backups don't include modem files. Then checked to see how it writes modem files, and found the following command in the script file:

write_raw_image("/tmp/modem.bin", "/dev/block/mmcblk0p8")

Where does it write this image in the partition is a mystery. Besides, even if we knew that, there is no command like read_raw_image. Maybe simply there is no known way to extract it.

The only other alternative I can suggest is to somehow find the vendor ROM (which your friend currently has in his device) in tar format and extract the modem.bin from it. Then you can put it in a CWM flashable zip (you can modify an existing modem zip file) and flash it from recovery menu.
[Galaxy S II Original Android Development] dexter.:
Don't install it. Copy it to the /system/app folder.
[Galaxy S II Original Android Development] hausmanis:
Well i installeed cause it wall said it was better battery wise but sofar everything pontiac tog the opposite not quito donen testing yet

tho
[Galaxy S II Original Android Development] brendonwardmusic:
You should atleast do 2 full battery charges.
[Galaxy S II Original Android Development] goofy584:
I get at least one crash (automatic reboot) per day :(

this is not very funny when you are in a phone call, street navigation ....

:mad:

Classic installation (full wipe) without problems of touch-x-power + sp1
[Galaxy S II Original Android Development] mustaka:
Problem with which ROM? KG5? I have no problems with it. In fact none with any. Perhaps you have a conflicting, or an incompatible, or a buggy app installed. An app working with a ROM without any problems may cause problems with another. Of course there always is the possibility of a hardware problem, in which case problems should occur with any ROM.
[Galaxy S II Original Android Development] sam911x:
Can someone plz upload the default live wallpapers? and smaberg could you please fix the theme issue in Jkay Delux Settings in your KG5 POWERSAVE ROM 1.0

Thanks.
[Galaxy S II Original Android Development] kartalgurhan:
Well, I've tested each ROM for 2 days. Using ki3 it's the first time since I bought the phone on June 17th, I could see the battery lasting for 25 hours with heavy usage (2.5 hrs call, 2 hrs internet, 2 nonstop push email accounts, 30+ sms, 7 hrs deep sleep)

Running 2.1 ki3 with siyah 1.7.8., kg2 modem. See my signature for other details. Kg5 didn't fit....

This is amazing, thank you smaberg & gokhanmoral
[Galaxy S II Original Android Development] hausmanis:
what do you mean with kg5 didht fit ?
[Galaxy S II Original Android Development] sam911x:
In terms of battery life KG5 rom is awesome mine depleting 1% in 4 hours whereas in others mine depleting 1% in every 1 hour.So this Kg5 rom is a proably the best rom for me only few thing i am missing is the default live wallpapers(Anyone knows where to get?) and the jkay delux setting theme error which is not letting me change the lockscreen wallpaper or turn it transparent altogeather.I will test this rom under heavy usage and let u guys know the battery result.
[Galaxy S II Original Android Development] bervin:
My swype keyboard doesn't offer me the option to save new words with kg5 rom, does anyone else experience this? I froze samsung keyboard anyway cause it was always running in the background via gemini app manager and I don't use it, I tried unfreezing it but that didn't help my problem with swype
[Galaxy S II Original Android Development] vil-2:
Here is my result, Touch X POWER 2.0 modem KI1

That was a light usage : 10-20 SMS/day, some Maps navigation, no auto sync for emails. I guess I'll try the KG5 ROM and see if it's better.
[Galaxy S II Original Android Development] kartalgurhan:
I meant, KG5 ROM for me wasn't as battery-friendly as Touch KI3 ROM.
[Galaxy S II Original Android Development] mustaka:
I will try exactly the same, tesekkurler :)
[Galaxy S II Original Android Development] bervin:
Can someone please help me with my swype, its getting very frustrating to type with my swype since it doesn't save my new words or use the ones that i have saved from before.
[Galaxy S II Original Android Development] vil-2:
Sorry mate, my Swype can save new words are you sure you did not mess with the options?

Just installed KG5, first pjhone crash, have to reboot. Phone is quite hot too. Installed with full wipe btw.
[Galaxy S II Original Android Development] hausmanis:
Alright thanks, i got the same results, i have now fully charged and discharged it three times and sofar i got 5,40H on the phone since plugged from charger and 92% battery, had data off the entire time, only wifi enabled short time where i synced my mail checked 2 hockey sites and then wifi off again. Not bad...but not that super eighter with my UV settings, always dark screen ect

Btw to check that everything is ok with my rom, dunno whats the english word but as i type this im looking in the ap "wheres my droid power" and only thing higher than 1% is "statusfält" witch is 25% is this normal? and what is it ?

EDIT: Forgot to say that the phone was in 100mhz and deepsleep most of the time, so nothing strange there

(I am using the reTOUCHED kernel atm, will test with latest Siyah also maybe its the reTOUCHED that is causing it to not be better than 2.3.5 rom)
[Galaxy S II Original Android Development] vil-2:
Is it recommended to install SetCPU and set some profiles for UV/UC with KG5? Or are there some scripts for that?