yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
I would use "freelunch" for your governor and "row"as your scheduler. This kernel features automatic mpdecision so disabling it (in my own opinion) does not do anything. I would advise you not to undervolt until you have done more research on kernel/hardware topics around XDA. Since every phone is different on a hardware based level, voltages become the variable with each and every phone. My phone would take different voltages than yours, so sharing settings would be useless. Get used to your phone, get accustomed with it and test voltages on your own. It's time consuming, but well worth it! Check other kernel forums (also this one) and see what other users have posted. Read read read! :) You could also ask decimalman questions, but he's a really busy developer so it might take a while for him to get back to you.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] karmasblade:
I really appreciate the help so far. Could you point me in the direction to start reading about voltages? Thanks once again
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
http://xdaforums.com/wiki/index.php?title=ROM-VS-Kernel

http://xdaforums.com/galaxy-s3/general/guide-oc-uv-abb-voltages-low-battery-t2560095

There's a couple to get you started :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] karmasblade:
Okay so from reading the articles, the kernel is like the do and the rom is like the brain. Also, now that I've read the voltage guide, the voltage settings in Trickster are under MPU voltages?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Many apps are different, whatever works is whatever works! :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
Thank you. But that old repository only contains 4.1.2tw kernel build in September last year. Is that the latest for 4.1tw? Thanks.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Socomfort99:
Thanks for the information. I going to check out the stock Touchwiz kernel to see if that port situation is a red herring.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
Check under "Testing Builds." IIRC, both testing builds should be stable.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sjamie:
What are the right permissions - rwxrwxrwx?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sjamie:
How does asswax differ from the others? Information on this governor seems scarce.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Yes that's correct. Anyways these questions are extremely off topic now. Pm me if you have anymore questions.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] grey.ghost:
I can't seem to get more than 56kb download of the d2att tw 4.3 release no matter how hard I try. Are there any mirrors?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
http://www.mediafire.com/?jgqqg25a7xfesd6

There you go.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] grey.ghost:
Thanks friend, just what I needed!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Darian71:
Hello all! Flashed this Kernel this morning (8 hours ago), and I must say : Well done! Haven't tried to Max the OC out yet with the under volt zip, but I did want to see how my battery would hold up to my daily use after reading about the new governor Freelunch. After the first 2 hours I had already predicted I'd get a full 8 hours and I've exceeded that! Was down to 23% and home before I decided to reach for the charger. No reboots, no lag to speak of as far as calls, mms, and social apps and Internet are concerned. I did decide to try a couple of Antutu Benchmark test, which yielded about 8,000 total points below what interactive governor gives me, and around 3500 points less on the 3D scores. So apparently that's where my battery savings are coming into play. Which is great because I can always switch governors for gaming and ramp up the OC. Quite possibly the absolute best governor I've ever had the pleasure of using, and so far the best kernel! Will test some performance and more battery usage over the next few days after a few recharges, but as they say at McDonald's : "I'm Lovin ' it"!! THANKS TO ALL INVOLVED! ?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
I tried both kernels and both get installed failed status 7. I'm using twrp and s3rx 2.0 tw 4.1.2. Any suggestion?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Update your firmware, recovery, and Rom
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sjamie:
Which kernel tuner are you currently using?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
None, just some bash shell scripts I wrote.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
I've updated the recovery and rom is the latest4.1.2. Still can't install the kernel. But I have no problem to install faux and koolop and other kernels. Any suggestions? Actually the recovery says install failed. However when I reboot to the system, I found the new governors and extra stuff. However my Wi-Fi doesn't work. I think is it because it failed to copy the lib files to the system?

Please help.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Download the latest stock firmware for your phone, use odin to flash it to your phone. Should be stock 4.3...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
Status 7 errors mean that the install script failed, which doesn't mean anything without the messages leading up to the error.

It sounds like the install script is successfully installing the kernel itself, but not the modules. Extracting everything in system/lib/modules manually will get wifi working.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Edit:

This post will eat your cat
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
If you haven't discovered it yet, definitely check out Advanced Bash-Scripting Guide. Some of it won't apply for busybox sh, but it's still worth reading. The shell is immensely powerful and has a lot of features to make scripts simpler and easier to maintain. In particular, here documents, arrays, and case statements are handy for making menus.

I used to include some scripts with dkp, but I didn't think anybody was using them. Having to use a terminal emulator and a clunky text interface makes scripts less than elegant. On top of that, restoring settings on boot is sort of a pain (you'll see ;)). I'm working on adding more extensive ramdisk modification support to the installer, so (eventually) I'll set something up to easily restore settings during boot.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Well eventually when I get the functions written into my shell, it'll be extremely verbose. What I posted above was a bit too simple, but instead I'm rewriting it, rough drafting it, and rewriting again....

Sysctl in busybox, when issued with the option -q , grep's/cat's/awks a configuration file with it's own variable pathway (/proc/sys as a | pipe | and echo = "=" ${string} [ 0-9 ] operator output [something like this whatever]). My idea was to make a sysctl "like" command in bash but with more added functions, configuration customized for your kernel, parsing the arguments in the background so it doesn't slow down boot time etc... and being verbose.

I'd best be going to bed now... Fresh mind, good sleep ..
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] jukiewalsh:
Just wondering but what has the d2lte merge done to dkp? Is that reason for a seemingly pause in aosp updates? I know it's been hell for some other devs
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
I don't think so, he has separate threads per carrier and none of his download links say "d2lte" on them.

Edit: aosp has a unified build
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
AOSP has had a unified kernel for a while now, so (AFAIK) the d2lte merge didn't require any kernel changes.

I haven't had a lot of time to work on dkp recently, so updates aren't happening as often as they should. If all goes well, I've got a new build on its way. It won't be a very big update (nothing but CM commits), but it's something.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
Long-overdue updates for both AOSP 4.4 and TW 4.3 are up.

AOSP Changelog:

Merged CM's latest changes

Added the ability to keep the existing splash screen*

Changed the power save performance profile to use freelunch and simple CPU and GPU governors

TW Changelog:

Fixed fast charge for MHL cables

Added the ability to keep the existing splash screen*

Added init.d support for ROMs that don't already support it

* In internal storage, create a directory named "dkp", then create a file named "skipsplash" in the new directory. Eventually, I'll make the process easier.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] matrixzone:
After installing the tw kernel, mobile does not have th init.d support
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
I got lazy and put the init.d stuff in an unusual location. Scripts might not detect it.

I'll change the installer in a future build to use the normal location.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
UKSMD wakelock

Hi Dev,

I've got the uksmd kernel wakelock on s3rx 3.0 TW rom. I looked at the log it seems coming from securestorage.

Here's the log:

---------- Post added at 06:13 PM ---------- Previous post was at 06:12 PM ----------

[ERROR]:Error load config to TZ (SecureStorage)

E( 4817)

[ERROR]:Error sending config file to TA/driver! (SecureStorage)

E( 4817)

[ERROR]:Secure Storage Daemon failed to start (SecureStorage)

E( 4826)

[ERROR]:Error load config to TZ (SecureStorage)

E( 4826)

[ERROR]:Error sending config file to TA/driver! (SecureStorage)

E( 4826)

[ERROR]:Secure Storage Daemon failed to start (SecureStorage)

E( 1802) [c] Prov Channel Exception : java.net.SocketTimeoutException: failed to connect to gld.push.samsungosp.com/176.34.109.10 (port 80) after 15000ms (SPPClientService)

E( 1802) [g] processError. message.arg1:659728372, internalErrorCode:-103 (SPPClientService)

E( 1802) SharedConstants.WHAT_INTERNAL_ERROR (SPPClientService)

E( 1802) handleError->resultCode: PROVISIONING_FAIL(-103) (SPPClientService)

E( 1802) redoProvisioning() (SPPClientService)

E( 721) Writing exception to parcel (DatabaseUtils)

E( 721) java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL (DatabaseUtils)

E( 721)	at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13090) (DatabaseUtils)

E( 721)	at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038) (DatabaseUtils)

E( 721)	at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607) (DatabaseUtils)

E( 721)	at android.content.ContentProvider$Transport.call(ContentProvider.java:279) (DatabaseUtils)

E( 721)	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273) (DatabaseUtils)

E( 721)	at android.os.Binder.execTransact(Binder.java:388) (DatabaseUtils)

E( 721)	at com.android.server.SystemServer.init1(Native Method) (DatabaseUtils)

E( 721)	at com.android.server.SystemServer.main(SystemServer.java:2012) (DatabaseUtils)

E( 721)	at java.lang.reflect.Method.invokeNative(Native Method) (DatabaseUtils)

E( 721)	at java.lang.reflect.Method.invoke(Method.java:525) (DatabaseUtils)

E( 721)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187) (DatabaseUtils)

E( 721)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) (DatabaseUtils)

E( 721)	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132) (DatabaseUtils)

E( 721)	at dalvik.system.NativeStart.main(Native Method) (DatabaseUtils)

E( 4840)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Your implementation of init.d support works fine on touchwiz ROMS.... That's as if there was nothing done to the ramdisk except setting selinux to permissive.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] matrixzone:
[MENTION=4932679]decimalman[/MENTION], will we get the kernel updates from the latest TW Firmware updates for the T-Mobile? The latest Firmware for T-Mobile is now :

Build date: Sat, 08 Mar 2014 10:58:03 +0000

Product Code: TMB
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] jukiewalsh:
Dude someone already told you in another thread, not until Samsung releases the source.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
I've got the error figured out. But can anyone let me know how to turn off the uksmd? It constantly consume 15% of my cpu.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] matrixzone:
Samsung has not release the kernel code for AT&T Kernel, but still we have the 4.3 kernel available. Research please before quoting.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] jukiewalsh:
I have, 4.3 has been released but as the other person has said the updated source needs to be posted before much more can be done for tw. But regardless I'm just saying there's no point in posting the same question in two threads because you don't like the answer haha.

edit: not sure if you know or not but the kernel source is within the firmware source, they aren't seperate.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
Looks like I found it. For anyone who wants to turn this off:

echo 0 > /sys/kernel/mm/uksm/run

But I just don't know why do we need it at the first place??:confused:

Also does anyone know why init.d doesn't work for me? Is it rom related issue or kernel? I'm on build Feb 20th. I can't install the latest build for some reason. (Maybe I'll swape the img file and give it a try.)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Are you on touchwiz or aosp? Upload the boot.img for me and I'll fix it or try to. :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
Oh Thank you :good:

I'm using TW4.3 Feb 16th version right now since my recovery (TWRP2.6.3.1, I don't know but I can't boot to system if I upgrade it to 2.7) will hang there forever if I tried to install the latest March 20th build.

Do you want me to upload the boot.img from my phone or the zimage from your kernel?

By the way, will you able to help me fix the init.d too? :p It doesn't seem to work on my phone and I'm not sure why. That's the main reason I want to try the latest build.

Currently my sysinit is set to :

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin

/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d

===================

Also for the ksm settings, I found right now default is set to 10% page scan with 100 ms sleep interval. This isn't an aggressive setting at all but I'm not sure why it still uses 15% of my CPU all the time. So I decide to disable it. I think the battery is more important than the free memory and hope dev can disable it in future relesae by default.

I also want to know does the kernel turn off the fsync by default? I'm using row and found some IO slowness. (Maybe just me not being patient:silly: )
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Shels:
If u could just fix the uskm and inti.d for the latest tw period and post it. it'd be greatly appreciated please and thank u
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
I think that may be the cpu governor that you have set. I need the actual boot.img to fix the problem :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ptl4ever:
How do I turn fast charge on and off?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Shels:
Is the uskm and init.d issue still being worked on?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Init.d support works. Uksm can be turned off.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Shels:
Oh ok by ur previous convo I assumed something had to be edited in the boot.img so if I jusy follow enter that command into terminal I'll be able to get rid of that uksm wakelock?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Make an init.d script with the following:

#!/system/bin/sh
if [ -f /sys/kernel/mm/uksm/run ] && [ $(tail /sys/kernel/mm/uksm/run | grep -i "1" | wc -l) -eq 0 ]; then
echo "0" > /sys/kernel/mm/uksm/run
else
exit 0
fi

That's all
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Shels:
Sweet so make the script, set it at boot n Bob's ur uncle? Gonna give this another shot
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Yes, or you could just do it like this:

#!/system/bin/sh

echo "0" > /sys/kernel/mm/uksm/run
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
Here you go.

https://drive.google.com/file/d/0B4ak1VoaUimjRFNFcFpaUHhjVjA/edit?usp=docslist_api

Thank you indeed.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Here you go, try this.

http://www.mediafire.com/view/?7whg9q77r7h6ic5

I also gave it a fixed root with Supersu so it does not become ROM dependant :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ibuddler:
I put it in a kernel.zip and flashed it. But it still didn't start the init.d scripts. :confused:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Here, flash this.

http://www.mediafire.com/?u2cev99mc5fozxt
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Anywho, [MENTION=4932679]decimalman[/MENTION] what are the changes on the test build of 03 26? I know it's kind of late asking.... I'm ALWAYS on my phone, so if guinea pigs are of need in your distress don't hesitate: feel obligated to send me a message. :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] jaxf250:
[MENTION=4932679]decimalman[/MENTION], 03/20/14 build for TW 4.3 is running really great on latest S3Rx ROM. Got tired of all the KK4.4 d2lte drama and broken items across the nightlys, and felt it was time for a nostalgic trip back to stock LOL.... anyway, tried all the other kernels on this puppy and yours is just bada$$ - thanks man. Your work supporting the older OS is appreciated by this flashaholic.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Any confirmation that it works?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] LiquidT:
Which kernel download link works for beanstalk d2lte 4.4.275 rom? I have a att gs3. I would like to try this kernel, but the one i downloaded did not boot. It put it in a bootloop. I assuming I downloaded the wrong one???
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Here's my battery life with the latest test you've uploaded. On the latest SlimKat too...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] LiquidT:
what kernel??
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
http://download.xstefen.net/getdown...dkp-aosp44-d2-20140326-233706-dkp-3.4_4.4.zip
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sjamie:
You do realize that is INSANE, right!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] LiquidT:
Thanks for the download link. I did download the right one. It did not install, said install aborted.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Change your recovery, are you using Philz touch?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] LiquidT:
Yes I am. Do I need to use CWM? Why would that effect it?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Because that's a bug with Philz recovery, not the kernel :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
I think I finally sorted out the installer issues. :fingers-crossed: I fixed half a dozen bugs that were triggered by strangely formatted ramdisks, which (hopefully) means that the installer will work for everyone.

Anyway, there's a new AOSP build up. Mini-changelog:

Linux 3.4.86

Synced with CM

(Hopefully) fixed the installer once and for all
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Have any ideas of what to add to your dkp service shell? I already added the following for somewhat increased io performance:

[HIDE]
#!/system/bin/sh

echo "0" > /sys/kernel/mm/uksm/run

echo "32" > /sys/kernel/debug/msm_fb/0/bpp

umount /sys/kernel/debug

for i in /sys/block/*/queue; do
echo 512 > $i/nr_requests;
echo 2 > $i/rq_affinity;
echo 0 > $i/nomerges;
echo 0 > $i/add_random;
echo 0 > $i/rotational;
done;

for i in `find /sys/devices/platform -name iostats`;
do echo "0" > $i;
done

[/HIDE]
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] matrixzone:
Download page is to slow for me today
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] matrixzone:
Thanks for the update, can you please post some mirror download link. Unable to download the update for the last 4-5 hours
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
Here's a mirror:

http://www.mediafire.com/?jey2o8o2x72iko2
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] matrixzone:
Thanks for the mirror, really appreciate your help..
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
I don't have plans for it, so use it as you will. :good: Should I point it to /data/local so the script persists across ROM updates?

I'm hoping that having a script that runs at the same time as init.qcom.post_boot.sh will make it easier to adjust settings and not have them overwritten. "sleep 2" or so at the top of the script should guarantee that everything is out of the way and /sys is all yours to play with.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] jukiewalsh:
Not sure if it's as easy as adding the GPU governor seemed but do you think it's possible to add support for under/overclocking GPU
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DexedrineXR:
I was thinking of completely rewriting qcom.init.post_boot.sh (less ramdisk modification with less services) and backing up the original because it's full of useless code... But that's just me because I only use your kernel. I never dirty flash either...

I like the idea of the shell being placed in /data/local, but why not just add a line in qcom.init.post_boot.sh to execute it after it's commands? That way we know it gets executed lastly instead of placing commands on top of each other getting mixed settings from both shells.

But with simplicity (which my idea isn't), your idea is a guarantee for ROM functionality across all with the kernel. Go with it, I think it will be the best :)

Edit: [MENTION=4932679]decimalman[/MENTION]

Are you adding the intelliactive governor in anytime soon? ;)

Also, I'm curious as to how you convert .png images to .rle raw format in recovery with your update binary.... Is there anyway to do this with terminal emulator by hand? ;) It would be interesting to know
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] decimalman:
I played with the GPU frequency scaling code a while back, but I wasn't impressed. IIRC, adding new power levels was a pain. I'll have to take another look sometime.

I'll look into calling the script from qcom's script. It should be easier to work with that way. As a bonus, I think I can do the patching with sed, which would be a huge relief after writing all the ramdisk patches in C.

Adding CPU governors (usually) doesn't take much work. Intelliactive doesn't look like it'll cause any problems.

If you've got ImageMagick handy (i.e. you're not converting on your phone), you can use convert and to565 to do conversion. Otherwise, I don't know of any off-the-shelf tools to do the conversion. I'm using sfpng and an encoder I wrote, which I've been meaning to fix up for other people to use (it's currently heavily tied into the installer and still missing JPEG support).

If I were to fix up the encoder, how smart would you want it? Just a dumb converter, something able to add the RLE to a boot.img, or a full update-binary replacement?