yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] garyd9:
.. and now for something pretty much off-topic...

Some of you have no idea how lucky you are...

Having just switched to a galaxy note, I'm trying to find a kernel for that device that's as refined as Entropy512's DD is on the i777. There isn't one.

I think one of the best examples of refinement can be demonstrated by the kind of bloat people put into these kernels. For example, I don't want to have 96 flavors of governors in the kernel. Those things take up space and anything added to a kernel is something that can break a kernel. Really, the SmackMyAssAndCAllMySally v.294 governor is no different than the LionBreathXYZ governor which is really just a copy of the conservative governor with pre-configured parameters. Just because someone named "MineIsBiggerThanYours" says that some governor is better doesn't make it so. Take it from an engineer with over 20 years experience in the industry - it's NOT better. If it was, don't you think it'd show up in the mainline linux kernel or perhaps Motorola, Samsung, HTC or Google would bring it into their own android codebases?

You have, developing for the i777, an engineer who actually understands what he's doing (and doesn't blindly copy patches from other people), who tests what he does on his own hardware, who spends time researching things before implementing them (or copying them) and seems to be doing this to make things better for the device (instead of to gain as many donations as possible.)

One other thing - you won't find a single thing that Entropy's done in the kernel that isn't immediately published and available to the public. Not only does he share, but he encourages others to examine his changes, comment on them, and use them for other projects.

What really annoys me about xda-developers is the lack of recognition that I've seen Entropy get for all this work. For example, a few months ago he posted some nice init.d scripts. All was well until about a week ago when someone else posted a similar thread. For some reason, Entropy's work was ignored and a big deal was made on the front page of xda-developers about this other person's init.d scripts (which were mostly just copies of other people's work.)

Well, regardless of what some poor college kid might think, I KNOW who actually deserves the recognition. Perhaps this post will remind others of that as well.

Take care

Gary
[AT&T Samsung Galaxy S II SGH-I777] eep2378:
Lol it was a joke. Not so apparent I guess.

Sent from Wernicke's Area
[AT&T Samsung Galaxy S II SGH-I777] nbell13:
Just flashed the tar kernel using mobile odin, then the 1/30 daily driver... So nice having this awesome kernel with no exclamation boot screen!
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
Almost 8 hours today, 1% an hour - loving this kernel!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I still can't figure out where users get the damned H from.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
You want something done right, you have to do it yourself. You have the power!

What frustrates me is how many kernels prepopulate init.d, resulting in the existence of "kernel cleaner scripts" - I originaly had some automated script actions but I've removed them. If anyone has to flash a kernel cleaner script after using my kernel - I have failed. (Or they used some crappy app that filled init.d with scripts.)

I do sometimes grab a patch I haven't fully reviewed - but this is when the patch comes from a trusted source.

And this is a good portion of why you have the power on the Note.

I was going to not say anything about it, but I was unaware that the other thread got posted on the front page. This frustrates me because half of it is SiyahKernel-specific and does not indicate that, and he just took a bunch of scripts and attached them with no explanation. Also, of course, is the fact that it was done by creating a new thread as opposed to just adding to the existing thread, which makes things harder to find.

Speaking of scripts, I still haven't gotten around to doing a code analysis of V6 Supercrapper to see what other surprises may be in store. I bet you he's traded data integrity for performance in at least 1-2 situations. (Yes, I have a feature that allows you to do this - but it's off by default and I THINK I've sufficiently warned people of the possible consequences of that one.)

On another note:

I've reached a tough time where I need to figure out how to go forward. For nearly all people, it seems like the new cpuidle code is beneficial. However, for a very small number of people, the code causes video playback problems.

I really would prefer to leave AFTR on by default, but this means that it will be "broken by default" for a small subset of people who would have to use the AFTR disable workaround

If I disable AFTR by default, it'll work for everyone, but the majority of people who are not affected by the video playback compatibility issue will miss out of nearly all of the benefits of the backport

If I tune the target_residency and exit_latency of the states I'm blindly shooting in the dark

One other thing I can possibly do (and I know the GNex does this already) is block certain idle states during MFC operation (MFC is our hardware accelerated video decoder). I think this is going to be the route that I take. After all, in these situations the screen will dominate power usage.

Also, on the weird power drain issue I've been having - I think it may have been triggered by some flaws in XXKI3. It seems like the DHCP client got stuck "on", which prevented the wifi chip's power management features from getting activated on screen-off. I need to check, but this may also be one of the reasons (in addition to the BT-AMP bug) for UCKK6 sucking. It hasn't happened at all since switching to XWKL1.
[AT&T Samsung Galaxy S II SGH-I777] :
Flashed 01-23-12 is it safe to jump to 01-30 or should I just work my way there from in between?
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
My suggestion, run and collect some stats on 01-23-12 or 01-24-12 for 2-3 days on 1-2 wifi networks ( that you often or regularly connect like home or work wifi), and then go up like 01-29 or 01-30.
[AT&T Samsung Galaxy S II SGH-I777] :
What stats and can I ask how the wifi ties into everything?

Thanks
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
stats - battery usage, performance, playback of some videos ( diff. format),any wifi drain,etc. if you look at previous posts, discussions are on these topics and how same DD behaves with different base/Modem such as KK6 and KH7,etc. Basically I do take some notes of how each DD release does with my daily requirement,why so, because It's easy to fall back to right one!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Should be safe to just jump from 1/23 to 1/30 - There are no significant wifi changes in there by the way. The wifi drain issue I was having (which seems to have disappeared on XWKL1) started with the 1/2 update and has continued since then - it may even have affected the 12/21/2011 update but I was out of town too much to notice.

The biggest thing is that from 1/24 to 1/29 I added the cpuidle backport - that negatively affected video playback for a small number of people, as mentioned in my last post.
[AT&T Samsung Galaxy S II SGH-I777] :
I'm on 2.3.4 UCKH7
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
In my opinion, 2.3.4 KH7 has been very battery friendly! :)
[AT&T Samsung Galaxy S II SGH-I777] eep2378:
I'm thinking its spell checks fault! Automatically finishing the word "trophy". Damn spell check lol

Sent from Wernicke's Area
[AT&T Samsung Galaxy S II SGH-I777] :
I know right. Its my gfs sgs2 and bat has been great for her!

Sent from my INFUSE powered by ZEUS
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Interesting - I was finally able to reproduce the video problem when I was flashing a slightly less debloated version of XWKL1 than what I had before. So I'll try and see what I can do with it tomorrow if it continues acting up.
[AT&T Samsung Galaxy S II SGH-I777] geomax45:
I am not the smartest dude around so I have to ask:

Will the cpuidle and AFTR stuff play well with slight UV?
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Is the AFTR something that can be controlled at run time with something like tasker?
[AT&T Samsung Galaxy S II SGH-I777] garyd9:
It's actually an intelligent question. It hasn't been answered a dozen times already, and shows that you actually want things to work properly.

The answer is that it shouldn't. The place that an UV will most likely cause problems for a processor is when it's at peak usage for a given speed.

Now, that doesn't mean it WON'T have any impact. If you are having problems with the cpuidle/AFTR stuff and are undervolting, I'd suggest removing the UV and seeing if the problem persists. If it suddenly goes away, then either there IS an impact (which would be curious) or it's just a coincidence. :)

Take care

Gary
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
It shouldn't - if anything, they are both ways of going towards the same goal. But as Gary said - try it, and if it doesn't work, back off the UV settings.

That's basically what the modification to the aftr_enable init script I asked you to try does - by changing the "3" to a "2", it disables AFTR.

The way this works - in sysfs there's an enable_mask value for the various idle states. It's a bitmask, so each bit represents a state. Normal IDLE can't be disabled, it's always on, it doesn't have a bit in the mask. AFTR is a "1", LPA (the deepest idle state) is "2". So an enable_mask of 3 is "everything enabled", an enable_mask of 2 is "LPA and IDLE, but no AFTR". Older kernels defaulted to 2, newer ones (after the cpuidle backport) default to 3, and in addition, allow AFTR in situations where it wasn't chosen before.

So it can be disabled at runtime - but I want to have stable defaults. However stable defaults here means only those who run an enabler script benefit from the new cpuidle code. So I think the best solution (which will take a bit of work) is to disable AFTR whenever hardware video decoding is active, and also allow the user to override this disable.

I've had a few other patches queued up, so I'm probably going to do a release with them tomorrow - those currently with video decoding issues can disable AFTR as described a few pages back until I release a better fix.

Go figure - after doing a TiBu restore on XWKL1, I stopped having the video decoding issues. Weird. But at least I THINK I know how to reproduce it again, it's just a pain in the ass!
[AT&T Samsung Galaxy S II SGH-I777] cwc3:
So grateful to have you here Entropy. Learn something every time you post. Glad to see developers explaining and helping.
[AT&T Samsung Galaxy S II SGH-I777] AntwanL:
Just got the steps done and flashed the test kernel and video seems to be working fine, the fix worked.

I'm really sorry it took so long to get back to you. I've been swamped with exams and since this device does everything (almost) I don't use my laptop all too often. I mostly use Tapatalk when I get on XDA.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Good question. In my experience, it has, and consistently so. I've had SODs across roms as well, and that's the only thing I changed. Backing off UV stopped the SODs completely, even though they were only -50mV. Right now I'm only at -25mV. While I'm not currently on this kernel, I suspect the same would happen if I were. At any rate, my hypothesis is that the benefits of idle probably supersede those of being UV by only another step.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yup, hitting deep idle is more important than hitting UV - but the new cpuidle patch just means we can hit a certain state (AFTR) in a few conditions we couldn't before.

Old behavior:

If expected residency > 40 ms, try to hit LPA, if that fails, enter AFTR (if it's been enabled by the enable_aftr script from my init.d scripts thread)

New behavior (1/29 and later)

If expected residency > 10 ms, enter AFTR

If expected residency > 40 ms - same behavior as before (except AFTR is enabled by default)

So really the only difference between old and new is when the expected residency is greater than 10 ms but less than 40 ms.

The problem seems to be that when decoding video, expected residency is somewhere right around 10ms - for some people, it was just over 10, AFTR got chosen, things went boom.

This shouldn't affect ability to UV much if at all.

I've actually implemented AFTR lockout on video playback - and a bunch of other things. So probably will release tomorrow.
[AT&T Samsung Galaxy S II SGH-I777] droe411:
Entropy great work, second device running your work! 5.5 hours of screen time yesterday, still didn't get it under 20%. I know I have read some issues with video, does that include flash video? I have issues with those being stuttered. Good work!

Sent from my SGS2 AT&T
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Hardware accelerated video only (I think flash may be software-only), and most users who reported issues stated that it was only when playing from local storage, not when streaming. Also, the issue was that after a few seconds, the playback would stop with a "bad data" error of some sort.
[AT&T Samsung Galaxy S II SGH-I777] rattarico:
Is anyone experiencing a shut down after full charge is complete? I did a quick search but found nothing but may have missed something.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Nope, not here. If you're SoDing, long-press power to reset the phone and then pull /proc/last_kmsg

Note: If you're undervolting or overclocking, disable these first, as described in the first few posts of this thread.
[AT&T Samsung Galaxy S II SGH-I777] shinji257:
Actually I've seen this as well. Next time it happens I'll try to do that as well. I think I started to notice it on the 1/24 kernel but I thought it was my phone just being weird.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Seen what? SoD?
[AT&T Samsung Galaxy S II SGH-I777] shoman94:
Thank you

61700177PX195942A
[AT&T Samsung Galaxy S II SGH-I777] jazzboyrules:
Thanks Entropy, I flashed this in yesterday, I am undervolting/clocking, and so far everything's good :)
[AT&T Samsung Galaxy S II SGH-I777] rattarico:
No sir I don't think it is SOD I actually had to push power button and it booted up as if it is a normal power up.
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Magic of Entropy's DD (01292012) with UnNamed 221 + KH7 combination > 3 days

I know I am spamming but cannot stop myself from posting this pic! Wonder of Entropy's DD (01292012) with UnNamed 221 + KH7 combination, more than 1hr Display already on and syncing 5 + email accounts all the time and Market update, 99% of time on wifi! still 10% juice left that can easily stretch 1 hour screen on for browsing :D

3 + days ..still going strong!

Edit:

I forgot to mention, in these 3 days, about 6+ calls (each 2-3 minutes), checked my emails ( that 1 + hour display on counts here), and updated very few apps, that's it.
[AT&T Samsung Galaxy S II SGH-I777] :
an hour screen is nothing .... if I had only an hour I'd get 3 days as well.

Sent from my A500 ICS dream machine
[AT&T Samsung Galaxy S II SGH-I777] shoman94:
Pretty cool...but I could not image having 1 hr worth of use over a 3 day period.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I could probably use that little... Depends on the day. If I'm spending most of my time at work or home - I can at best check and delete emails from work (signal strength sucks), and no point using it at home.
[AT&T Samsung Galaxy S II SGH-I777] MysticKing32:
Lol I'd get a week
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Entropy, just to confirm and FYI, (unnamed v2.2.1) 2.3.6/KH7/DD 01292012 gives "file has incorrect data" error while playing some internet downloaded movies/videos from my SanDisk 32G class 4 MicroSD card as I tested them today. The video starts okay but when I fast forward, this error pops up.Since there's enough test data and root-cause found, I presume no more data needed on this for you,thanks!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yup, I've got a fix queued up, I was going to release it last night but I went to bed early.

The next few days constitute one of the final testing events for a system I've been working on at work for over three years - things are going to be busy and I won't be around too much until later this week, I'll do the release work for the AFTR lockout patch then.
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
DVT's, soo much fun, eh? I'll be there next year at this time.

Good luck!

T
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
You guy see any difference with 1/29 and 1/30? I jumped a few to 1/30 last night. Wondering if I should have tried 1/29 first.
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
1/30 + KK6 was rough on my work wifi and smooth on my home wifi, but 1/29 + KH7 is smooth both on work and home wifi (am currently on this). But yet to test 1/30 and KH7 combination. Meanwhile 1/29 and 1/30 have a known problem of playing some movie format from internal storage as you read in last few pages and Entropy has a fix but yet to do release work later this week per his last update.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Thank you very much for your info. I'm on KK6. Not sure I want to try KH7 as I'm still learning here and don't want to muck anything up lol. Was using 12/12 I think, but could be wrong...didn't have any real issues. Just thought I would try out a newer one. Flashed last night so gonna give it some time to settle in. I did read about some video issues a few were having. Don't remember what videos were causing the issue. The only videos I have and use are the ones taken from my phone. Those work for me.
[AT&T Samsung Galaxy S II SGH-I777] pistolberserk:
Right before class my phone was working fine. Put into backpack. After class, phone wont respond or turn on. I pulled battery and even tried plugging it into the charger. But nothing happens, its essentially dead. The screen doesn't come on at all or anything.

Any ideas?

I was running stock with 1/30 dd. This has never happened before.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Close - Validation and Verification event. Went better than expected (we're way ahead of schedule), still, I'm wiped and tomorrow is another 8 AM. As soon as I finish this post I'm going to get dinner.

KK6 kinda sucks wifi-wise regardless of kernel... :(

Hmm... How high was the battery to begin with? I've never heard of anything like this randomly happening due to a kernel, my guess is that you got unlucky with a hardware failure - it happens.
[AT&T Samsung Galaxy S II SGH-I777] pistolberserk:
It was probably around the 84 or a bit lower percent range
[AT&T Samsung Galaxy S II SGH-I777] AntwanL:
Were the videos avi format? Had the same issue. The AFTR fixed it. Its up in the useful init.d thread and instructions in this thread for modding the init.d file.
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Yes, in fact I tested with .mkv files and .avi files and both resulted in error during my testing, but they play good most of the time, not a kind of show stopper for me.
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Entropy, I updated my observations with 0130/KH7 on my work wifi here ..

http://xdaforums.com/showthread.php?t=1289460&page=153

I am still puzzled why DD 0130/KH7 drains (3%/hour idle) faster than 0129/KH7 (1%/hour idle) on my work wifi, anyhow I purchased BetterBatteryStats from Market and make use of this for more clear analysis, thanks as always!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I put out a release that should have some cpuidle fixes for those who had issues with video playback, along with some patches that were already queued prior to doing the AFTR lockout work.

It doesn't have the amount of testing I normally prefer to put into a kernel, but it should be OK. I pushed out the standard release for those having issues with hardware accelerated video playback on 1/29 and later. This SHOULD fix it - but before I implemented this I stopped being able to reproduce the problem. If this doesn't fix the problem for tedkunich, AntwanL, and others, I'll need some more time to really focus on this issue.

If there isn't any horrible brokenness and the AFTR lockout fix seems to be working for those that had issues with the cpuidle kernels before, I'll release Experimental - it will be dated 2/07 to match this even though it might actually get out a day or two later.
[AT&T Samsung Galaxy S II SGH-I777] desiromeo719:
Nice! Thanks...installing now.
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
So far, so good. video playback works smoothly so far with three or four that were giving problems with the previous kernel.

T
[AT&T Samsung Galaxy S II SGH-I777] nbell13:
Awesome!! Downloaded, waiting till morning to flash as phone is currently off and charging. :rolleyes:
[AT&T Samsung Galaxy S II SGH-I777] stalked_r/t:
I had this same exact problem. Took it into an AT&T store, they said... nope, it's dead. I called into premier since I'm a business customer and can't do anything in a physical store and they ran me through a plethora of attempts to get it to boot. Same thing. They said it's dead. They gave me 2 options.

1. They can ship me a phone and I'd get it in about 3 business days.

2. I can walk into one of local certified tech center/warehouses and they would give me a new phone.

I chose option 2. I walk in tell them everything. They mash on the power button a few times, then plug it into a contraption that had every imagineable power adapter on it. The damn thing booted right up.

So what I'm saying is I don't have an answer for you, but I'm using the same phone still and it's working again. they told me that the custom theme I was running was what broke it. I told them 'good day' and walked out.
[AT&T Samsung Galaxy S II SGH-I777] stalked_r/t:
So i updated to 1/30 yesterday before you released the 2/7 and found my battery life was substantially better. After 15 hours, I had 65% battery left. The only time my phone hit the charger was while driving home, so it was on one for about 20 minutes. This is with WiFi on and connected all day and Bluetooth on as well with average use.
[AT&T Samsung Galaxy S II SGH-I777] shinji257:
Don't think so. I've seen that before. It is like the phone actually shutdown after the phone charged. Problem is that the issue doesn't happen often.
[AT&T Samsung Galaxy S II SGH-I777] players_inc17:
So i downloaded and install lastest feburary updatw , didnt wipe dalvic (never realy since ive been using the same kernal) but now my phone is stuck on the samsung screen with the yellow triangle. Pulled battery out. And even tried to get in recovery and cant. And suggestions ??
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Can you charge the phone for 10 minutes and then try power on, what was the battery percentage like before you flashed?

Sent from my SAMSUNG-SGH-I777
[AT&T Samsung Galaxy S II SGH-I777] desiromeo719:
the new update is running sick! No problems here...and the video problem is fixed
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
I guess you meant slick! ;)

Sent from my SAMSUNG-SGH-I777
[AT&T Samsung Galaxy S II SGH-I777] JmPTaz09:
Video working fine here as well, running 2/7 version, all seems well.
[AT&T Samsung Galaxy S II SGH-I777] shoman94:
Likely you need to flash an Odin version of the kernel. That's a soft brick. Go into download mode and fire up Odin and flash the kernel.

Do you have adb? You can push z image that way also.
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
+1. Video playback issue's gone, thanks Entropy.
[AT&T Samsung Galaxy S II SGH-I777] kamots:
Would Mobil odin work too? Just flash the zImage?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Sounds like somehow a jig caused it to start working... Weird.

Another weird thing is that you are unable to get in-store support with your Premier account - I have a FAN applied to my account and I do ALL of my business with AT&T in the local store. In my opinion it's the only way to get decent service. Not sure why you're unable to.
[AT&T Samsung Galaxy S II SGH-I777] skullunit:
Pretty satisfied with 1-29-2012 version of the kernel but now I can see there have been two updates. Any big advantage to flashing 2-7-2012..? :D