yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] red.hat:
You will need to use init.d scripts for this. Droidphile has a great write up on this if you want to read up on it. A link is provided. To avoid making a mistake or doing damage to your phone, I suggest testing is out with Siyah's extweaks ( if you are using his kernel or voltage control). If you have a stable UV settings then you can go ahead and make it permennat using initi.d script.

Sample Script here

#!/sbin/busybox sh

#No of values echoed to freq table and uvmv table should match the no of steps in your kernel
echo "1600 1400 1200 1000 800 500 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/freq_table
echo "1425 1325 1275 1175 1075 975 950 950"> /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "200" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

Make sure you know the number of steps you have availiable in your kernel (if you have root explorer you can view the steps in/sys/devices/sytems.cpu/cpu0/cpufreq/freq_table). Once you have determined the steps follow instructions above and the copy and place in init.d folder. A safe way is to use script manager and the test the code to make sure it is safe. More information avaliable on droidphile's post at the beginning of this thread or read below.
[Galaxy S II General] Biftor:
Thanks thanks...

But one thing about name of scripts I dont know name of script for UV

Its free to choose everythings????

Edit:

My kernel is jeboo this kernel support init.d scripts but I no support UV or OV

Any ideas for this??
[Galaxy S II General] red.hat:
When creating a script you can name it whatever it is you want to call it, just as long as there isn't a conflict with any there script in the init.d folder. You could name it MyUV or UnderVolt.

You will need to make sure the kernel supports UV as you don't want to damage your phone. Can you check with kernel OP regarding UV. You can try downloading voltage control app to see if you can UV your phone (this is relatively as it won' set UV at boot up but after words to avoid bootloops).
[Galaxy S II General] Biftor:
Thans, I know that

My kernel is not supported UV I thought I can change voltage by init.d script

Sent from my GT-I9100
[Galaxy S II General] red.hat:
Where is Manny40? Is he on vacation
[Galaxy S II General] Many40:
Yes, unfortunately I'm visiting my family for Christmas and New Year's time, so hardly follow what is going on my subscribed threads. However despite free time I'm not gonna make any special configs for new Siyah as long as Gokhan doesn't release his final version of Siyah 6. It's beta testing still as you probably know.

Take care

Regards

Edit: I roughly red you previous posts (answers) concerning init.d scripts - are great, however I'm aware that there are some differences between current Siyah kernel and old-good tweaks by droidphille so think some of the scripts will not work (different directories for example). Will try to keep an eye more often here. Sorry :o
[Galaxy S II General] It_ler:
Have a nice time with your family.

And happy new year !
[Galaxy S II General] Many40:
Thanks mate and the same to you. Btw you are everywhere, almost like bobdoblo:D
[Galaxy S II General] red.hat:
Thanx for the info. Since I have switched to S3 not upto date with Siyah Kernel updates. I will read his commits and post and make adequate suggestions.

Have a great time with your family. May the new year bring you happiness and joy (also a S3 or S4 or whichever comes first)
[Galaxy S II General] jorg3acg:
thanks for siyah confi... :)
[Galaxy S II General] It_ler:
For those who are interested in kernel/stock ROM test results:

I have just tested SiyahKernel v6.0b4 on my XXLSJ NeatROM lIte v4.0 and have best battery life with this combination so far => http://xdaforums.com/showthread.php?p=26775950

Now I only need a trick to get my stock Video Player work when started directly (it works fine when started via Gallery app, but has FCs when started directly).

Tried wiping cache, Dalvik cache and fixing permissions in recovery ... no luck.

Tried to uninstall Adobe FashPlayer and re-installed it ... no luck.

Any other ideas? (Some users have no FCs for stock Video Player even on same kernel/ROM combo.)
[Galaxy S II General] AcidSubway:
:rolleyes:
[Galaxy S II General] Many40:
Thanks. I'm suffering the same. Trying many things without success. Gonna catch a logcat and see maybe find something (if I'm able to understand anything from there :)) If not me or electricsheepdreamer will post logcat on Siyah thread asking GM for investigation.

Regards
[Galaxy S II General] THE RED BLUR:
There is an issue for sure why can't it just work without obstacles.

And hopefully a logcat or someone with the knowledge can figure it out for sure :):thumbup:

But for now if you need it to work the full format installation is the only way to solve it as Bobdoblo confirmed for me as he like you suffered the same issue until he did this. :)

SIGNATURE

PHONE : SGSII

Sent via: Tapatalk 2

Main ROM: NeatRom Lite 4.0

KERNEL : Siyah v6.0b4 tar test version

(DEFAULT PROFILE AND SETTINGS but pegasusq And sio applied via SetCPU)

MODEM : BVLP7

BATTERY : Stock 1650mAh

EXTERNAL Sdcard : Samsung Class 10 32gb

LAUNCHER : Apex

Guide to install Siyah on Ljs and tools to have a bug free rom = http://xdaforums.com/showthread.php?p=35923600
[Galaxy S II General] electricsheepdreamer:
It seems that it doesn't break on Neatlite and Disaster rom after full nuke wipe but it does on NeatFull.

I tried to implement build.props and init.d from Lite to Full but still the same.

Should we record some logcats is there anyone who could check them?

@ Many40

I still didn't record one because I'm trying to narrow the focus especially after GM commented that he can't handle what's in our non-stock roms. And I believe he knows what is saying. (at least for the major part)

BTW, I formated every single 0&1 in my phone but still videoplayer breaks with NeatFull.

There's an app Logcat Extreme pro if I can remember and would recommend it. Costs about 1$ but you can narrow the logcat with it and always record as 'verbose'.

What do you say people?

What's the plan?

Regards.
[Galaxy S II General] It_ler:
You can post your logcats in my kernel/stock ROM test thread.

I will have a look at them, although I am not an expert for analyzing logcats.

But I don't want to "clutter" other threads with our "special" issue ;)
[Galaxy S II General] electricsheepdreamer:
I agree :thumbup:

I'll try to do it tonight and upload it by the morning. I'll try to aim as best I can.

Thanks, man. I hope they will be interesting read with morning coffee.

I'll try to read and google them myself but it's New Year's day coming and I expect some guests so I don't know how much useful will I be.

Regards, my friend;)
[Galaxy S II General] megadisc:
will wait for your update tehen
[Galaxy S II General] henryscy:
Can someone re upload this VRok_UHLPS_SmsMods.zip ? Seems like all the links are down :D
[Galaxy S II General] red.hat:
* To all my friends, I wish you all a happy and prosperous New Year. May 2013 bring everyone and their family happiness, joy and peace. *
[Galaxy S II General] jj_95nano:
After 26hrs you lost only 11%? That's hard to believe, screenshots please :D

Sent from my Bathtub using bubbles
[Galaxy S II General] Biftor:
Hi all and Happy new year

pls see my script

#!/system/bin/sh

echo "1600 1500 1400 1300 1200 1100 1000 900 800 700 600 500 400 300 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/freq_table
echo "1288 1263 1238 1200 1175 1150 1100 1025 975 950 925 900 900 900 850 825"> /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "100000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "sio" > /sys/block/mmcblk0/queue/scheduler
echo "70" > /sys/module/pm_hotplug/parameters/loadh
echo "25" > /sys/module/pm_hotplug/parameters/loadl
echo "200" > /sys/module/pm_hotplug/parameters/rate
sleep 30
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

is it ok?with no problem?

and how can i add GPU Ferq and Voltage?

i am using siyah kernel b4

in stweak i cant sett this parameter on the boot!

attached my script for tweak pls help me!

thanks

Armin.
[Galaxy S II General] Biftor:
i change my tweaks but i dont know why my Gov and "sio" > /sys/block/mmcblk0/queue/scheduler

is not change after execute in reboot!after this i change my script add again in end of my scripit but i got same result!

is it bug of siyah?

see my work:http://d-h.st/o8U

and how can i add Gpu ferq and voltage?

helpe me

thanks

Armin.
[Galaxy S II General] Many40:
Hi,

Sorry I didn't answer you aerlier but has been quite busy with "non-xda" things but better later than never :)

Here are my remarks to your posts:

1. In my phone everything is stored properly from STweaks app except governor and I/O scheduler. Other settings available in STweaks are saved after reboot properly so there is no need for init.d script for them (for example CPU scaling frequencies, voltages, GPU freq steps, voltages etc etc.

2. I found out that using this command (given by GM for testing) will solve the problem with settings which are not saved properly after reboot (tested and works):

#!/system/bin/sh
su
sleep 45
/res/uci.sh apply

However if you insist to have all parameters set by init.d script, here is what I found out so far:

1. freq_step - this subfolder doesn't exist in "/sys/devices/system/cpu/cpu0/cpufreq/" folder, so I think it's not available (there is no interface in the kernel available to tweak it). Most likely CPU freq steps are fixed by GM (like it is in Siyah 5.0.1) and you can only tweak max/min scaling frequency using commands from your script.

2. CPU voltages: by the command from your script you will not be able to change CPU voltages (this is the way which was valid for older versions of Siyah kernel). For current one I haven't found out yet a proper command (don't know if this is even available to tweak by init.d script)

3. GPU steps/voltages (similar situation to CPU voltages): don't know if there is any interface available in the kernel to tweak them by init.d script

4. Hotplug and virtual memory tweaks: your script will work with proposed commands.

5. Governor and scheduler: I'm using this script and it works for me:

#!/system/bin/sh
su
sleep 45
echo "pegasusq" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "sio" > /sys/block/mmcblk0/queue/scheduler

Summarising, I thing currently the way I recommend for Siyah6b4 kernel tweaking is:

- for all parameters available from STweaks use this app and apply init.d script from para 1

- for all other tweaks like hotpluging, vm etc - use init.d script's commands
[Galaxy S II General] epistimonic:
Hello, nice threat but at my opinion very confusing to people that don't know much yet. :)

I didn't read though a post saying about optimization for better battery in simple words. Like the very first post of this thread. Without scripts, without flashing through CWM.

So please, to refresh a bit can you please post a nice simple Optimization for lets say the latest Siyah Kernel v5.0.1?

---------- Post added at 04:36 AM ---------- Previous post was at 04:11 AM ----------

Where is that siyah folder? :(
[Galaxy S II General] Many40:
You will see this folder if you boot to second rom (otherwise you will see identical folder but belonging to 1st rom). As I wrote to you: it's here "/data/.siyah" (see screenshot). You need to have a file explorer able to do so eg. root explorer or ES file explorer etc.
[Galaxy S II General] epistimonic:
Thank you for your fast reply. I am using also the same file explorer. mine is /sdcard/.. but no .siyah folder is anywhere. I did a search. Weird hah?

P.S. i am not on dual boot yet
[Galaxy S II General] Many40:
"/" - this is root folder in your phone. To go to "/data" from "/sdcard" you have to go step up to "/" an then step down to "/data". You need to enable "root settings" in your file explorer settings to do so. Now I need to sleep, it's 4 a.m. here. See you later.
[Galaxy S II General] epistimonic:
Hah, you see? Another thing I learned today :)

Thank you very much for your whole help today. I really appreciate it!

Goodnight!!
[Galaxy S II General] iamflamez:
I'm so impressed with manys advice I'm using jb neat Rom and siyah 6. Everything set to push and playing YouTube and games data on all day. my phone got 5 hours screen time easy.
[Galaxy S II General] parag1dubey:
Many40, will you be posting your battery friendly config with siya 6 b4 on this thread? I got great results with your Philz config sir. Thank you :)
[Galaxy S II General] lixboi:
mplackesvector

Thank u, I'm trying this :D :D:D
[Galaxy S II General] Many40:
In OP (first post) there are some general tips for Siyah. You can try them. However I prepare for every Neatrom+Siyah combos "special", easy to use packeges of tweaks (script as flashable zip files + some advices for manual tweaks). Next will be done soon for Neatrom 4.0 + Siyah 6 but it's not ready yet. It will be posted here and available also from the link in my signature. Regards
[Galaxy S II General] red.hat:
Here are tbe general tips Manny spoke of. I have this on my S3 thread and it has helped a few(I think it has very feedback from people). You can combine it with Manny's tweaks and see if you can get more battery life. Please share your findings.

Battery Saving Tips

1. The screen causes excessive battery drain. You will need to reduce your screen brightness to about 30-40% instead of being at automatic.

2. Disable hepatic feedback

3. Use a dark back ground. Using a live wall paper wil also drain your battery

4. Turn WiFi off

5. GPS or location by network off ( use GPS only when needed)

6. There are other factors that affect battery consumption on your phone, these includes AutoSync Mail, apps like facebook, Whatsapp, Google + and Maps. You can disable auto sync feature for your gmail or get a better email app. Autostarts App can be used to disabe certain apps from autostarting. Cautiously disable apps, if in doubt don't touch it.

To get an idea of what is causing battery drain (Wakelocks), I suggest downloading Better Battery from the play store (Paid app) and view a dumpfile after 1-4 hours of your phone on idle. Once you have BBS you can determine what you want to disable or enable. If you need additional help reading the file you can head over to BBS thread (http://xdaforums.com/showthread.php?t=1179809)

How to use Autostarts

Once you have this app, you can prevent some of the programs/operations from auto starting even when not in use.

Select the meu option and choose group by application

You can go down the list of apps and disable the notorious apps that you find running during auto starts (Maps, Google+, Facebook, Whatsapp). Here is Karpfenhai's example of how to disable Maps.

I have also disabled apps that auto start when connection changes, power disconnections. Disable apps or background operations can be enabled anytime.

Please note, some might cause havoc when disable do this with caution.
[Galaxy S II General] Many40:
Hi,

You uploaded recently your scripts to Neatrom thread however you didn't consider what I adviced you here:

I found out (from GM post on Siyah kernel thread) how to change some parameters you asked for: CPU voltages, GPU frequencies/voltages. With the following commands you can prepare a working script (if you want of course:)):

1. CPU voltages:

/res/uci.sh generic CPU_VOLT_100 800000

Remark: you need this command for every frequency/voltage (frequency is in MHz / voltage in uV) eg for 1100MHz would be "CPU_VOLT_1100 1200000"

2. GPU frequencies:

/res/uci.sh generic GPUFREQ1 66

Remark: the same way for GPUFREQ2, 3 - 5

3. GPU voltages:

/res/uci.sh generic GPUVOLT1 850

Remark: the same way for GPUVOLT2, 3 - 5

Hope helped.

Regards
[Galaxy S II General] NoRulesForMe:
I'm waiting for this "Special"

hope i'ts not that hard to follow the instruction how to do it :) :highfive:

I'm slow >_< :angel: sorry
[Galaxy S II General] iamflamez:
I never done it before, but I like to learn.

I have flashed your script for Pegasus, can I just copy this code into that script or better to make a separate file?
[Galaxy S II General] red.hat:
You actually copy of or shall say add it to Manny's (Don't include the header as that is already included in the original script) code in the current init.d folder. Make sure you don't change the permission.
[Galaxy S II General] Many40:
OK let's go I like if someone chooses more chalienging way to achieve a goal :)

1. Download and install on PC, Notepad++ text editor from here:

Notepad++ Installer

2. Important is that line endings are not DOS/Windows but LINUX style, so go to "settings>preferences>New document/Default directory>Format and check "Unix". Then open new document (make sure in the bottom/right of the app is depicted "UNIX"

3. Create in the editor a new text file and paste the code (make sure you have no spaces at the end of each line.

4. Save the file (without any file extensions eg .txt) - just pure name.

5. Copy it to the phone to /etc/init.d folder. You can use ES file explorer

(in its settings/root settings 1st three options should be checked)

6. Set permissions of the script (rwx r-x r-x): long press on the file>properties>change then you need to tick checboxes like on the screenshot >OK

7. Reboot the phone

8. Done
[Galaxy S II General] electricsheepdreamer:
Many, I'm speechless.

I remember lurking on XDA long time ago hoping to find stuff what you do right now and I finally found it.
[Galaxy S II General] danirava:
Thanks man! Very good!
[Galaxy S II General] Biftor:
Hi

see my battery life

many40 and all

can I say the best battery life???

http://xdaforums.com/showthread.php?p=36528930

http://xdaforums.com/showthread.php?p=36529110

thanks

Goodluck

Armin
[Galaxy S II General] cnjax:
Do you have a link for your tweaks?

GT-I9100 powered by

NeatRom Lite 4.0

SiyahKernel 6.0b4
[Galaxy S II General] Biftor:
you can download all my tweaks from my signature Biftor™ rom second post....
[Galaxy S II General] electricsheepdreamer:
No, you can't :)

Thanks.

http://xdaforums.com/showthread.php?p=36508076

P.S. I like that airplane mode with everything turned On idea.
[Galaxy S II General] Biftor:
no mate!

you have same 7 hour 8 min screen on!!!!!but you are using wifi!!

i have more than 7 hours( mor than 7hours 11min)screen one with data connection E( GPRS ) gprs i get more battery life than wifi!!!

i dont have wifi now!!

i think in wifi i have much beter battery life and screen on!

check my screen shots again!

thanks

goodluck!
[Galaxy S II General] electricsheepdreamer:
Don't worry I will but little bit later, kind of busy now.
[Galaxy S II General] kamiar1:
No no!

2G data network always use more battery thqn wifi. I think it consume about 30-40% more battery than wifi.
[Galaxy S II General] red.hat:
Return of Stweaks Profile Saving...

Have you longed for the ability to save your stweaks settings for later use or simply wanted to experiment with different settings while saving them for future reference. If you have thought of such things, you are in luck. Droidphile, created an app that allows you to save your settings as profiles. This is app is still in alpha mode but it does what it says. So head over to his thread to read more about it. http://xdaforums.com/showthread.php?t=2034981
[Galaxy S II General] electricsheepdreamer:
Hi mate,

I can see that you're an enthusiast so allow me just to point you to droidphie's guide, really fine piece of information and good starting point for anyone, no matter if you'll just use your phone or start to develop.

Droidphile's guide

What I meant before is marked with yellow arrows. It shows that your data connection was off so you saved power on radio connection, meaning no 1,2,3 G was on at the time. Which is good if you want to save battery and have no need for a data connection, (like when you go to sleep and don't want to be bothered) but it is not very grateful in terms of battery testing in general.

But all in all, it is a great result and minute here and there is not that important.

Keep on a good work.

Regards.
[Galaxy S II General] electricsheepdreamer:
Well, I'll just quote Droidphile here since I have no better source of information but I believe he is right when he says:

Q. "What're the approximate power consumptions by the device peripherals & activities?"

A.

AMOLED Display: Average - 370mW. Full white background, 1% brightness - 450mW. Full white background, 100% brightness - 960mW. So roughly every percentage of brightness increased accounts to additional 5.2mW. (Now we know why using dark wallpapers and reducing brightness is so important than undervolting).

Illuminated button - 40mW

Led lamp next to camera - 1.3W

Camera - 700mW

Bluetooth and GPS - 110 to 180mW (Really?!)

2G to 3G switching - 800mW for 8 seconds. (This is no h/w component, but we should know)

CPU 1.4 Ghz full load, 100% brightness - 4W+

CPU 1.4 Ghz average - 3.2W

CPU 1.6 Ghz full load - 5.9W (Forget Ocing to 1600mhz)

BLN - 200mW during suspend state opposed to deep sleep 8mW without BLN.

Wifi download - 1.51W

2G download - 1.598W

2G upload - 853mW

3G download - 1.603W

3G upload - 2.136W (Stay away from uploading your videos to youtube via 3G)

You can check the link in the previous post for the whole guide.

BTW, I saw a guy thanked all his posts and wrote him a gratitude letter, I might just do the same now I have XDA premium app:)

Regards.
[Galaxy S II General] kamiar1:
Thanks for you great information. But there must be something wrong, I always have more battery usage in 2G than wifi... maybe in 2G something else works in background or something like that.
[Galaxy S II General] Many40:
And this is in general in line what ESD quoted :) You mostly downloading data than uploading, don't you? If this is true, as ESD wrote, "2G download" drains a little more battery than "WiFi download" (maybe not as much as you experienced but generally more)
[Galaxy S II General] electricsheepdreamer:
That's right Many, and also if you restrict background data when on 2G it will wait until you're on WiFi, I guess.

But anyways, WiFi is faster so it means less time needed for accomplishing the same amount of traffic.

BTW, speaking of battery savings in general, using black background with white icons and theme (such as Crussader's one) and then applying low screen filter gives me the best result without compromising performance. I mean as long as you use the phone for browsing, reading, listening to music and such tasks. And there are inverted apps as well because the screen is the drainer #1.
[Galaxy S II General] SpikeNaples:
Glad to have bumped into this thread. Will give it a go...
[Galaxy S II General] electricsheepdreamer:
Thanks professor, I enjoy it.
[Galaxy S II General] NoRulesForMe:
Thank you for this Many40

This is what you called SUPER SPECIAL :)

Can i flash all of this at the same time mate? just flash,flash,flash,flash,flash?

then reboot?...

after that i don't need to configure or change settings on STweaks or SetCPU(i don't have voltage control :( )??
[Galaxy S II General] Many40:
Yes, you can flash all of them at once, ecxept STweaks profile which you need to extract and replace with the existing one (it's easier than doing everything manually). You don't need VC - it just served for me as CPU monitoring tool (you can use also CPU Spy or other app for that).

Regards