yashsingh1/xdaforums huggingface dataset:
[Samsung Infuse 4G] Entropy512:
Eh I've been holding back on accepting them from anyone until I figure out exactly what being "friends" with someone on XDA does. :P

Most of the initramfs changes you mention are in the experimental kernel I posted here - http://xdaforums.com/showpost.php?p=17892993&postcount=204 . I can't test the usbstorage logcat spam changes as I wasn't getting spam in the first place on S7. I'm currently testing to see if the wifi changes break backwards compatibility with UXKG3 ROMs. If they don't, that kernel will become part of this series.

Anyone running a UXKG3-based ROM is welcome to flash the kernel linked in this post - but be warned that it MAY break your wifi. I welcome reports that it doesn't, especially if it doesn't break wifi after multiple reboots.
[Samsung Infuse 4G] JordanElliott:
flashing now ;) very nice entropy.
[Samsung Infuse 4G] teiglin:
Just to put my 2c in, since I had wondered briefly about this--I have a similar issue to what Kadin reported earlier. Most oddly, VC it lists 400MHz and and 100MHz as "Custom" and the slider goes from 825 to 1025mV and 725 to 925mV respectively; it doesn't list a default voltage at all for those frequencies. Since these also may be wrong/different, default voltages for the rest are 1300mV@1200MHz, 1100mV@800MHz, and 975mV@200MHz. Haven't had any stability issues with reasonable undervolts though, so I'm not sure it really matters too much, but it is a bit odd.

Gonna try the new kernel, I'll let you know if wifi still works in a couple hours.

Edit: to add, I have run bedwa's kernel in the past, but not for at least a couple weeks, and I have cleared settings, run hellraiser kernels, and done a number of full /system /data wipes in the intervening time, so while it's possible that it's some artifact, it seems rather unlikely.
[Samsung Infuse 4G] JordanElliott:
wifi working perfectly entropy. very nice job.

---------- Post added at 07:22 PM ---------- Previous post was at 06:57 PM ----------

Entropy. lets make a new name for u. how about.... Jesus number 2. sound good?? lol

---------- Post added at 07:42 PM ---------- Previous post was at 07:22 PM ----------

so basically the only thing left to pull from linux is the remaining lines in init.rc ;)

---------- Post added at 07:46 PM ---------- Previous post was at 07:42 PM ----------

k been running wifi since i flashed your kernel which was 6:55. no problems or nothing. great job entropy. you made my night. was having kinda bad day. ty! :)
[Samsung Infuse 4G] Entropy512:
Defaults I'm fairly certain are:

1300 mV at 1.2

950 mV at 100/200

I forget what in between at the moment.

It looks like the initramfs fixes didn't fix UCKI3/I4 wifi, but didn't break UXKG3. I need to review, but I think I've pulled in all of the stuff LB had in his initramfs, except for a few lines that were actually already in there. (as in, they seem to be duped in I3/I4... Need to double check.)
[Samsung Infuse 4G] bignate78:
Can this be ran with LBs hellraiser running I3 without problems?

Big dog Infuse I997 doin some Hellraising
[Samsung Infuse 4G] Ryanscool:
Yes well there may be bugs you run into but that is just with the kernel itself on anything.
[Samsung Infuse 4G] bignate78:
Such as?

Big dog Infuse I997 doin some Hellraising
[Samsung Infuse 4G] Ryanscool:
Well, I just flashed 26 on 2.2.3 Infused and first of all for me the battery is seeming to drain a little more the other with screen on, but less the others with screen off (sort of a bug, others had the opposite happen), It shows not getting to 1.2 and can seem a little laggy sometimes.
[Samsung Infuse 4G] bignate78:
i thought he fixed all that?
[Samsung Infuse 4G] Ryanscool:
Ok so my phone was running at 1.2ghz, but entropy it does still feel laggy (my theory is that it runs at some frequencies at wrong times), and uses quite a bit of battery. When you have time, try to fix these. Your last release actually did fix some bugs, bit there are still others.This kernel otherwise seems very well put together.
[Samsung Infuse 4G] JordanElliott:
Mines not laggy at all

---------- Post added at 07:28 AM ---------- Previous post was at 06:47 AM ----------

edit: that was pushed to a different kernel. not hellraiser

---------- Post added at 07:31 AM ---------- Previous post was at 07:28 AM ----------

could u pull some of these changes in your free time entropy?

https://github.com/drowningchild

---------- Post added at 07:37 AM ---------- Previous post was at 07:31 AM ----------

also wouldnt jhash3 help improve some stuff too entropy?

https://github.com/razor950/Defuse-Kernel
[Samsung Infuse 4G] JordanElliott:
Ok cool. Thx bro
[Samsung Infuse 4G] JordanElliott:
So am I helping? :p like giving u new pulls? Lol
[Samsung Infuse 4G] Entropy512:
It's interesting reading material - not sure how useful it'll be. Drowningchild is being very aggressive, there's some stuff in there that I clearly don't want, but there's stuff there that might be useful, however it could also REALLY hose things up.

I'm not sure if I have the time to play with fire like that. Seeing reverts of low-level core code without documentation of WHY a fix was reverted makes me nervous, such as this as an example:

https://github.com/drowningchild/Infusion-GB/commit/fc29ca3f8b81b9a56a8c31689027504ee70899b6

This could be highly beneficial on our CPUs, but it could also be highly dangerous. All of my instincts say it's good, but when messing around at THIS low of a level... you never know... The EE in me says "if you can use a hardware feature, do so". However if this is the WRONG way to use a hardware feature it could do REALLY bad things.

https://github.com/drowningchild/Infusion-GB/commit/c022a476325d7f35ffb8f770875beb70b922f830

This comes straight from Samsung so it's probably OK, but I'm not sure how beneficial it is:

https://github.com/drowningchild/Infusion-GB/commit/15651380e8252f18e4c0fffcdb4c1b656abffe2b
[Samsung Infuse 4G] JordanElliott:
Ur a great dev. Glad to have u here entropy. U put a lot of hard work into helping the community.
[Samsung Infuse 4G] Dani897:
id like to say the same. I know we also have other great devs but you participate on the forum end more than the other kernel devs and don't patch things in for the sake of it being available and in someone else's work that people seem to like. that sort of thinking over ran the captivate section and while they may have more "devs" and more trickled down from the i9000 the lack of bad work around here is why I stick around.
[Samsung Infuse 4G] Entropy512:
Thanks guys.

As an example of the battery life I got today - FYI this is with the phone sitting on my desk at work most of the day, occasionally reading and deleting emails as they came in on gmail. It's a particularly nasty situation in terms of battery use as it's very weak signal - bouncing between one bar and no service constantly. Tends to drive cell standby way up, and will also drive any app that doesn't sync sensibly in weak-signal situations way up. See above regarding gmail sync sometimes going nuts on me.

Prior to this I did have the aforementioned gmail battery drain issue because data service died - lost 6% in 40 minutes and gmail was at the top of the list with around 60% usage - but that's not a kernel-specific issue and affects multiple ROMs and kernels. I disabled/reenabled data, charged up, then let it sit.

So if you think I have a battery drain problem in this kernel, you need to come up with a reproducible test case.
[Samsung Infuse 4G] Ryanscool:
I agree with Dani, and I think the problems are on my end any way ha. Thanks for being here, when I am not at school I am using this kernel. (use infusion to show off overclock lol.)
[Samsung Infuse 4G] Entropy512:
Check for unusual stuff in Battery Usage, and also check for unusually high wakelock usage in BetterBatteryStats - those are your best bets for hunting down rogue apps. If you continue having problems, try the Q&A forum.
[Samsung Infuse 4G] JordanElliott:
Id like to just give some feedback. Since I unplugged my charger at 6 am I have had wonderful battery. Although I have my display off almost the whole day during school I used to have battery drain even while screen is off. Since switching to entropy's kernel I have had wonderful performance and battery. Amazing kernel. Great work entropy. And for the people that are complaining. At least give some screenshot or logcat before u criticize entropy's work. he does this out of his own good heart :P he doesn't get paid. That's all I have to say.
[Samsung Infuse 4G] JordanElliott:
oh and I'm still at 52% battery. :)
[Samsung Infuse 4G] bignate78:
Here goes nothing, trying it out

Big dog Infuse I997 doin some Hellraising
[Samsung Infuse 4G] Ryanscool:
Ok well i am trying entropys battery saving settings in setcpu, and it seems to be doin a lot better.
[Samsung Infuse 4G] bignate78:
Which are those?

Big dog Infuse I997 doin some Hellraising
[Samsung Infuse 4G] raecer27:
-100 1200

-75 800

-50 400,200,100
[Samsung Infuse 4G] bignate78:
And this is with bfq and conservative?

Big dog Infuse I997 doin some Hellraising
[Samsung Infuse 4G] raecer27:
Thats correct.
[Samsung Infuse 4G] JordanElliott:
If u look in voltage control settings. Entropy has built in uv. He already tweaked the frequecies. Am I right entropy? Or are your settings different?
[Samsung Infuse 4G] raecer27:
In VC the frequency for 400 and 100 show a setting of custom.

1200, 800, 200 do not.

I have set 400 and 100 as per his previous quotes to his settings.
[Samsung Infuse 4G] raecer27:
Here is a pic of my settings.

You can see the custom wording on 400 and 100.
[Samsung Infuse 4G] JordanElliott:
Now I see why entropy did that. Some phones cannot handle the same uv. I just went to change 800mhz to -50 and froze up
[Samsung Infuse 4G] Entropy512:
No, the defaults (in terms of absolute voltages) are:

1300 mV at 1.2

1200 mV at 800

1050 mV at 400

950 mV at 200,100

See the .arm_volt settings at line 78 of https://github.com/Entropy512/linux...master/arch/arm/mach-s5pv210/cpu-freq_c110b.c

Also look at the exp_UV_mV table in https://github.com/Entropy512/linux_kernel_sgh-i997r/commit/bf8ce11bfbe2e77cde448db5596a248fef363273

Note that they are the same - the defaults in my voltage control implementation are stock. I have no idea why VC reports otherwise.

I run at the offsets from those voltages stated previously, but as I've said - some people can run more undervolt, some people will have to run less. If you want to be stable, don't touch the voltages. My settings will reduce core power consumption by 5-9% at most (About 5% at 100/200, 8.5% at 1.2) - won't reduce display, won't reduce peripheral or phone power usage.
[Samsung Infuse 4G] raecer27:
Sorry the previous image I posted did not allow you to see what I was referring to in VC after setting to your settings.

You can also see that the 100 freq is showing the custom label with the setting you recommended without me adjusting it.
[Samsung Infuse 4G] Bandit_Kaine:
Does this kernel allow for the built in mobile hotspot tethering? Or is it also broken like in Infusion?
[Samsung Infuse 4G] Entropy512:
Take it to Q&A or read the thread please, your question has already been answered.
[Samsung Infuse 4G] Ryanscool:
Dang, thats good. Im getting good battery life now applying your settings, just lost 10% in an hour once having wifi on when i didnt need it lol.
[Samsung Infuse 4G] snoopdaclown:
1200. -100

1000. -100

800. -125

400. -125

200. -150

100. -175

I think those settings would save a lil more but test to see if your phone will be stable with them. My phone is stable with them

Sent from my Haxsung Infused 4G powered by Infusion
[Samsung Infuse 4G] snoopdaclown:
Can also use 2x battery from market. When your not using the phone it'll give the battery about 50% longer life then normal. And you can get up to 100% more then normal. My battery would die after 8 hours now I can charge every 24+ hours. I am using infusion kernel but thinking about this kernel to use

Sent from my Haxsung Infused 4G powered by Infusion
[Samsung Infuse 4G] invizo:
I downloaded the 9/26 kernel for my phone running the latest version of gb infused and noticed that my phones battery used to drain at 2-3% per hour (stock kernel with infused) and now it drains about 5% (4 days in from sgs kernerl flash) per hour. Should I allow more time to see improvement or am I missing something?
[Samsung Infuse 4G] Entropy512:
Did you install anything else?

Anything odd in Settings->About Phone->Battery Use?

My initial guess is that the conservative governor defaults are more aggressive about ramping up the CPU speed than in stock kernels. Use SetCPU and tune the conservative governor in the Advanced tab. (Should be similar tuning available for Voltage Control users)

5% per hour is very high. Idle drain on Serendipity VII was less than 1% an hour for me in strong-signal areas and maybe 2% in weak-signal areas except when gmail went postal due to weak signal during sync. At one point I achieved 80%+ Cell Standby battery usage (weak-signal).

(High Cell Standby is a good thing - it means that the majority of your battery use is going only into keeping checked in with the towers. Since this is a fairly fixed amount of usage, it means that everything else is low.)

Edit: Development is going to slow a bit on this again now that I'm returning to CM7-land. However, I just confirmed that Nandroid-restoring a Samsung-derived ROM does work (despite multiple reports of issues with doing so), so I can switch more easily - assuming that Nandroiding back to CM7 also works fine.

Process for Nandroiding back to Serendipity VII was:

Flash this kernel - I did it via Heimdall, but doing SGS Kernel Flasher and disabling reboot after flash is probably easier. Entering CWM after an auto-reboot can be a pain.

Enter CWM

Do a Nandroid restore

In my case, after doing the restore, Voodoo Lagfix went and did a partition conversion. Would've been nice if CWM had just nandroid-restored right to ext4.

That's it... I think those that had issues were doing a Nandroid restore from an incompatible kernel or weren't expecting a Voodoo conversion to happen.
[Samsung Infuse 4G] xcrunner65:
Can anyone tell me what this kernel is named in the "about phone." Area? I flashed it over but I don't think it took.

Fyi running infused 2.2.3
[Samsung Infuse 4G] Ryanscool:
It will not say in settings, this usually does not change. The only way to make sure is go into setcpu and see if it looks like it is running at 1000 at its highest.
[Samsung Infuse 4G] Bandit_Kaine:
Does it show the user?

mine shows like this:

2.6.35.4-i997RUXKG3-CL366622

adoff@quadmonkey #170

Mon Sep 26 16:55:13 EDT 2011
[Samsung Infuse 4G] Ryanscool:
Exactly what mine says, so it must be right. I am pretty sure it says the user, just do not know where.
[Samsung Infuse 4G] xcrunner65:
Thanks for the insight - as suspected the flash wasn't taking. I've since got it straightened away. THANK YOU! :D
[Samsung Infuse 4G] Entropy512:
Yes. You need to look at the build user in SetCPU to identify Infuse kernels.

My kernels will usually be adodd@quadmonkey, and sometimes adodd@andysg51
[Samsung Infuse 4G] snoopdaclown:
Mine says 2.6.35.7 then the rest except the user info cause I'm not looking at it through setcpu just looking at it through phone info and I'm running infusion..

Sent from my Haxsung Infused 4G powered by Infusion
[Samsung Infuse 4G] seano666:
I've used this Kernel for a while, but I've noticed some strange battery issues. I don't know if it's Serendipity 7 or the kernel, but I've tried switching kernels for now. One night I went to bed with the phone (unplugged) at ~90% battery. When I woke up (6 hrs or so) it was at 44%! Only a few applications were running.

I've observed the battery draining slower or faster at different times, as well as charging slower or faster at different times. Sometimes it is VERY slow to charge.

I'll updated if I find for sure it was the Daily Driver kernel. I really hope not because I like it.
[Samsung Infuse 4G] JordanElliott:
serendipity 7 is jvo. its so old. so theres tons of bugs.
[Samsung Infuse 4G] Ryanscool:
I have noticed this too, but the kernel is overall extremely good. My data speeds have been restored with it, and these problems rarely happen with me. By the way Serendipity is not that bad, but is has that battery drain bug like most android 2.3 has.
[Samsung Infuse 4G] seano666:
I'd like to switch over to MIUI at some point, but it seems extremely buggy from looking at the thread. I'm sure Mikey will get it sorted out soon. Can you run MIUI with the DD kernel?
[Samsung Infuse 4G] Ryanscool:
No, you can only use the kernel that comes with Miui/cm7. This is because it runs in a completely different way.
[Samsung Infuse 4G] Entropy512:
Excessive drain - usually a rogue app. Settings->About Phone->Battery Usage, and also look for odd wakelocks in BetterBatteryStats.

As to charge rate varying - that is by design and clearly documented in the first post.

Nearly anything that's in my kernel is in the CM7/MIUI kernels - I haven't done too much other than backport features from those kernels in the past few weeks, kind of out of ideas. Even before the GS2 I was at an "if it ain't broke don't fix it" stage - there's very little I can think of doing until official AT&T Gingerbread comes out and we get a source drop for it.

There's really only one feature I have that's missing from CM7/MIUI kernels and that is charginghacks - I plan on pulling the latest CM7 kernel tree, building, and testing for a day and then posting that up for people. I was going to do it earlier this week but I've been really sick and also busy with that "first week" spurt of GS2 development. I'm probably going to be slowing down on the GS2 work soon though.
[Samsung Infuse 4G] seano666:
Thanks Entropy! I forgot about the experimental charging component, so slap me for that. I think I've found the drain problem in an app I recently installed.

Can't wait for what you have in store next, like you I'm more of a battery whore, not a speed whore.
[Samsung Infuse 4G] Entropy512:
I'm pretty much out of ideas until AT&T GB.
[Samsung Infuse 4G] GuidoZebra:
Will this work with MIUI? I'm trying to find a kernel with compatibility to MIUI.
[Samsung Infuse 4G] gwbard:
Easy answer to find if you just read a little:

;)
[Samsung Infuse 4G] Entropy512:
Jeez... The answer is on the same page as your post!!!!!!!!!!!!!!!! (Even before you posted...)
[Samsung Infuse 4G] seano666:
No reason to mess with a good thing anyway. I'm happily running this with the Dlev ROM now and battery life is outrageously good.
[Samsung Infuse 4G] Ryanscool:
I have been switching off on this and the new Infusion, but I am using this more because I want the battery savings, not the non-laggy software that runs out of juice pretty quick lol. Oh and your picture of my internet thing scared me lol.
[Samsung Infuse 4G] Entropy512:
UCKJ2 wifi compatibility workaround added to first post.
[Samsung Infuse 4G] JordanElliott:
Awesome!!!! I love your kernel and now I can continue using it!!!
[Samsung Infuse 4G] JordanElliott:
Awesome!! It works!! Ty so much
[Samsung Infuse 4G] JordanElliott:
I don't wanna complain. But just telling u. Once u turn wifi off or reboot your phone. Your wifi info that u have saved disappears. U have to renenter your password and ssid or password
[Samsung Infuse 4G] jmatt78:
Umm I just flashed it and wifi is working beautifully
[Samsung Infuse 4G] jmatt78:
Is this one of those things that works fine for others and others have to terminal to get to work?
[Samsung Infuse 4G] Entropy512:
I'm wondering if maybe it works if you mess with the settings in a certain way before flashing...

Yeah just discovered this - will poke at it tomorrow. It's better than not working at all at least.
[Galaxy S I9000 Android Development] lirik0:
Thanks to brightidea who found the bug for SGSII, here it is for the galaxyS.

The Fix has been tested on JVS and JVR but should apply to JVQ

The bug is in framework.jar in .Smali files

Files:

android/view/SurfaceView.smali

android/webkit/WebViewCore$ShowRectData.smali

android/view/SurfaceView.smali

1. Replace:

line 830:

iget v0, p0, Landroid/view/SurfaceView;->mLeft:I

with

iget v0, p0, Landroid/webkit/WebView;->mLeft:I

2. Replace:

line 840:

iget v0, p0, Landroid/view/SurfaceView;->mTop:I

with

iget v0, p0, Landroid/webkit/WebView;->mTop:I

3. Replace:

line 2055:

iget v0, v0, Landroid/view/SurfaceView;->mLeft:I

with

iget v0, v0, Landroid/webkit/WebView;->mLeft:I

4. Replace:

line 2074:

iget v0, v0, Landroid/view/SurfaceView;->mTop:I

with

iget v0, v0, Landroid/webkit/WebView;->mTop:I

Only if the above does not work, replace:

android/webkit/WebViewCore$ShowRectData.smali

1. Replace:

line 26:

.field mLeft:I

with

.field mTop:I

2. Replace:

line 36:

.field mTop:I

with

.field mLeft:I

The attachments is only modified android/view/SurfaceView.smali
[Galaxy S I9000 Android Development] criskelo:
Very good job

You're a big

Edit:

works fine

:D
[Galaxy S I9000 Android Development] santoosh:
Can somebody pls make a Cwm zip for this?

Pls pls
[Galaxy S I9000 Android Development] ragin:
Really great news.
[Galaxy S I9000 Android Development] ykkfive:
not tried yet, but looks like the changes for android/webkit/WebViewCore$ShowRectData.smali are not needed
[Galaxy S I9000 Android Development] criscan:
Thank you for the great news!

ChristhianC. -from my I9000 XDA Premium app
[Galaxy S I9000 Android Development] ykkfive:
tested and comfirmed. no need to change android/webkit/WebViewCore$ShowRectData.smali
[Galaxy S I9000 Android Development] criscan:
Tested also on JVQ and it works!

But we have to change only android/view/SurfaceView.smali ?

Is it right?

ChristhianC. -from my I9000 XDA Premium app
[Galaxy S I9000 Android Development] criscan:
Its perfect, finally my JVQ fully deodexed is running free on the browser...thank-you.

This really make my day,:-)

ChristhianC. -from my I9000 XDA Premium app
[Galaxy S I9000 Android Development] ykkfive:
yes, and u r done

EDIT sorry, forgot to say i am using jvq
[Galaxy S I9000 Android Development] Rebel2k:
To be sure to understand it correctly: we are forced to extract framework.apk first with apkmanager and then modify, recompile and so on?
[Galaxy S I9000 Android Development] chainer1:
nope. the framework.jar. And you have to use baksmali to get the files out of the classes.dex. And then you use smali to put it together again.

Use Autosmali to make it easier

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

Have fun :D
[Galaxy S I9000 Android Development] lirik0:
Updated thread and added framework_JVR_CWM.zip to install by recovery
[Galaxy S I9000 Android Development] ghosty7:
I am having issues with apktools to recompile. Can some one please make the changes to the following file for me. It is from JKAYS JVQ mod so i am sure others can use it as well...much appreciated.
[Galaxy S I9000 Android Development] yagami:
i am sorry of offtopic or if this has been answered before , but :

does this mean that deodexing can create "bogus" code anywhere ?

i always thought deodexing was blah blah repackaging the odex into the apk ... etc .

all the sites and wiki's have almost all the same text to explain deodex.

but does smali actually decompiles and creates new code ?

i mean ... is the deodex code "quality" or code "logic" the same as the odex or original code ?

( i dont care about odex or not much , but do care if the code or logic is not the same )

thanks , sorry if offtopic
[Galaxy S I9000 Android Development] santoosh:
bootloops bootloops ... flashed with cwm .

wiped cache n etc etc.

where am i going wrong?
[Galaxy S I9000 Android Development] theguy:
Can I just confirm this will allow deodexed browser.apk run with GPU acceleration?
[Galaxy S I9000 Android Development] betoNL:
What he meant is that you are great !

:)
[Galaxy S I9000 Android Development] lirik0:
Is for deodex stock rom. What ROM you have installed?
[Galaxy S I9000 Android Development] faithhh:
Thank you soo much working!!
[Galaxy S I9000 Android Development] lirik0:
Here you have it
[Galaxy S I9000 Android Development] ghosty7:
you are a champ thanks :cool:

Anyone else who uses Jkays 4.2 mod on JVQ can now use this file for the browser fix....