yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] titanic_fanatic:
For the Wi-Fi, go to Settings -> Wi-Fi -> Advanced and uncheck scanning always available. This will allow your device to go into deep sleep.

I haven't had a chance to look into the camera bug yet as I'm finishing up with the bln. The mms wakelock would be responsible for checking for new mms messages, it shouldn't be the cause of no deep sleep though ;)
[Galaxy S II General] titanic_fanatic:
Alright guys, the BLN fix is ready. This adds new settings in the BLN section in the advanced device settings to control blink interval and blink timeout.

In addition to the new GalaxyS2Settings.apk, there are two new libs, /system/hw/lights.msm8660.so and /system/lib/libandroid_servers.so. The changes to those libs prohibit the system from writing any values into the blink_interval and blink_timeout character devices. This will be managed from the advanced device settings from now on.

Here is a flashable zip, just download and flash from cwm. The zip replaces all 3 files mentioned above, sets their permissions and deletes the dalvik-cache file for the GalaxyS2Settings.apk. android should tell you it's updating 1 app when you reboot ;)

Let me know if your settings are not sticking, although mine have stuck for an entire day now ;)

ENJOY!!!

BLN-FIX-cm-10.2-20131201-celoxhd.zip (519.7kb)
[Galaxy S II General] danrobi:
Just installed the bln fix, parameters was crashing , did a reboot and it works fine now. Thanks Titanic.
[Galaxy S II General] Zippy Dufus:
Battery life not good; Talkatone not working

Hello,

Attached are two screenshots showing the battery life for future reference:

with wifi turned on (and that pesky red border visible)

airplane mode - this is the one where it completely powered down

They both seem to drain in about the same time. I am using the ROM without any of the subsequent tweaks and no user activity.

I have now changed my CPU governor from Interactive to On Demand and will repeat the test. Normally, I run all my devices in On Demand mode. I'm not sure that it is going into deep sleep and will be watching for this.

--//--

The phone that I am trying this ROM on has no SMS card. So I installed Talkatone to see if I could make an Internet call. This didn't work well. The input in the phone keyboard on the screen was incredibly laggy and essentially unusable. When managed to put in a complete phone number it could not make the call. Methinks that there is a lot of tweaking and configuration to be done. :(

Great job so far!

Cheers.

--//--

Edit - corrected to "On Demand" ... sorry.
[Galaxy S II General] formercontra:
About an hour ago I try to open Trickster Mod, and up pops the 'This app requires root access', and now none of my root apps are working. I rebooted, cleared the cache, it's still behaving as if the phone wasn't rooted.
[Galaxy S II General] :
I think there's an option somewhere to enable root.....i just forget where. Dev options or security maybe??

______________________________

Sent from my cellular telephone. Battery problems? >>>> http://xdaforums.com/showthread.php?t=2461864
[Galaxy S II General] titanic_fanatic:
Are you using the built in or SuperSu? Can you su in the terminal emulator?
[Galaxy S II General] RukusX7:
I have no overlay issues when playing videos. I have debug.composition.type=mdp set in build.prop
[Galaxy S II General] formercontra:
I'm using the built in su, and yes su in terminal emulator appears to work just fine. I'll try SuperSu.
[Galaxy S II General] titanic_fanatic:
Make sure you follow my directions in the OP for SuperSu. You can't revert as of now. Until I figure it out.
[Galaxy S II General] iDynamics:
Had a few random reboots when I changed the governor. Just wanted to report.

Really enjoying the rom so far, keep up the great work. :D
[Galaxy S II General] titanic_fanatic:
This was surprisingly the case out of the box ;)
[Galaxy S II General] RukusX7:
Seems that setting to MDP rather that dyn also fixes any glitch issues other than lock screen going blank first push of button from deep sleep
[Galaxy S II General] titanic_fanatic:
Do you have your overlays turned off with MDP? Do you no longer see flickering with those settings?
[Galaxy S II General] titanic_fanatic:
Thanks for the shots, my battery has unfortunately not been very good, although I'm seeing a weird wakelock called qcril_fd. It has to do with the radio, and fd means fast dormancy. I don't know if bell supports that, and I don't know if this phone does either. I also can't find the nwk....db (can't remember the whole filename right now) which is the db file where one would supposedly turn off fast dormancy.

In regards to the flickering red border, you did see my post about changing the build type to user instead of eng in the build.prop right? If your just testing, sorry for pointing it out again ;)
[Galaxy S II General] formercontra:
Okay, trying to install the SU binary by clicking the CWM choice did not work, but flashing the SuperSu zip in CWM did. Root apps are now working!
[Galaxy S II General] titanic_fanatic:
Thanks for letting us know. I used the cwm method when it asked and that worked for me, I'm curious why it didn't work for you. Did it reboot you into cwm? Did cwm give you an error message?
[Galaxy S II General] formercontra:
Clicking the TWRP/CWM option led to the "SuperSu will now try and boot into recovery, if it doesn't work boot to recovery manually". Clicking OK would just close that message, and going into CWM manually didn't give me anything to flash, or at least I didn't know where the file was stored. So I just found the apk online and flashed that.
[Galaxy S II General] titanic_fanatic:
Wicked, I'll post that and give you a mention on the OP ;)
[Galaxy S II General] titanic_fanatic:
Alright guys, there is no longer a need for the universal init.d app or Rescan media ;) I have two scripts here that will run on boot, one you know as the 91fixoverlays script, it's new partner in crime is the 92disablemediascanner script. If you haven't guessed from the name, it disables your media scanner on boot.

Just rename each file and remove the .txt then cut/copy them to /system/etc/init.d and give each file the same permissions as the other ones that were already there.

After that, you can uninstall universal init.d (one less app to start now) and reboot the phone. The scripts will now run at boot and disable the HW Overlays and the Media Scanner as soon as they are initialized.

EDIT:

Also note that the 91fixoverlays script has changed and you will need to replace the one you have if you've already downloaded it from my earlier post.
[Galaxy S II General] FuryriderX:
Maybe you've noticed this too, but if you get the black screen, you can still unlock the phone by swiping where the lock icon would be. Screen doesn't come on though after unlock.

So the phone is coming on, just the screen isn't.
[Galaxy S II General] Zippy Dufus:
I corrected my previous post. I meant to say ONDEMAND instead of PERFORMANCE. Sorry.

The device is charged up now and will let it sit. When it is almost drained I'll capture the battery stats. CPUSpy is now installed and I'm interested to see if it goes into deep sleep.
[Galaxy S II General] RukusX7:
I don't have overlays disabled in developer options with my setup. I have zero flicker .
[Galaxy S II General] Blazing Hornet:
What do you mean by yours have stuck? After your BLN Fix it has stuck? I'm puzzled.
[Galaxy S II General] titanic_fanatic:
The default for the blink interval is 500. If you change that and find it later that it got reset to 500 then it did not stick ;)

So I mean to say that the values you set remain and do not get reset to their defaults.
[Galaxy S II General] EvilDan:
Wi-Fi is not a problem for me since I only switch it on when I need it.

I did all what you said and so far it seems to be working, my battery only goes down 2~3% over night.

Previously, I had a huge drain... went to sleep with 30% left, battery was dead in the morning...

I have also set the cpu governor to ondemand,

I will keep testing for a few days and report back, thanks
[Galaxy S II General] BuffMcBigHuge:
Hi Titanic,

I installed this ROM on a friend's i757m, and she is experiencing high RAM usage. It doesn't say in Apps>Running what processes are taking up the majority of the RAM. Any insight?
[Galaxy S II General] titanic_fanatic:
Best suggestion would be to use greenify to stop apps from running in the background unnecessarily ;)
[Galaxy S II General] m54:
Unrelated to your BLN fix, I believe my BLN is stuck "off" somehow and I dont know how or why. Any suggestion on where to check and maybe some values that should be set for it to work properly?

I was hoping your fix might do that trick for me but after i flashed and reset everything, nothing changed, still no BLN :(
[Galaxy S II General] titanic_fanatic:
Browse to /sys/class/misc/backlightnotification and check the value in enabled (should be 1 this enables bln) and check the value in blink_control, change that to 1 to activate the blink for testing and back to 0 to turn it off.

Does it blink?
[Galaxy S II General] Tronith:
Hey guys. This is a port by rani9990, it's the original task manager for the s3, which is the same for our phones. The last updated made the flash able zip not work anymore, but thanks to rani9990 I was able to load it up on the phone again. I'm sharing my find with full credit to him.

In addition, I asked rani9990 if our lovely developer titanic_fanatic would like to add this app in his rom would it be okay. He said of coarse, just to post a link to the original thread. If titanic_fanatic agrees to add this to the next update/ anyone other than me would like this just say something! :)

Here is the link

http://xdaforums.com/showthread.php?t=1770190
[Galaxy S II General] m54:
Hi Titantic, Thanks for the quick reply!

The value in enabled was 1, and when i changed the blink_control from 0 to 1, they started blinking until i changed it back to 0.
[Galaxy S II General] titanic_fanatic:
That means it still works and that it's most likely a setting in a third party app. Is the BLN working for any notifications? I would check in your settings for sms if you use a third party app as they can control notifications. So if you have that disabled in a third party app, even if you have bln active, BLN notification will not actually be activated. Also check other apps that may also control notifications ;)
[Galaxy S II General] titanic_fanatic:
I'm looking into this, I only found a couple of attachments in the posts as it seems to have been removed from the OP.
[Galaxy S II General] Tronith:
Hey titanic. I can't qoute you because xda keeps crashing on my phone when I try to...

Any who yes the attachments are currently the only files on there now. The attachments are still from rani9990. And again you can easily ask him if you have any comcerns
[Galaxy S II General] JacksonJ:
Just a quick question. I've been reading this post for quite some time now and it looks like a lot of good effort went into this. I had just recently upgraded my SGH-I757m to 4.1.2 and have had nothing but issues. I like some of the features that were added but am tired of the constant daily restarts.

What I would like to know is if this unofficial release is more stable than 4.1.2?
[Galaxy S II General] titanic_fanatic:
I get no random reboots with this ROM. So I feel it is more stable than stock 4.1.2 ;)
[Galaxy S II General] JacksonJ:
Mine doesn't reboot, it locks up. I have to restart it by pulling the battery or holding down the power key.

I think I will attempt this. If it doesn't work I can always go back to 4.1.2 (Unstable) or 4.0.4 (Stable). Thanks for the quick reply Titantic_Fanatic.
[Galaxy S II General] Blazing Hornet:
It certainly is far more stable. The word 'stable' cannot even be used for the 4.1.2 update that Bell/Samsung made. That is the reason why I went looking for a new ROM as that was so awful. It lagged all the time and random freezes occurred non stop. I can confirm this ROM is much better :)
[Galaxy S II General] neptune_:
This rom has been the most stable and robust for me. Absolutely amazing! The best option for this phone.

Huge thanks to TF and contributors
[Galaxy S II General] JacksonJ:
Sold! I'm going to run through this over the weekend.

I was basically at my end with this phone but my contract isn't up until Summer 2015. I was starting to look around for newer phones on kijiji to buy and replace this phone.
[Galaxy S II General] :
I'm giving this phone to my mom... Flashed Rom and gapps and radio no problem. There's no sim card in it atm.... But when I turn on wifi it hangs there.... It won't turn on or show any networks.

Did I miss a post about this? :)

Sent from my Moto X cell phone telephone...

---------- Post added at 08:41 PM ---------- Previous post was at 08:27 PM ----------

Ignore. Factory reset fixed it. ;)

Sent from my Moto X cell phone telephone...
[Galaxy S II General] titanic_fanatic:
Hello Moto :P

I've never had a problem with Wi-Fi hanging. Hmmm, I'm not sure what to try other than re-flashing the radio. I don't think Wi-Fi is dependant on sim and that would be stupid anyways.
[Galaxy S II General] :
Factory reset fixed it. :)

Only issue so far is camera kinda hangs when i take a pic... And nothing in gallery. I wiped entire phone. So it's not corrupt media files from before 4.3.

I admittedly haven't went through this whole thread yet tho .... :)

And yes... The moto X is spectacular. IMHO. Was between this, G2 or HTC one. This was the winner and very satisfied. ;) Best thing for me.... I've broke 6 hour screen time.... With 1 day and 4 hours total time. And it's the same size pretty much as my S2. Don't need anything bigger.... Cause it's in an otter box defender.... It's big enough as it is. Lol

Highly recommend the moto x.

(end sales pitch)

Sent from my Moto X cell phone telephone...
[Galaxy S II General] titanic_fanatic:
Give the media scanner a little bit of time to fully scan the entire device. Once the db is completed it should show items in the gallery :) (although freshly taken pictures should already show up since it adds then to the db after the photo is taken)
[Galaxy S II General] :
Yeah... That's what I'm doing... Fresh pics. There are no old ones on it.

I'll try a reboot.

Sent from my Moto X cell phone telephone...

---------- Post added at 10:05 PM ---------- Previous post was at 09:53 PM ----------

Dcim folder is empty. :(

Sent from my Moto X cell phone telephone...
[Galaxy S II General] titanic_fanatic:
It's not saving the picture? Take a logcat after taking a shot and I'll have a look ;)
[Galaxy S II General] :
Just stock app. Fv-5 works fine. I'll do a log another day. I won't have time now... And giving them the phone tomorrow. They can use fv-5. It's a great app anyway... Paid version that is. Free one is like 0.2 MP. Lol

Sent from my Moto X cell phone telephone...

---------- Post added at 10:44 PM ---------- Previous post was at 10:37 PM ----------

My apologize. Lol I'm an idiot. Only had the moto x 2 weeks... So on the s2...i just was clicking on the screen. I wasn't hitting the blue shutter button. Lol the moto x you just tap anywhere on the screen and it focuses there and snaps the pic. :)

All is well now that I hit the button. Lol

Sent from my Moto X cell phone telephone...
[Galaxy S II General] titanic_fanatic:
No problem, just glad everything is working for you :)

Will you be watching this thread? I'm working on adding a sleep time to the BLN (if it works).

I've got the new sysfs entries all worked out and just need to get the system service to use the values stored inside and add settings to change those values.
[Galaxy S II General] :
I watch all the threads for the i757m...But I won't have the phone anymore. Lol

I can play with it a bit when I visit my folks tho. ;)

Gotta say... Already feel good sending it off to them with this rom on it. Smoothest rom for this phone one used yet.

Voice mail notification works now too right? That's awesome!

Great work man!

Sent from my Moto X cell phone telephone...

---------- Post added at 10:59 PM ---------- Previous post was at 10:58 PM ----------

Oh.... Is bln on by default? I don't have time to tinker around much. It's theirs in the morning. :)

Sent from my Moto X cell phone telephone...
[Galaxy S II General] pheonex42:
Love the mod my wifi is at 3 bars in a spot it used to be at 1 is it just a coincidence? one error i noticed i dont know if it happens for other but when adjust brightness by scrolling left to right on the notification bar it crashes i turned the option of anyway its annoying lol other than that works good as far as i can tell. thank you for a stable build :)
[Galaxy S II General] JacksonJ:
What am I missing

So I'm following all the instructions until it tells me to flash the rom. Am I missing something, I downloaded to my computer. Can someone point me at the right direction. Do I have to put the zip on my SD card before I started?
[Galaxy S II General] :
Yeah... The rom needs to be on your phone. :) you flash it from cmw.

Sent from my Moto X cell phone telephone...
[Galaxy S II General] JacksonJ:
Figures, I thought of putting all that there before I started...I tried to mount the USB mass storage but my system isn't detecting the phone. I can't find my Micro SD to SD card so I can't put this in my computer. I may have to go to extremes and put my SD card in my work Z10 and download it that way.

*****Edit****

Copied the files to the SD card by using my Z10. I flashed the roms and just waiting for them to start now. Looking good now. Thanks for the assistance.
[Galaxy S II General] titanic_fanatic:
Yes, I think it is as I don't remember having to turn it on, but I will double check ;)
[Galaxy S II General] JacksonJ:
Well, I'm having a bit of a problem. After flashing the rom last night I'm now trying to restore some of my data.

I have already discovered that I can't just do a restore which is fine, but the SD card is blank. I've read how it's moved things to a /sdcard/0 folder but I can't view that at all while attached to my computer.

Also when accessing the Camera I get the error that there is No External Storage available. I read the warning on the first page that it changed "internal/external" and it's location on the card but I don't know where/how to change the camera application to find it.

Other than that I am really enjoying the stability of this Rom. I had the screen not come on one time, only the captive buttons. I tried to turn it off and on and nothing worked so I restarted the phone. But other apps don't seem to have the issues the Stock 4.1.2 rom had.
[Galaxy S II General] titanic_fanatic:
Unless you specifically formatted the sdcard, it shouldn't be empty. Open it with a filemanager to confirm that ;)

It may take a little bit for the media scanner to index your files, but most of that should have completed over night if you leave it on while charging. Try using Rescan media from the market to force a rescan.

For the camera, click on the settings button, then again in the next settings button and you should be able to specify your storage media. It should be able to find your sdcards though and bit under /sdcard/0 this is a bug if you use the wrong recovery... what recovery are you on, one of the ones from this thread right?

For issues with connecting to the computer, try another usb port, make sure that Samsung kies is not running in the background and also make sure usb debugging is turned on in developer options. To access developer options, go to Settings -> About Phone and tap on build number 7 times.
[Galaxy S II General] titanic_fanatic:
I'm so excited to report that I have successfully added functionality to stop the lights from blinking between a start and an end HH:mm (hour: minute).

It does not disable the bln wakelock, but simply stops the lights from turning on during this period.

I had to add two new sysfs entries, modify the lightservice (java and jni counterpart), modify kernel driver and will add system settings to control this.

I have yet to add the system settings, so will release this once that is done.

My use case scenario for this is during work hours, if it's in a locker, you can have it set to not blink during this time so that you can conserve a little battery ;) I'm sure you guys will come up will other uses. Also if you have an idea, please share. Maybe you're idea will make it into the build and you'll get full credit for that in the OP ;)
[Galaxy S II General] danrobi:
Maybe you could include a night mode so the phone does not blink all night long while you sleep.:good:
[Galaxy S II General] JacksonJ:
Figured it out TF. For some reason I had to format my sdcard0. Once I did that I was able to connect it to the computer. It also fixed the camera issue. I could not get to the camera settings before with that error. As soon as I hit cancel it would close the app.

I managed to get my data onto the device now so I'm good to go. I also rooted the device even though I said I would never do it. I unjailed my iPod and Wii before but didn't want to do my phone, oh well.
[Galaxy S II General] neptune_:
I use the quiet hours feature in the rom which works very well. No blinking lights during those hours.
[Galaxy S II General] pheonex42:
i cant access my obb folder through usb only through the phones file manager. i cant even see it through usb

Nevermind fixed it nothing to do with the rom lol

EDIT_ If anyone else has the problem of not being able to acces certain folders download rom manager and grant it root access reboot and than go back into rom manager and fix permissions. i assume most people already know this but just throwing it out there
[Galaxy S II General] EvilDan:
weird problem today... I can't put my phone on vibrate.

did a factory reset -> not working

restored a backup that i know it was working -> still not working

its like all the options related to vibration are not working.

In the sound parameters, if I set it ot vibrate, it goes to silent.

at last I restored my stock rom and now its working so its not a hardvare problem...

any idea ???
[Galaxy S II General] neptune_:
You may have to reboot a few times... had to do that in my case
[Galaxy S II General] titanic_fanatic:
This is a known bug where the char device doesn't get created properly which manages the vib. Usually rebooting a couple of times fixes it, and also another user had success by just turning the phone off and removing the battery briefly. I've been unable to locate the source of the bug although I know what the problem is. The char device sometimes doesn't get unregistered and when you reboot it tries to create that same char device which results in a can't create duplicate filename error.

I've actually traced the error message and didn't see anything weird in the code, actually, our vib driver has not changed since the initial release of GB for this phone, so it has to be related to the way the system loads vs the kernel driver.

You know, why not have it check for the existence of this char dev, if it exists, unregister it and then let it initialize. I'll look into this as I'm not sure that it can be done, but it seems that it would work.
[Galaxy S II General] titanic_fanatic:
Deleted... posted in wrong forum
[Galaxy S II General] Blazing Hornet:
Now after settling in with this ROM for about a week the ROM runs smooth and fast when it decides to work. It gives me headaches a lot at the unlock screen. I have not had any BLN sticking issues and the battery is good. The only thing not current on the phone is your latest BLN configuration. Due to the Microsoft Outlook I require on the phone for work, it forces a lock screen. That lockscreen, in the form of a 9 dot pattern gives all sorts of issues spanning from:

Lockscreen Showing/No Touch Response/No Hard Button Response

Lockscreen Showing/No Touch Response/Hard Button Response allowing for reboot

Lockscreen Not Showing/ BLN Lights On

Lately it has been showing but nothing responds forcing a battery pull to reboot :(
[Galaxy S II General] titanic_fanatic:
I'm not using the pattern lock do I have not experienced this. I'll switch to pattern lock to see if I can get any useful logs as it seems this is pattern lock related.