yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Interesting - you're the second person to report this. External or internal SD?

Which ROM?

If external SD, what brand/model?

Please try to get a dmesg and a logcat. Also read below.

I tried the video you sent me a link to - no problems playing it back here from my external SD. However, in the logcat you posted, I didn't even see any signs of an attempt to play video, just a bunch of logs indicating that the system decided to start running a filesystem check on the SD card.

Does the video play at all then stop, or does it die without playing anything?

If possible, depending on how you grabbed the logcat, try to do the following:

Clear the log. For me it works to do this:

adb logcat -c

Then unplug USB (since you've said this seems to affect the issue), reproduce the problem. Ideally do it a few times.

Then grab a logcat after you've gotten it to happen a few times.

Edit: Ideally, get a timestamped logcat. If using adb:

adb logcat -v time

Actually high AOS is usually due to incoming network traffic (or the UCKK6 BT-AMP bug) - an app holding you out of deep sleep will make this go away, because all of that CPU usage is stuff that happens during the suspend/resume process. If the device never goes to sleep, it doesn't have to wake back up.

The symptoms of the problem I encounter are:

Standby drain goes from well below 1%/hour to a bit over 2%/hour

Deep sleep statistics in CPUSpy are not impacted - if I reset the timers then go to bed and the problem happens, I'll often see the deep sleep percentage at 97% or so.

No significantly long wakelocks listed in BetterBatteryStats
[AT&T Samsung Galaxy S II SGH-I777] Haas360:
So can we manually add lulzactive governor? The new one has three more user configurable parameters like

inc_cpu_load=##

pump_up_step=#

pump_down_step=#

And why wont this command work. It says non existent directory

#set AC, Misc & USB charge current

echo "750 750 450" > /sys/devices/virtual/misc/charge_current/charge_current

:rolleyes:
[AT&T Samsung Galaxy S II SGH-I777] AntwanL:
The video starts an like 2-5 seconds in stops and moves to the next in line. I'm currently on 1/30 non exp. Netflix works fine and videos I record with the camera app work fine. It's both internal and external sd videos. The logcat I took immediately after the video since as soon as I hook it up to attempt a logcat it works fine. But if I plug the phone into an AC adapter or disconnect it from my computer at all videos no longer work.

I hope some of that makes sense, I feel like I'm rambling and not making much sense.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Nope... The majority of the time, custom governors just cause problems and don't work quite right. I definitely don't trust anything coming from frequent GPL violators like Tegrak.

At most I'm considering adding suspend profiles to the conservative governor and maybe ondemand, that's it, since people crave that extra 0.1 second on wakeup.

I might also look into taking account idle time residency in a governor (see Wheatley as an example of a governor that does it - great concept but that specific implementation has flawed assumptions in my opinion.) - However this depends on the kinks in the cpuidle backport getting worked out. The old cpuidle driver had some severe flaws that prevented any governor that did sleep state tracking from working as designed.

Anyway - we have the massively overhyped "lionheart" and have had it since before "lionheart" even existed (because I don't overhype things that aren't deserving of hype). Just drop the polling interval of the conservative governor down to make it more responsive. (It's the sample_rate variable - which is kind of improperly named since it's a sample period - reducing it makes it poll faster, not increasing it.)

Because I actually try to test features to make sure they're working before I throw them in there, instead of just throwing any random patch I feel like into my kernel.

Maybe you should read the first post of the thread for stuff you're flashing?

http://www.youtube.com/watch?v=FL71G2YEIHU

I'll look at it again - but it looks like something caused Android to decide to run a filesystem check on the SD card. Again:

Which ROM?

I guess brand/model of external SD doesn't matter as much since internal isn't working either.

USB may be affecting it due to preparing for unmounting so the card can be exported to USB - not sure, I'll look again tonight.

To change the topic slightly - I'm playing with XWKL1 now (manually deodexed and debloated). I found what is likely a second contributor to UCKK6 battery drain issues beyond the BT-AMP bug, I need to flash over it to test. If it doesn't suffer from the BT-AMP bug, XWKL1 is a promising base.
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Entropy, seems like I have the same video playback problem. Do you need any more logs to help diagnose? Vids that are crashing are handbrake DVD rips.

Running icsscrewed with your 1/30 kernel.

T
[AT&T Samsung Galaxy S II SGH-I777] :
GUYS, ENTROPY HAS ASKED

SEVERAL

TIMES TO GET A LOGCAT OR DMESG FOR HIM TO LOOK AT. HE CAN NOT DO ANYTHING IF PEOPLE JUST POST "VIDEOS CRASH, PLZ FIX".

THE MORE LOGCATS AND DMESG THAT ENTROPY RECEIVES WILL GIVE US ALL A BETTER CHANCE OF HIM SPOTTING THE PROBLEM AND FIXING IT.

IF YOU HAVE A PROBLEM OR ISSUE, PLEASE BE SURE TO GRAB A LOGCAT AND/OR DMESG AND POST IT HERE INSTEAD OF JUST POSTING TO SAY YOU HAVE A PROBLEM.
[AT&T Samsung Galaxy S II SGH-I777] rdannar:
Entropy..,. Been using Xali2 with none of the user problems... I don't bthid. But other than your known slight battery drains... No issues. Maybe use as base as it is the latest firmware.
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Um, I thought I was asking if he needing more data, sorry if it was not clear.

T

Edit: I'll post data today some time, but i need to get butt into work right now.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Considering that I ask for data and give some additional clarifications on how to collect it only a few posts above where you asked if I needed it... I think the answer should be obvious.

In your case, while it is probably not relevant, it could be - What Handbrake preset are you using?

The info on how I'd like logcats collected is above. In addition:

I need to know which ROM people who have this issue are on

Are you using any comprehensive tweak scripts of any sort such as V6 Supercharger? (If so, remove them before reporting any further bugs. Most of them are crap - for example the Supercharger guy disabled the kernel panic reboot timer which is idiotic on a mobile device.)
[AT&T Samsung Galaxy S II SGH-I777] tneil:
Well, I've being using 1/24 for almost a week now without any problems. Battery drain is the lowest its ever been with around 0.5%/hr overnight. I'm going to flash 1/30 sometime this weekend and report back.
[AT&T Samsung Galaxy S II SGH-I777] nyamoV2:
Just an update. I've been playing with stock kk6 no mods with the 1-30 dd and everything seems to work just fine. Much better than with the kh7 base. no screen lag on wake and videos play fine. also idle looks like maybe 1% an hour on wifi over the past 4 hrs.

Entrophy

Did you still want logs for my kh7 problem or am i beating a dead horse with my one time problem?
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Sorry, did not see your earlier post...

Do not have the handbrake settings here (home PC), but the vids use the AVC1 codec in the MP4 container. Audio is MPEG-4 AAC LC

container info from gpot:

mp42: MP4 v2 [ISO 14496-14]

- isom: MP4 Base Media v1 [IS0 14496-12:2003]

- avc1: MP4 Base w/ AVC ext [ISO 14496-12:2005]

Recommended Display Size: 480 x 352

I have attached a logcat - cleared prior to running the vid.

T

Edit: Running ICScrewd 2.0.1 with your DD 1/30
[AT&T Samsung Galaxy S II SGH-I777] AntwanL:
I'm currently on UnNamed 1.3.2, I'm not sure what brand but I know the sd card is a class 6, 8gig.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
For now, since you've fixed it by moving base (or maybe the mere act of wiping fixed it) - it's up to you.

Pretty close to what I use. ICScrewd is XWKL1 based - this is interesting because in my case, I am unable to use the "back" button to return to the video list on XWKL1, regardless of kernel.

OK, so two of the people with issues are on UCKH7 based firmware, one on XWKL1. Going to try Nandroiding back to KH7 to see if I can reproduce.

All those getting logs - In the future, try to get timestamped logcats. If using ADB, this will do:

adb logcat -v time

Based on tedkunich's log, it seems like somehow the media is getting corrupted between the filesystem and the video decoder. Now to figure out how... Hopefully I can get it to misbehave on UCKH7, if I can't I'm going to have to shoot in the dark with patches and test kernels... :(

Edit: Can't reproduce on UCKH7. I've got an idea to try, workin on a test kernel.
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Is there anything else I can provide to help?

T
[AT&T Samsung Galaxy S II SGH-I777] eep2378:
"Back" button to go back to video list is working for me on Foxhound(KL1) and your 1/30 exp kernel.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Those who are having problems - I can't remember if anyone tried this yet, but:

If you use the AFTR enable script at http://xdaforums.com/showpost.php?p=20023083&postcount=4 on 1/24 - does it break?
[AT&T Samsung Galaxy S II SGH-I777] AntwanL:
Just installed enable_aftr and everything seems to work fine

1/24 kernel and UnNamed 1.3.2
[AT&T Samsung Galaxy S II SGH-I777] naturallyfrozen:
Entropy, I would like to say thank you for your dedication. Now here comes my issue... (its gonna be rough info, bare with me)

I'm now running Siyah's latest kernel. I tried to go back to your latest kernel but I keep having issues with wifi. I mostly run it 24/7 at home, unless I leave. When I installed it (100% charged used jivy's cleaner) and ran it, it always have a hard time connecting. It would sometimes connect and lose connection. I HARDLY have this issue with Siyahs.

Would the issue be the location? I'm not far from my router, but there's plenty of walls (not sure if it matters). If anyone can answer this, Id be grateful. Thank you, in advance.

NoSig
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
What ROM? What router?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
OK, last but not least:

Change the "3" to a "2" in the enable_aftr script, then install 1/29, 1/30, or the test kernel I gave you. Doesn't really seem to matter which, as since the test kernel breaks things, it's gotta be cpuidle.

What the above does is: Instead of enabling AFTR on a kernel that has it disabled by default (1/24 and earlier), it disables it on a kernel that has it enabled by default (1/29 and later).

As to why this is actually different - in the newer cpuidle code, AFTR is a separately tracked state with a much lower target_residency than LPA. To say it more simply: Old kernels will chose LPA if it seems like they'll be idle for more than 40ms, and enter AFTR if they chose LPA but were prevented from doing so. The new cpuidle code will choose AFTR directly if it thinks the CPU will be idle more than 10 ms but less than 40 ms.
[AT&T Samsung Galaxy S II SGH-I777] :
Hey entropy I skimmed the thread looking for my answer and decided to just ask. Can I flash this from Odin mobile or PC over stock 2.3.4 to gain root/cwm and your kernal? Like in the root video but your kernal instead ;-) gf finally got her sgs2 and I'm just looking for root plus a bit extra your kernal provides!

Thanks
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
You'll only get CWM initially - the first post has instructions on where to find a CWM-flashable root package to get you root.

Edit: It's no longer in the first post... I'll need to find a good place to add that. It's in the changelog though - see the 11/10/2011 entry
[AT&T Samsung Galaxy S II SGH-I777] :
well if you read the Odin mobile its says it can root device while flashing packages.... so assuming that I'll get your kernal and cwm then.... or I can root first an flash.

Thanks
[AT&T Samsung Galaxy S II SGH-I777] naturallyfrozen:
latest Unnamed, linksys 2.4ghz/54mbps

NoSig
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Entropy,

As with AntwanL, running 1/24 and the AFTR enabled, video playback was fine. After reinstalling 1/30 with the AFTR disable script, playback works normally.

T
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
So, to confirm:

1/24 works no matter what

1/29 and later fail if AFTR is enabled (default on 1/29 and later)

1/29 and later work fine if AFTR is disabled

Is that correct?

AntwanL - do you get the same results?
[AT&T Samsung Galaxy S II SGH-I777] tedkunich:
Correct - however I did not use 1/29, rather 1/30. Do you want me to try the 1/29 kernel?

T
[AT&T Samsung Galaxy S II SGH-I777] nyamoV2:
Entrophy your 1-30 dd is amazing. 11hrs 4m on battery with 2hrs 34m screen on time and im at 40%. My current set up being stock kk6
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Just to confirm it's cpuidle, even though this last test is pretty conclusive evidence it's something to do with AFTR - since someone way back seemed to think only 1/30 was broken for them, which is inconsistent with your results and AntwanL's results.

AntwanL, can you please confirm whether disabling AFTR (look at the past two pages or so) fixes it for you?

Who is Entrophy?
[AT&T Samsung Galaxy S II SGH-I777] phonic:
I copied that bootanimation.zip to my /system/media folder, and rebooted, but I still get the AT&T startup animation. I did it manually (ie: used terminal program to remount /system rw, move the file over, chmod it, remount /system ro), but I doubt that would make a difference. Does this work with the stock rooted SG2, or do I need a special ROM or kernel to get this working?
[AT&T Samsung Galaxy S II SGH-I777] hkeyman:
Make sure you change the permissions to allow RW access to match the other files in the directory or the system will boot with the default animation because it cannot use the added one.

EDIT: And yes you need to have Entropy's latest Kernel build installed and the bootanimation.zip file needs to be located in the /System/Media folder.
[AT&T Samsung Galaxy S II SGH-I777] phonic:
Thanks, but that still isn't working. I chmod'd it 644 just like the other files in that directory. I even chown'd it root.root since the group was set to sdcard or something like that. Rebooted, but still get the AT&T logo.

Do I need to extract the zip file or do anything with it? I haven't, it's just sitting as:

/system/media/bootanimation.zip
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Try extracting it. If it looks like a CWM-flashable zip (has a META-INF directory), look for bootanimation.zip in it.

If it has a bunch of images inside it - no clue what's wrong.
[AT&T Samsung Galaxy S II SGH-I777] phonic:
Inside of the zip file, there is a file (desc.txt) and a directory (part0). The desc.txt file contains:

The part0 directory has 77 jpg files in it (f0000.jpg through f0076.jpg).
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I have no idea why it's not working, I just tested that Nexus bootanim.

Here's the output of ls -l for my /system/media directory

/system/media # ls -l
-rw-r--r-- 1 root root 21060 Aug 26 15:51 Disconnected.qmg
-rw-r--r-- 1 root root 37031 Aug 26 15:51 ODEAnim.zip
drwxr-xr-x 6 root root 4096 Oct 6 21:01 audio
-rw-r--r-- 1 root root 21224 Aug 26 15:51 battery_batteryerror.qmg
-rw-r--r-- 1 root root 22216 Aug 26 15:51 battery_charging_10.qmg
-rw-r--r-- 1 root root 19636 Aug 26 15:51 battery_charging_100.qmg
-rw-r--r-- 1 root root 22408 Aug 26 15:51 battery_charging_15.qmg
-rw-r--r-- 1 root root 22540 Aug 26 15:51 battery_charging_20.qmg
-rw-r--r-- 1 root root 22804 Aug 26 15:51 battery_charging_25.qmg
-rw-r--r-- 1 root root 22724 Aug 26 15:51 battery_charging_30.qmg
-rw-r--r-- 1 root root 22804 Aug 26 15:51 battery_charging_35.qmg
-rw-r--r-- 1 root root 22880 Aug 26 15:51 battery_charging_40.qmg
-rw-r--r-- 1 root root 23036 Aug 26 15:51 battery_charging_45.qmg
-rw-r--r-- 1 root root 22144 Aug 26 15:51 battery_charging_5.qmg
-rw-r--r-- 1 root root 22948 Aug 26 15:51 battery_charging_50.qmg
-rw-r--r-- 1 root root 23020 Aug 26 15:51 battery_charging_55.qmg
-rw-r--r-- 1 root root 23100 Aug 26 15:51 battery_charging_60.qmg
-rw-r--r-- 1 root root 23264 Aug 26 15:51 battery_charging_65.qmg
-rw-r--r-- 1 root root 23164 Aug 26 15:51 battery_charging_70.qmg
-rw-r--r-- 1 root root 23236 Aug 26 15:51 battery_charging_75.qmg
-rw-r--r-- 1 root root 23320 Aug 26 15:51 battery_charging_80.qmg
-rw-r--r-- 1 root root 23292 Aug 26 15:51 battery_charging_85.qmg
-rw-r--r-- 1 root root 23368 Aug 26 15:51 battery_charging_90.qmg
-rw-r--r-- 1 root root 23452 Aug 26 15:51 battery_charging_95.qmg
-rw-r--r-- 1 root root 20688 Aug 26 15:51 battery_error.qmg
-rw-r--r-- 1 root root 1837280 Oct 10 15:43 bootanimation.zip
-rw-r--r-- 1 root root 3123972 Aug 26 15:51 bootsamsung.qmg
-rw-r--r-- 1 root root 249872 Aug 26 15:51 bootsamsungloop.qmg
-rw-r--r-- 1 root root 21676 Aug 26 15:51 chargingwarning.qmg

Note that you've gotta be on "Doom v2" (the first CWM-flashable release) or later.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Are both 10/9 files oc/uv? I'd happily flash a non-oc/uv with bootanimation support if it was there. Not askin, just sayin.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yes, I'm waiting to hear from designgears if he wants a non-OC/UV variant for his builds.

The OC/UV variant defaults to stock voltages and clocks unless you override them. If that weren't the case I would NEVER have released it.

(I need to double-check the voltages... One of them might have been 25 mV under stock...)
[AT&T Samsung Galaxy S II SGH-I777] phonic:
I just installed the latest (non-experimental) kernel). Two questions:

1) Prior to installing it, I did a CWM Recovery backup. I assume that, worst case scenario, I want to go back to my prior kernel, I can use the backup, correct? If so, do I need to do a full restore or can I just do an advanced partial one? I noticed that it created multiple backup pieces including boot, recovery and system. Which one would I chose?

2) What are people using for OC/UV settings? If I UC/UV would that improve battery life?

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Boot image is the kernel. I've had some problems with boot image restores in the past.

I miss SGS Kernel Flasher. :(

Stable OC/UV settings are different for every device. If you value battery, don't overclock. Undervolting on the Infuse got me at most 5-10% CPU core power reduction (no reduction from the radio, peripherals, or screen) before causing stability issues. But it might get you a little bit if you do a lot of CPU-intensive stuff.

Edit: Some people created an "on charger" SetCPU profile to reduce clock to 800 on the charger if they used Google Maps Navigation frequently when docked. My charginghacks kernels for the Infuse reduced the need for this significantly, but it may be necessary with the crippled charging chipset of the GS2.
[AT&T Samsung Galaxy S II SGH-I777] phonic:
Ok, thanks. The stock speed is fine with me, so I was more thinking of underclocking to improve battery life. Is that worth doing?

So far things look good. I did however notice one issue. On stock kernel, CpuSpy was showing the times and the graphs were populated. Now however, with the 10/09 Doom kernel, the times are updating, but the graph bars are all grayed out. It is also saying that 1.4 and 1.6 are unused (which they are). Is this normal? I didn't see anyone else report it.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Oh yeah, minor thing I need to add to the first post as a known issue - for some reason the statistics are FUBAR at boot. When you boot, do a "reset timers", CPUSpy should be OK after that.

You shouldn't need to force underclocking to improve battery life unless you do a lot of stuff that ramps up the clock. Personally, I'd just tweak the conservative governor to be more battery-friendly first. Increase the "up threshold" significantly (I usually set it to 90), and also bump up the "down threshold" a bit (I run 50, am considering bumping it to 60). This will make the governor favor lower clock rates unless really needed.
[AT&T Samsung Galaxy S II SGH-I777] switters1:
Is there a changelog for revisions to this kernel?

DG has been posting X2 changes referencing an updated kernel here but I can't tell what has been changing in this kernel. Can somebody point me in the right direction?

---------- Post added at 10:39 PM ---------- Previous post was at 10:30 PM ----------

Nm. I realized that there are dates next to each feature. This probably makes the most sense for a "nightly"
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yeah. Down the line I'm going to clean up the changelog a bit.
[AT&T Samsung Galaxy S II SGH-I777] phonic:
Resetting the timers fixed the problem. Thanks!
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
I have searched and searched, but I still can't find it, Entropy.

You said in another thread that you had posted a method to remove the caution sign at boot without a jig, but I can't find it...

Maybe it needs its own thread
[AT&T Samsung Galaxy S II SGH-I777] dayv:
Check out these two posts from this thread

http://xdaforums.com/showpost.php?p=18238883&postcount=106

And this one

http://xdaforums.com/showpost.php?p=18257544&postcount=112
[AT&T Samsung Galaxy S II SGH-I777] Doug8796:
So what is the max OC this kernel provides?

I dont want to root until I know it is somewhat stable for someone here. I also know some kernels on the INT. GSII allow GPU oc as well.. I would love to try out the dreamcast emu on this phone with an oc'd cpu/gpu
[AT&T Samsung Galaxy S II SGH-I777] DevilDogAK:
Thank you Entropy

Thanks, yet again, for saving me Entropy. I too thought I broke my phone, yet again, and was ready to fix it using Odin. BTW I'm glad I jumped ship from the Infuse to the S2.

Cheers!
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
The messed up cpuspy stats at boot may be a cpuspy issue, as I saw the same behavior on my aria running cm7 as well. Just an fyi.
[AT&T Samsung Galaxy S II SGH-I777] eep2378:
Entrophy is the guy who developed this kernel, right? ;) LMAO!

Sent from Wernicke's Area
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Guess, he prefers to be called "Entropy512" :confused:

Entropy512,

BTW, I have updated the OP on the page 153 with my latest finding.
[AT&T Samsung Galaxy S II SGH-I777] :
No, Entropy did.