yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] boype:
WiFi drop workaround

So it looks like I finally came up with a kind of work around for the WiFi drops. The work around is everything but prefect, but I find it to be a considerable improvement over the "normal" behavior. This is what is possible and what is not:

What does the workaround do?

The workaround enables users to fix the WiFi drops without the need to reboot. If you encounter drops, simply open a terminal and type 'su' [enter] and then 'fixwifi' [enter]. WiFi will be deactivated and re-activated automatically.

Shortcomings

WiFi drops can still appear when a wireless network is disconnected and another network (or even the same network) is reconnected without deactivating WiFi in between. WiFi drops will most likely appear when WiFi has simply been deactivated for a longer period of time. This is just the normal but buggy Android 4.2.x behavior.

The main shortcoming, however, is this: when you execute the fix, you'll get a lag lasting as long as 3 - 7 seconds. This happens because the whole wireless kernel module is ejected and re-inserted. If you ask me, that's still a good tradeoff, considering you won't have to reboot to fix the drops.

How to activate the workaround

Open a terminal and type

su
fixwifi

Alternatively, you can use a shell script app. I use $cripter, which you can get for free on Play Store, but I'm sure there are other apps as well. When you open $cripter, create a new script with this content:

#!/system/bin/sh

fixwifi

Don't forget to set 'run as root'. Using this method, you can just execute the fix with a few touches.

Information on the latest change: I decided to remove the semi-automatic fix and made it manual now. Semi-automatic simply had its disadvantages.

Best regards
[Samsung Galaxy Nexus] phishn:
Boype I found a work around fix for streaming audio. Reverted bluetooth drivers to 4.1.2 on 4.2.2 rom. Somewhere along the lines something changed that made 4.2.2 drivers not play nice. It's not just your kernel either. The only one I have 100% success with, using 4.2.2 drivers on 4.2.2 rom, is CyanogenMod 10.1 stock kernel.
[Samsung Galaxy Nexus] boype:
r28 tst03 [WiFi drop workaround]

The test version I talked about two posts above is now uploaded. Please post your feedback.

http://boypetersen.de/fancykernel/tst/fancy_kernel-tuna-4.2-r28-tst03-ext.zip
[Samsung Galaxy Nexus] shawnaye:
Flashed latest test version. Wifi looks to be stable thus far. Been an hour since I've flashed.
[Samsung Galaxy Nexus] cmoG530:
Do you have a transparent app drawer?
[Samsung Galaxy Nexus] gwindlord:
Well, yeah, and it is transparent anywhere, but this happens only on desktop for some reason. Tried to turn the transparency off, nothing changed.
[Samsung Galaxy Nexus] cmoG530:
I had that issue on both nova and apex and it mostly happened while having list view on. I suggest clearing app data and uninstall some apps, because it seemed as if it was memory related. If all else fails, try another ROM. Haven't had any problems since.
[Samsung Galaxy Nexus] dmillerzx:
Giving newest test version a run! Will report back. Great work Boype!
[Samsung Galaxy Nexus] WiiDal:
Tasker and Purity

Nobody have trouble with purity and tasker ?
[Samsung Galaxy Nexus] pcphobic:
Just sharing my tweaks to Fancy kernel r28.

Some of my tweaks were based on 7175's own tweaks
[Samsung Galaxy Nexus] branedamig:
And how is this impacting performance/battery life?

Sent from my Fancy CarbonRom Gnex on Tap2
[Samsung Galaxy Nexus] sruel3216:
battery life sucked for me on r28 exp2
[Samsung Galaxy Nexus] MartianCeo:
I have been using these settings on a regular basis. An this is the only kernel that will let my phone clock up to 1.4 and not reboot on me, battery life has been ok still working on it, I have the extended battery anyway. Performance is great I don't get a lot of lag only when installing apps and its just a couple seconds. You need the right launcher and the right settings for your phone to work. People can tell you try this kernel or this ROM when really it comes down to how you use them both.

If your battery life/performance sucks adjust your settings before blaming the kernel or ROM, sometimes it can be the kernel or ROM, but in most cases its the user.
[Samsung Galaxy Nexus] dmourao:
Is 1.4 really necessary? I mean... Some people can get good results even underclocking it to 1.06. Aside the fact that the phone gets too unstable.

Enviado de meu Galaxy Nexus usando o Tapatalk 2
[Samsung Galaxy Nexus] sruel3216:
for me it was the kernel causing bad battery life. im refering to idle drain only since battery sucks on any kernel/rom while screen is on. i blame lte for that. i went through two cycles and idle drain was very bad for me. i went back to my previous kernel and idle drain is better. sucks cuz r28 exp2 was very very smooth. hopefully next version works better for me
[Samsung Galaxy Nexus] floomat:
Can i go back to stock cm10.1 kernel by flashing the rom? Because your kernel does change the file system like you said?

thanks for your work!

Thought it does support the cm10.1 color settings interface...i don't really like an additional app, but if it doesn't work otherwise.

thanks anyway, nice kernel so far.
[Samsung Galaxy Nexus] sajty:
I found those voltages stable for ondemanplus governor + sioplus scheduler:

775mV

825mV

875mV

925mV

1050mV

1150mV

1200mV

However,for interactive governor,only combination with deadline scheduler looked stable.
[Samsung Galaxy Nexus] kinfolk248:
thats the speed im at...
[Samsung Galaxy Nexus] omid900:
Hey boype, just payed a beer today :) love this kernel thanks for your work. I am on build test 3 now and will test it more, but for now I only see that battery drains a bit faster! But let's see next cycles ;)

Enviado do meu Galaxy Nexus, usando o Tapatalk 2.
[Samsung Galaxy Nexus] MartianCeo:
I said for me it works. If you don't want to use it don't. Everyone's phone is different mine works well at this clock speed. It doesn't work well at 1.2 and is somewhat laggy at 1.06. I like performance with good battery life and this is what I found to be most successful at obtaining it.

---------- Post added at 03:48 PM ---------- Previous post was at 03:45 PM ----------

Hmm I found I had too many apps running in the background and that was my drain problem. Hopefully you can find yours in the next few versions.
[Samsung Galaxy Nexus] branedamig:
How did cut down on background apps?

Sent from my Fancy CarbonRom Gnex on Tap2
[Samsung Galaxy Nexus] MartianCeo:
The kernel works great, it doesn't take a long time to go into deepsleep. It was apps like Google+ that I never use, for whatever reason it runs without starting it. Once I got ride of those it was fine.
[Samsung Galaxy Nexus] dmourao:
You mean wakelocks? You can use Greenify to hibernate them while you're not explicitely using.

Enviado de meu Galaxy Nexus usando o Tapatalk 2
[Samsung Galaxy Nexus] pcphobic:
Thanks. I wanted to lower the voltage for the 384mhz slot but it felt less responsive to me. So I gradually increase it until I found the sweet spot at 900mV for me.

Anyway..we all have different preferences. But it is good to share our findings with the rest.

---------- Post added at 04:10 PM ---------- Previous post was at 04:07 PM ----------

In my overnight battery drain test with the phone on 3G (no wifi), after I applied my own tweaks, I managed to get about 1% per hour idle drain while on 3G.
[Samsung Galaxy Nexus] djovani_:
perfect

I was on anarkia kernals, but this is more battery friendly and it is not of a cost of lag. So thank you for this kernal. It is perfect for me!
[Samsung Galaxy Nexus] angourakis:
Just reporting, with boype`s kernel, I could undervolt all values to about 100mV down. Other kernels, if I changed MPU Voltages a little bit, the phone would freeze instantly. I`m really happy with the smoother performance + great battery improvements!

Fancy Kernel FTW! \o/
[Samsung Galaxy Nexus] billouetaudrey:
hi, why i need to make all my settings with trickster when i flash kernel update ? thx

Envoyé depuis mon Transformer avec Tapatalk
[Samsung Galaxy Nexus] NateK:
Trickster resets the setting when it detects a new kernel version installed.
[Samsung Galaxy Nexus] branedamig:
I see there's a way to update kernels in terminal but is there a way to control the kernel through terminal?

Also, are most using standard or extended? Any noticeable performance and battery life differences between the 2?

Sent from my Fancy CarbonRom Gnex on Tap2
[Samsung Galaxy Nexus] billouetaudrey:
But don't do it when I was updating AK kernel

Envoyé depuis mon Galaxy Nexus avec Tapatalk
[Samsung Galaxy Nexus] cmoG530:
I've seen most use extended and that's all I've used. It has the features that I like.
[Samsung Galaxy Nexus] NateK:
It always reset for me on AK too. I'd love to hear if there's some hidden option to make it stick on flashes. Maybe the donate version has that option??
[Samsung Galaxy Nexus] MartianCeo:
If you switch kernels how could you expect your settings to stay they same for each kernel? They are both different.
[Samsung Galaxy Nexus] dmourao:
:good:

In add to that, some kernels installs scripts and modules, especially AK. So it's even better if you could have a clean install.
[Samsung Galaxy Nexus] billouetaudrey:
Hi, scheduler can do reboot ? Because I have sometime reboot and don't know why... Thx

Envoyé depuis mon Galaxy Nexus avec Tapatalk
[Samsung Galaxy Nexus] pcphobic:
minimal idle drain

Just wanna say that with my screen off minimum CPU speed set to 384mhz,

it did not affect much on idle drain.
[Samsung Galaxy Nexus] jeffcavicchi:
This really seems to be a ROM issue. I had all kinds of wifi drops on an earlier version of PA, but have had none on Atom. Changing kernels in PA did not help; I can use any kernel with Atom without wifi drops.

Just my $.02
[Samsung Galaxy Nexus] shawnaye:
Well.. We know it's a 4.2.2 issue. And since basically every rom is 4.2.2

Your assumption is even more further correct if you've been reading the past like 10 pages of the thread.
[Samsung Galaxy Nexus] Rufufu:
Is it normal that USB OTG is not working with r28 and Paranoid android? Do I need stickmount?
[Samsung Galaxy Nexus] stuffynet:
Works here

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Rufufu:
Without stockmount or any specific app?
[Samsung Galaxy Nexus] agritux:
without any app it works
[Samsung Galaxy Nexus] Rufufu:
Not for me... Damned.

It does not work with 2 different fat32 formated usb stick without stickmount. Not working with stock pa kernel either.

It works with stickmount.
[Samsung Galaxy Nexus] boype:
... r29 incoming in an hour or so :)
[Samsung Galaxy Nexus] jeffcavicchi:
Umm - what I'm saying is that not all 4.2.2 based ROMs do it. Atom is based on 4.2.2 but it doesn't have the problem.

If people are having a lot of problems with wifi drops, make a nandroid and try something like Atom to see if it solves the problem.
[Samsung Galaxy Nexus] Riekr:
I use cm10.1 but don't have WiFi drops, I think it depends on something else.

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Samsung Galaxy Nexus] jeffcavicchi:
We are actually agreeing with one another. Not all 4.2.2 ROMs have the problem. It is something that can be corrected at the ROM rather than the kernel level.
[Samsung Galaxy Nexus] boype:
r29 up

Hi all,

r29 is released. Change log:

remove -ffast-math build flag (can maybe cause trouble due to rounding errors and stuff)

SIOplus: tweaks

freezer: shorten freezer sleep time using exponential backoff (probably better deep sleep)

ondemandplus: increase down_differential

workaround the WiFi suspend drops (see 'knowledge base' in OP; needs to be enabled!)

re-introduce smarter automatic /cache trimming instead of discard mount option

block tweaks

custom lowmemorykiller values (slightly more aggressive than stock)

Best regards :good:
[Samsung Galaxy Nexus] Charmacas:
All I can say about the performance after a few minutes of intensiv use is: Awesome! Great release [MENTION=4615478]boype[/MENTION]!

I am going to report on battery later. :)
[Samsung Galaxy Nexus] agritux:
r28 test3 battery was better than test2

i hope r29 is better as r28 test3

thanks boype

note: gaming performance is amazing and ui is very smoth with r29 (for now)
[Samsung Galaxy Nexus] Charmacas:
[MENTION=4615478]boype[/MENTION] you should have a look on the following posts from franco on his Nexus 7 kernel thread.

http://xdaforums.com/showpost.php?p=42261609&postcount=6559

http://xdaforums.com/showpost.php?p=42277216&postcount=6578

http://xdaforums.com/showpost.php?p=42308885&postcount=6638

Maybe you could also implement his algorithm!?
[Samsung Galaxy Nexus] zoomy942:
Having the 28 test 3 then flashing to r29 standard is no sweat yes?
[Samsung Galaxy Nexus] aikons:
r29 + PA 0606, can't open the WiFi, I'm the only one?
[Samsung Galaxy Nexus] boype:
Re-download and you'll be fine
[Samsung Galaxy Nexus] branedamig:
Flashing now... will report after a cycle or 2.

Sent from my Fancy CarbonRom Gnex on Tap2
[Samsung Galaxy Nexus] jeffcavicchi:
I'm back on this kernel after trying a few others - r29 is running extremely well! No wifi or data drops, unbelievably smooth, good graphics rendering. This is one of the only kernels out right now that does not cause audio playback to stutter for me (some are worse than others).

Great release!
[Samsung Galaxy Nexus] dmourao:
No problems so far on r29-ext. Will report battery life later. :good: :victory:
[Samsung Galaxy Nexus] boype:
I only checked this briefly, but that's hotplug stuff he does. This won't run good on Galaxy Nexus IMO, but maybe franco will prove me wrong.

Apart from that, he's not even done developing the algorithm, so I think it would be a little rude to pick from his work so early. Let's wait and see how it goes.
[Samsung Galaxy Nexus] stuffynet:
Yes. I mounted my memory drive (fat32, 16GB, kingston) recognized immediately. Mounted my microsoft wireless mouse same case.
[Samsung Galaxy Nexus] zoomy942:
Looks like the stock android launcher is com.android.launcher
[Samsung Galaxy Nexus] boype:
That one is on the list.

Ah and I forgot to add it to the change log: Action launcher is on the whitelist now as well.
[Samsung Galaxy Nexus] branedamig:
Am seriously contemplating this launcher. Thank you!

Sent from my Fancy CarbonRom Gnex on Tap2
[Samsung Galaxy Nexus] Charmacas:
Good that you looked at it and it now has your attention! That's the only thing I wanted. ;)

Sent from my Galaxy Nexus with Tapatalk 2
[Samsung Galaxy Nexus] agritux:
why custom kernels not working with official miui5?

it is android 4.2.2
[Samsung Galaxy Nexus] parkson:
Problem is on miui
[Samsung Galaxy Nexus] un.droid:
superb performance with PAC and r29.
[Samsung Galaxy Nexus] phishn:
I'm running this combo too. Did have a couple sod's yesterday on PAC and r28 ext.
[Samsung Galaxy Nexus] un.droid:
yeah ive experienced this too with r28. so far r29 is extremely smooth and responsive. these kernels get better with every release.
[Samsung Galaxy Nexus] zoomy942:
I find 192 too low a speed. I set it to 384 and it works great.

MAybe we could default the kernel to 384? Or some middle speed between 192 and 384?
[Samsung Galaxy Nexus] MartianCeo:
I have ran 192 since installing this kernel and haven't had a SOD yet. My phone spends most of its time there when the screen is on. Version r28
[Samsung Galaxy Nexus] phishn:
Same here, but on PAC rom that's a different story. Only rom it happens to me with.
[Samsung Galaxy Nexus] pcphobic:
OK flashing r29 now.
[Samsung Galaxy Nexus] TheMysteriousOne:
bfq always causes reboots for me. (No last_kmsg generated though)

Been using the deadline with the tweaks by Franco team on r28test03.

Going for r29 now.

BTW, boype, do you use the stock kernel settings personally?
[Samsung Galaxy Nexus] boype:
Yes, stock settings are my personal settings.
[Samsung Galaxy Nexus] smtom:
Giving this one a go, appreciate the settings input above!
[Samsung Galaxy Nexus] AndroiDisCracK:
I'm using cm10.1 on my sgs2 and every time that I try to flash a kernel in recovery it says install complete but on reboot I still have other kernel please help
[Samsung Galaxy Nexus] aikons:
It still doesn't work. r29 can't open the wifi, r28 and leankernel 6.7 doesn't have this issue. Don't know what's wrong
[Samsung Galaxy Nexus] chikimonke:
Can we add LMT launcher to the white list? I seem to be getting a lot a restarts of it. Thanks

com.android.lmt
[Samsung Galaxy Nexus] dmourao:
Could you dirty flash your rom and try again? Everything is working fine here on Slim Bean + r29 ext. :good:
[Samsung Galaxy Nexus] MartianCeo:
I'm on PAC :)
[Samsung Galaxy Nexus] Syfer_Fever:
i've experienced this before (dunno in r27 or r28)

i just turn off the wifi > reboot to recovery and then reflash the kernel > wipe cache/dalvik > reboot > booted up, turn on wifi and then everythings back to normal
[Samsung Galaxy Nexus] boype:
Sure thing, it is on my to-do-list now.
[Samsung Galaxy Nexus] sajty:
I see,that i am not the only one,that have reboots with bfq.boype,do you have bfqv5 or bfqv6 in your kernel?
[Samsung Galaxy Nexus] Fenvarien:
BFQv6 caused reboots for franco.Kernel too. He reverted back to v5.

Gesendet von meinem Galaxy Nexus mit Tapatalk 2
[Samsung Galaxy Nexus] sajty:
Hm,yes a read that too.Because of that i thought,that its v6.Strange,v5 worked good.
[Samsung Galaxy Nexus] aikons:
Turn wifi off, flash r29, wipe cache/dilvik, turn wifi on, this works, thx guys!
[Samsung Galaxy Nexus] boype:
Thanks for the input guys, I was not aware of that. I'll revert to bfqv5 in the next release.

On another matter: I believe I have found a way to largely eliminate most lags that may be occurring. To put the find into perspective: I consider it pretty much equally striking as the earlier introduced prioritized systemui priority. Linux is awesome :) Will test more.
[Samsung Galaxy Nexus] sajty:
Throw us test build and we will be testing with you ;).
[Samsung Galaxy Nexus] doomed151:
I've been using this kernel since a while ago and stuff is great. However, I would to know if there's a way to disable zipalign and trim on boot.

Thanks.
[Samsung Galaxy Nexus] billouetaudrey:
Hi, My phone don't Deep Sleep with r29 + Stock Settings, anyone can help me?

Envoyé depuis mon Transformer avec Tapatalk
[Samsung Galaxy Nexus] cmoG530:
Have you made sure that it isn't a rogue app?
[Samsung Galaxy Nexus] pcphobic:
Install either GSam or wake lock detector app and it may give u a clue.
[Samsung Galaxy Nexus] sajty:
Can someone post default MPU voltages of all steps for r29-ext,please?Thanks in advance.
[Samsung Galaxy Nexus] mixtapes08:
-3StarsAndaSun
[Samsung Galaxy Nexus] billouetaudrey:
I will try a full wipe because I don't where is the problem... No app caused...

Envoyé depuis mon Galaxy Nexus avec Tapatalk
[Samsung Galaxy Nexus] SheridanJohn:
Hi,

I had lag, sleep of death, sudden battery drain (battery would suddenly start loosing 30% within 10 minutes or so) and crashes with r28, usually all within few hours of uptime.

All this went away after going to r29. I have uptime of 20 hours without any lag or hang and my phone is in deep sleep almost the entire screen off time.

Just great!

Gesendet von meinem Galaxy Nexus mit Tapatalk 2
[Samsung Galaxy Nexus] dmourao:
I had some lags using min frequency as 192 (which comes as default, I guess). Changed it to 384 and everything is OK now. Battery life seems to be really good. I'm still at first cicle so I'll have a better judgment soon. No wifi or data problems either, at least I haven't noticed :good:
[Samsung Galaxy Nexus] sajty:
Guys,i really dont care about benchmarks,but...I am getting much worse results with all schedulers in comparison with for example Lean kernel.Lean gives me about 840 points with deadline,Fancy gives me barely 750,sometimes less.Anyone have similar experience?Its strange,that ale schedulers perform worse.
[Samsung Galaxy Nexus] boype:
r29 test 01

Hi,

I just uploaded r29 test 01 here:

http://boypetersen.de/fancykernel/tst/fancy_kernel-tuna-4.2-r29-tst01-ext.zip

I hope to achieve consistent and largely lagfree performance. Please report and be aware it an early test.

It also includes Linux 3.0.81, revert to BFQv5 and has 'com.android.lmt' added to the launcher whitelist.
[Samsung Galaxy Nexus] sajty:
Hm,i have found,why i have so low score in I/O test.My read speed is only 8MB/s,with Lean i have around 25MB/s.Any idea,where is the problem?
[Samsung Galaxy Nexus] Godra:
I think Leankernel has Fsync disabled, what are your settings?
[Samsung Galaxy Nexus] sajty:
I will post result in few minutes,they are very strange...
[Samsung Galaxy Nexus] boype:
It's most likely because of discard mount. Try 'mount -o remount,nodiscard /data'.
[Samsung Galaxy Nexus] quickstang:
I've found this kernel performs better than ak & lean so far. As far as benchmarks go... Can't say cause I deleted Antutu. Taking up space on the phone & benchmarks are crap. And if you say you don't care, then delete the app, & just worry about what runs best. This runs best for me, so I stick with it.

I can tell by how my phone performs overall than any app can tell me. This is what I go by.

Now time to flash the new test build. :D
[Samsung Galaxy Nexus] shag_on_e:
I had to drop a note to ya boype, I'm highly impressed with your work! Until recently I've been rockin AK's kernel, but ventured out now that he's upgraded and I didn't venture long! 28 test 2 idled for 12.5 hours from 95% to 75% and still had great response. Haven't had time to test 29 ext yet, but I'm about to flag test 1 and see what's up. If MHL and USB OTG work good I'll officially be happy as a pig in doo doo, so to speak! Thanks again man!

~~~~There is no spoon~~~~
[Samsung Galaxy Nexus] boype:
A few minutes up, test 01 is outdated already :) This is better:

http://boypetersen.de/fancykernel/tst/fancy_kernel-tuna-4.2-r29-tst02-ext.zip
[Samsung Galaxy Nexus] quickstang:
Good thing I waited. :thumbup:
[Samsung Galaxy Nexus] sajty:
I have attached results of benchmarks.For row and sioplus are results absolutely OK,bfq is bad (but its known,that bfq is not good for benchmarks),but what is really weird - results of deadline.

Deadline has extremly low read speeds,dont know why.All other schedulers have read speeds much better.Now,tell me,whats wrong with deadline?

All runs with interactive governor,RAB 1024.
[Samsung Galaxy Nexus] nitsua98:
Ok, I decided to try this kernel out and I know I'm immature for laughing at this, but the naming of the standard version is funny. ^_^
[Samsung Galaxy Nexus] zoomy942:
Trying it out.

And I gotta apologize. I was saying the screen was too dark and you kindly reverted that 10% thing. Turns out its now the default brightness. Which is good. I had used CM for so long I didn't realize its screen on brightness is really high vs stock. So my fault.
[Samsung Galaxy Nexus] TheMysteriousOne:
I can feel the difference between r29 and r29test02. What did you do?
[Samsung Galaxy Nexus] zoomy942:
Agreed. I'm using stock settings.
[Samsung Galaxy Nexus] Lancez:
I'm having great performance on r29 standard version. No problems whatsoever. I dropped boot.img into ROM zip then reinstalled ROM and everything. My phone is running great as well as battery life.
[Samsung Galaxy Nexus] sym_m:
set RAB 512 / use deadline tweak : 250 2500 1 1 8
[Samsung Galaxy Nexus] sajty:
Already tried osmosis tweak,but no effect.Dont know,what is wrong with deadline,maybe boype will find solution.
[Samsung Galaxy Nexus] sym_m:
on franco kernal i Get high result with row + deadline idont know why is low on fancy

on fancy i have some lag after install apps
[Samsung Galaxy Nexus] sajty:
So you have the same issue with deadline like me?
[Samsung Galaxy Nexus] sym_m:
yes i Get 677 on antutu 6.9 read '12.5 write :rolleyes:
[Samsung Galaxy Nexus] sajty:
Glad,that i am not alone.Deadline was always my favourite,but with fancy is unusable.

boype,any idea?Other schedulers are relatively OK.
[Samsung Galaxy Nexus] boype:
Deadline, 500, 2000, 1, 1, 1. First screenshot with discard mount, second without discard. (r29 tst 02).

Don't know what's wrong on your end... Only thing I know is I should be settings default tunables for deadline again (the ones I used for this benchmark).