yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] kantjer:
This is what I have changed sofar.

basically core 2 kicks in a bit earlier to solve the micro lags some are still having.

cores 3 and 4 are activated a bit later (core 4 even later than 3 and are also deactivated earlier than default to safe some battery pwr)

For me it feels very smooth.

I'm using a private kernel build with an incompatible profile, I will upload the full profile when the new kernel is released.

hotplug_sampling_rate=60

cpu_up_rate=2

cpu_down_rate=5

hotplug_freq_1_1=1242000

hotplug_freq_2_0=810000

hotplug_freq_2_1=1566000

hotplug_freq_3_0=918000

hotplug_freq_3_1=1674000

hotplug_freq_4_0=1026000

hotplug_load_1_1=60

hotplug_load_2_0=30

hotplug_load_2_1=70

hotplug_load_3_0=35

hotplug_load_3_1=80

hotplug_load_4_0=40
[Galaxy S 4 i9505 Android Development] s3icc0:
pumping it into my phone now :) seems very logical to me ...

anyway i usually use bit more extreme changes for first trial to see what is really happenning and then tweak it to the more conservative values for use.
[Galaxy S 4 i9505 Android Development] kantjer:
LOL, I do it just the other way around. First it's just a tweak theory, it starts mostly when I'm doing something completely different than playing with my phone. Then I start implementing in small steps. Everybody has its methods:highfive:
[Galaxy S 4 i9505 Android Development] kantjer:
Are you sure this is correct, "scaling_min_suspend_freq=702000"

That looks like a bit of a battery drainer.
[Galaxy S 4 i9505 Android Development] Lucius1972:
Hi kantjer,

Yes it's correct, if i'm going lower i get SODS with ZEN I/O.

Edit: Seems high for a minimum but it has it's purpose ?
[Galaxy S 4 i9505 Android Development] mrbmg:
I too am on TW. Have you cycled an extreme battery profile yet?
[Galaxy S 4 i9505 Android Development] kantjer:
For those still having a lag at screen on, I received a PM from [MENTION=4899086]alucard_24[/MENTION] with this tip.

Give it a try.
[Galaxy S 4 i9505 Android Development] kantjer:
To all my settings tweaker friends.

Found a nice app to check what our tweaks are doing in real life.

System Monitor
[Galaxy S 4 i9505 Android Development] Lucius1972:
TIP: enable floating monitor in settings to observe realtime CPU/Core usage ;)

Already using it a long time to observe my tweaks and it's indeed a good one!
[Galaxy S 4 i9505 Android Development] Jsilver73:
Yep, I noticed the lag with screen on this morning and these tweaks completely solve the issue for me :)
[Galaxy S 4 i9505 Android Development] HaTrED_:
Just to ensure I'm doing it right:

- cpu hot plugging awake tab - last parameter

- cpu tab - scaling max on call freq

Gonna try it!
[Galaxy S 4 i9505 Android Development] Jsilver73:
I use CPU stats - it's free! It puts live simple info about which cores are on or off in your status bar, no high overhead either ;)
[Galaxy S 4 i9505 Android Development] eongab:
i guess thats it coz that's what i just did.
[Galaxy S 4 i9505 Android Development] pitastrudl:
[MENTION=5528810]Jimsilver73[/MENTION] in instructions it says put in /system/data/.alucard, but there is no /data directory in /system, but its in the root directory of /data. Is it a typo or am i missing something?
[Galaxy S 4 i9505 Android Development] eongab:
you're doing it right buddy.
[Galaxy S 4 i9505 Android Development] kantjer:
It's /data/.alucard

I'm not having my phone here, but this is what I remember :fingers-crossed:
[Galaxy S 4 i9505 Android Development] pitastrudl:
Yeah I know the cfg files are in /data/.alucard, but just to avoid confusion I posted, since not everyone knows where the folder is and might get lost in the instructions
[Galaxy S 4 i9505 Android Development] HaTrED_:
Doesn't solve the screen lag... :(

It's a bit quicker, almost not noticed, but the lag still there!
[Galaxy S 4 i9505 Android Development] kantjer:
Wait for the new kernel to be released then and try again.
[Galaxy S 4 i9505 Android Development] Jsilver73:
Yep - typo, like I said WIP, thank you for spotting it, will sort it out now.
[Galaxy S 4 i9505 Android Development] Jsilver73:
To all who are interested in submitting profiles:

I have just edited the instructions in post #2 and now ask that when you submit a new profile to upload please simply list only the changes you have made in txt format alongside your default profile to be used. This just makes things simpler as it was taking a bit of time to mark all changes in red in the op :(

[MENTION=2556991]Lucius1972[/MENTION] I have now marked the changes in your profile in red as promised :)

Many thanks
[Galaxy S 4 i9505 Android Development] djmik21:
Hey guys i am using latest aosp kernel with kantjer's hotplug settings(only) and some minor changes and min and max freqs(also included Alucard fix for calls). Everything else is stock battery profile(same as default). It seems really fast and stable. I will post my battery life when my cycle completes. Thank you to everyone involved.
[Galaxy S 4 i9505 Android Development] kantjer:
Hi guys,

Just had an idea to generate a html file with the differences between default and modified automatically using a program called "Beyond Compare"

This is much easier and more reliable than doing it manually. What do you think :fingers-crossed:

And which version is more useful "All" or "Differences"

Profile Compare All

Profile Compare Differences
[Galaxy S 4 i9505 Android Development] djmik21:
This is great. I think differences is a cleaner solution.
[Galaxy S 4 i9505 Android Development] Jsilver73:
I like the compare differences version, I think that works very well, please let us know how to use it and I will add it to the instructions, thanks kantjer :)
[Galaxy S 4 i9505 Android Development] kantjer:
Beyond Compare is a paid program, not the best solution for all.

I'm trying a few opensource programs that can do something similar. All I found can only do a full comparison report and not a differences only one.

I will post a howto when I'm done.

---------- Post added at 01:24 PM ---------- Previous post was at 12:32 PM ----------

For now I suggest we use WinMerge. It’s free and Open Source.

The only disadvantage is that it can’t generate a differences only report.

Download WinMerge from here and install.

Copy both the default.profile and the default.profile_backup on your local disk

You can always download the default.profile from here, make sure the default.profile is from the same date/version as your kernel. If you need an older one use the history button (top left), go to the desired date and select "Browse code"

Now open WinMerge, open default.profile and default.profile_backup using the Open icon, second from the left.

Tools=> Generate Report and save.

Copy the saved .html to DropBox or similar and post the link.

The output should be like this
[Galaxy S 4 i9505 Android Development] djmik21:
Okay i am going first. I use this profile:

https://www.dropbox.com/s/39jvg49c6cldwwb/default.profile_backup

The differences are:

https://www.dropbox.com/s/d4g3yd3fnkjpmw7/report.htm

The phone is REALLY fast and responsive so expect a little draining when used but it sleeps like a baby. A good reccomendation is using NOOP sheduler for sleep like kantjer which is more battery minded. I personally prefer the default setting.

As you will see i use alucard's fix for phone calls, kantjer's hotplugging settings and my own min max settings for freqs. The standby_freq is for media player stuttering which for me works fine. I will come back with BBS stats when i finish a cycle because last night i had a massive wakelock of dropbox uploading pictures(300 of them :) from my holiday trip.

Thank you to everyone involved, especially alucard24 for his great kernel. The reason i love this kernel is when i open CPU states it's the only kernel that homogenously uses all the states instead of jumping from min to max freqs.
[Galaxy S 4 i9505 Android Development] HaTrED_:
I've been using/experimenting [MENTION=3306843]kantjer[/MENTION] hotplugging settings and they seem very good... :good:
[Galaxy S 4 i9505 Android Development] kantjer:
Looks good but you used an other default.profile version than you're kernel version.

You probably picket the most recent from the git, if you use for example V2.6.6f dated 21/04 you should use this one
[Galaxy S 4 i9505 Android Development] s3icc0:
exactly same reason here :)
[Galaxy S 4 i9505 Android Development] djmik21:
But how did you know that? :fingers-crossed:

Sorry guys heres the report:

https://www.dropbox.com/s/oceteoqpeicprau/report2.htm
[Galaxy S 4 i9505 Android Development] kantjer:
I'm still tweaking them, I will update the profile when I'm happy with the settings.

Still WIP but this is what I'm using ATM.

hotplug_load_1_1=65

hotplug_load_2_0=30

hotplug_load_2_1=72

hotplug_load_3_0=37

hotplug_load_3_1=78

hotplug_load_4_0=43

EDIT: post #7 updated with my current profile
[Galaxy S 4 i9505 Android Development] fedef12evo:
what it best I/O scheduler for performance?
[Galaxy S 4 i9505 Android Development] kantjer:
Look here post #4

The overview is not complete but it gives you an idea.
[Galaxy S 4 i9505 Android Development] s3icc0:
also depends what type of performance you need ... as there are two types of operations - READ and WRITE ... each I/O scheduler focuses different way ..

here some refference:

http://xdaforums.com/showpost.php?p=23616564&postcount=4
[Galaxy S 4 i9505 Android Development] fedef12evo:
just trying different settings, using simple gpu governor increase antutu score by 1k lolz, (3d score)
[Galaxy S 4 i9505 Android Development] pitastrudl:
It has come to my attention that the profile backed up by stweaks has different permissions. The reason why is because when I backup my profile the permission looks like this:

But when I copy a downloaded profile and rename it, it has the same permission as the one above. Why did I notice this? I did this:

1.Change my CPU freq to 128000

2.saved changes

3.replaced my defualt backup profile with kantjer's

4. restored from stweaks

And when the app restarts the CPU freq stays at 128000 which is wierd. Now im questioning myself if the tweaks got applied everywhere else or the permissions are restraining it to do so.

Any insight on this?
[Galaxy S 4 i9505 Android Development] fedef12evo:
i tried to make a performance profile but im very bad lol anyone that can do a performance profile also good for benchmark? :silly:
[Galaxy S 4 i9505 Android Development] FlanjeUK:
Here goes, since at least one person is interested...

I want to share my own (AOSP) profile, it's a performance based profile but it's only slightly modified from default as this kernel already performs very well before you even open Stweaks (as we all know ;))

Here are the modified settings:

scaling_max_oncall_freq=1134000

hotplug_sampling_rate=50

hotplug_load_1_1=60

maxcoreslimit_sleep=2

governor=simple

dvfs_min_touch_limit=1242000

internal_iosched=row

sd_iosched=row

internal_iosched_sleep=noop

sd_iosched_sleep=noop

force_fast_charge=1 (optional)

Dyn_fsync_active=1 (optional)

Download Profile
[Galaxy S 4 i9505 Android Development] sn0wman1:
Hi. I'm using Alucard on touchwiz but am only using the default profile. Battery is not too good for me. I have tried battery profile but no change really.. In reality should I be able to use a profile thats used on aosp or ge rom.

Thanks
[Galaxy S 4 i9505 Android Development] kantjer:
You can use any profile you like. But remember that a TW ROM isn't as light as ASOP so you might need to tweak it a bit.
[Galaxy S 4 i9505 Android Development] sn0wman1:
OK. Thanks for that matey. Time to play. Lol

---------- Post added at 06:57 PM ---------- Previous post was at 06:41 PM ----------

How the hell do I download from Dev host. Every time I press on download button it keeps downloading mobogenie or takes me to a gambling site?
[Galaxy S 4 i9505 Android Development] Jsilver73:
Try using an ad blocker like adaway http://xdaforums.com/showthread.php?t=2190753&page=144

It is a problem with dev host I know, sorry I can't be note help ATM.
[Galaxy S 4 i9505 Android Development] sn0wman1:
Thanks that worked
[Galaxy S 4 i9505 Android Development] kantjer:
I experienced some unexpected behaviour.

Yesterday for the first time in ages my phone wasn't as snappy as it used to be. Also I noticed a huge lag (~ 5sec) before the screen turned on at incoming call.

First I suspected the GPU governor, I changed that from ondemand to simple the day before. But setting it back to ondemand didn't solve the issue.

I then switched back the only other change I made recently, one that seemed completely insignificant to me.

I had increased the read ahead cache from 128 to 256kB, setting it back to 128 kB solved the lag.

I was never a huge fan of a big read ahead cache. I think it's counter productive because every time the phone reads something from SD the whole cache is filed so more than strictly needed is pulled from the SD and loaded into cache. But I wasn't expecting to see this behaviour.
[Galaxy S 4 i9505 Android Development] FlanjeUK:
[MENTION=3306843]kantjer[/MENTION]

I have tried a few different combinations of IO Schedulers & Read Ahead values and always came back to ROW & 128mb

It seems to me to be the most consistantly smooth set up :)
[Galaxy S 4 i9505 Android Development] kantjer:
I made a few small changes to the CPU voltage setting to make it more robust.

See post #7
[Galaxy S 4 i9505 Android Development] Lucius1972:
Hi fellow Tweakers,

If anyone is interested i will release Despina V2 tomorrow.

Just finishing last cycle.

Let me know.

Cheers.
[Galaxy S 4 i9505 Android Development] Buster99:
hey guys, thank you for this threat. i have a question: is there a way to tweak Bluetooth? i have the problem that in my car the audio starts to jitter after a few minutes. any ideas? i used an older version where the issue was gone. (tried 3 kernels and stock (cm))

any help /suggestion is appreciated

cheers

buster
[Galaxy S 4 i9505 Android Development] twerp71:
What is the best way to get back to original alucard settings? I have read references to deleting /data/.alucard etc, but would like someone to lay out the complete steps please.
[Galaxy S 4 i9505 Android Development] FlanjeUK:
Just delete /data/.alucard and reboot, done :)
[Galaxy S 4 i9505 Android Development] twerp71:
1) Install latest kernel without starting stweaks

2) Install kernel and run stweaks, but make no changes

I assume there is no difference between 1) and 2) in this case?
[Galaxy S 4 i9505 Android Development] FlanjeUK:
both will do the same thing (ie. leave the settings at default)
[Galaxy S 4 i9505 Android Development] Jsilver73:
For anyone who is interested I have just updated the profiles in post #3 AOSP, if I missed anything or anyone's profiles please let me know.
[Galaxy S 4 i9505 Android Development] Chelonee:
Nice to see you here! :D Just loaded up your profile for alucard kernel and testing it.

I just noticed that you also have a newer Mahdi Rom version in your Dev-Host. What are the differences?
[Galaxy S 4 i9505 Android Development] Socim:
Nice to see you too! You can find the differences from Mahdi's github repositories, I only did sync and built with sabermod. ?
[Galaxy S 4 i9505 Android Development] Chelonee:
Flashed both rom and kernel and this combination seems to be overall faster. Thank you! ?

Edit: Just noticed that is has notification peak already in it! Cool!

Also using a mix of your and kantjes profile. If it turns out to be good, i will share it here. :)
[Galaxy S 4 i9505 Android Development] kantjer:
I have updated my profile again (see post #7).

It's looks I have finally removed the last short screen freezes I was still having occasionally :fingers-crossed:
[Galaxy S 4 i9505 Android Development] pitastrudl:
Nice! Yesterday i had 4 freezes in a 2 minute period lol. Hope this solves this.
[Galaxy S 4 i9505 Android Development] kantjer:
Wow, that's a lot. I was having max 2 per day. But now 3 days without any (short) screen freezes.
[Galaxy S 4 i9505 Android Development] pitastrudl:
Yeah, sometimes the phone decides to go derp. Not sure if I should just run a catlog all day long just to catch 1 freeze. Not sure if catlog even shows what happens on kernel level.
[Galaxy S 4 i9505 Android Development] fedef12evo:
using mpdecision from day one and i deleted also any init.d no freezes ever
[Galaxy S 4 i9505 Android Development] kantjer:
settings in post#7 updated to match the 2.6.6mm kernel
[Galaxy S 4 i9505 Android Development] kantjer:
What happens when you give the restored profile full permissions before restoring?
[Galaxy S 4 i9505 Android Development] Jsilver73:
:eek:

Yep, my permissions are the same as yours, however when I delete Alucard from data then reboot all original voltages are there, when I copy and paste default backup profile and restore that voltages get changed. Interesting though, I just changed ask my permissions for my backup profile, I wonder what it will do :eek:
[Galaxy S 4 i9505 Android Development] pitastrudl:
If i put the permission same as other files(full perm) it restores like it should. Though when I copied the file it already had those permissions. Probably becuase you copied the profile directly from alucard folder and uploaded them(the newest one). Because some older profiles had quite different permissions when i copied them to alucard folder.

Yeah, I think alucard_24 mentioned that something is stored in ramdisk of the kernel that restores the config files.
[Galaxy S 4 i9505 Android Development] kantjer:
I copy the backup directly from alucard to Gdrive.
[Galaxy S 4 i9505 Android Development] s3icc0:
yes it is the files located under /res/ folder - these are copied back to /data/.alucard (and you cannot change them as they are stored in ramdisk and after reboot they will be back ... )
[Galaxy S 4 i9505 Android Development] pitastrudl:
just got a freeze with kantjers latest settings but it wasnt as long as usual. so dvfs settings really do have a connection to freezes?

Sent from my GT-I9505
[Galaxy S 4 i9505 Android Development] Jsilver73:
Yep, I have turned dvfs up to max now and all good apart from one very minor 3 second freeze whilst multitasking. I have also turned min GPU up to 200 and changed GPU governor to ondemand now because the freezes seem to happen on graphic heavy operations.
[Galaxy S 4 i9505 Android Development] fedef12evo:
im saying again, im on latest pac rom, i deleted every init.d and using mpdecision as hotplug never had a freeze ever
[Galaxy S 4 i9505 Android Development] kantjer:
Why did you delete every init.d?

Have you any idea what you deleted. Those files are there for a reason, It could be there are kernel related scripts in there, although on the S4 I haven't seen any kernel placing something there. But blindly deleting everything in there is probably not a smart thing to do.

---------- Post added at 08:58 AM ---------- Previous post was at 08:51 AM ----------

If you still have short freezes you will need to tweak a bit further.

Raise the min_touch_limit and/or booster_chg_time until you find your sweet spot.

From my testing it appears the min_touch_limit and booster_chg_time influence the smoothness of opening apps etc (everything that happens the moment you touch the screen).

The min_touch_limit_second and booster_off_time have influence on scrolling smoothness etc.
[Galaxy S 4 i9505 Android Development] HaTrED_:
Gonna give them a try!

Thx for sharing! :good: :)
[Galaxy S 4 i9505 Android Development] ntnlzr:
i've just set extreme battery save profile

all is working fine :P
[Galaxy S 4 i9505 Android Development] Jsilver73:
Lol - cool, glad it's working for you :cowboy:
[Galaxy S 4 i9505 Android Development] Jsilver73:
Well, seems the sweet spot for me is dvfs touch limit and second both max and system runs smooth as butter and freeze free for 24 hours and counting. :D

EDIT: 'banghead' I just got freeze, it's like the phone knows when I think I've got it cracked!! Grrrrrr
[Galaxy S 4 i9505 Android Development] aleksik:
Haha :D that's exactly what happens to me every time I think I've sorted out a problem with my phone..

Sent from my GT-I9505 powered by CM11 & alucard kernel
[Galaxy S 4 i9505 Android Development] Jsilver73:
So I am now testing everything in dvfs tab maxed out and I'm going to see what happens, kill or cure lol.

EDIT: and just got another freeze! I'm baked again!! Banghead banghead!!!!
[Galaxy S 4 i9505 Android Development] kantjer:
Try lowering the awake hotplug sample rate to 45 ms
[Galaxy S 4 i9505 Android Development] pitastrudl:
I've set dvfs to none and still got freezes. does dvfs even matter then? ill try kantjers advice bout hotplug sample rate and see

Sent from my GT-I9505
[Galaxy S 4 i9505 Android Development] Jsilver73:
OK - lowered hot plug sample rate and still getting freezes? Really not sure what to do any more, I'm going to try KT again and see if I get any freezes running that then I can rule out ROM/apps set up as the cause of freezes.
[Galaxy S 4 i9505 Android Development] kantjer:
Just updated my profile in post #7 with a few additional changes.

Been running that since yesterday end of day and it's super smooth for me.

If that doesn't do it for you I'm also out of ideas.
[Galaxy S 4 i9505 Android Development] FlanjeUK:
[MENTION=5528810]Jimsilver73[/MENTION] have you tried setting Auto OOM SCREEN ON to Aggressive? This may help as it seems to help me :)
[One (M7) Q&A, Help & Troubleshooting] blackie06:
Microsoft Windows [Version 6.2.9200]

(c) 2012 Microsoft Corporation. Tüm haklari saklidir.

C:\Users\kayhann>cd c:\tools

c:\Tools>fastboot flash zip m7.zip

< waiting for device >

sending 'zip' (1178274 KB)...

OKAY [ 61.900s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

FAILED (remote: not allowed)

finished. total time: 172.544s

c:\Tools>fastboot oem rebootRUU

...

(bootloader) Start Verify: 3

OKAY [ 0.040s]

finished. total time: 0.040s

c:\Tools>fastboot flash zip m7.zip

< waiting for device >

sending 'zip' (1178274 KB)...

OKAY [ 46.159s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

(bootloader) checking main version...

(bootloader) checking hboot version...

(bootloader) start image[hboot] unzipping for pre-update check...

(bootloader) start image[hboot] flushing...

(bootloader) signature checking...

(bootloader) [RUU]WP,hboot,0

(bootloader) [RUU]WP,hboot,99

(bootloader) [RUU]WP,hboot,100

(bootloader) ...... Successful

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

finished. total time: 158.305s

c:\Tools>
[One (M7) Q&A, Help & Troubleshooting] ghul21:
Wrong thread thats for first. U should ask here http://xdaforums.com/htc-one/help

Wysłane z mojego Nexus 4
[One (M7) Q&A, Help & Troubleshooting] gamer765:
You're supposed to fastboot flash zip twice. The first time will fail with remote: 90 hboot pre-update because it updates the hboot first. The second time will flash the RUU. Although I have no idea what you did, but given that you apparently have 0 clue to what you're doing (because you might be a monkey just punching keys) i say you're f*cked. It looks like you tried to flash a GSM zip onto your CDMA HTC One and succeeded in flashing hboot only. Since you're S-ON, you are royally screwed since I think the GSM hboot will not recognize your partition layout and will refuse to boot. Don't think you can revert back with an official RUU either (no downgrades). Have fun with your new paperweight.

[MENTION=3630491]ghul21[/MENTION] He is able to flash while S-ON because it looks like the zip is properly signed (otherwise I'm sure hboot would not have been updated in the first place anyways).
[One (M7) Q&A, Help & Troubleshooting] blackie06:
I have s-off yapmýs gave an error while loading custom ROMs and somehow deleted the s-off and locked for the first time this problem has happened to me
[One (M7) Q&A, Help & Troubleshooting] ghul21:
Yup, now i see.. :silly: