yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] thracemerin:
New test, same results

Also: here's a shark dump file for that entire time: https://docs.google.com/file/d/0B1goC5O8VXsLNG9HVHlqSFpTa2c/edit?usp=sharing
[Nexus 4 Android Development] Shaky156:
Thanks, log i requested via pm?
[Nexus 4 Android Development] thracemerin:
Crap, I just restored my nandroid :D
[Nexus 4 Android Development] Shaky156:
That log is super important without it I cant start tackling this
[Nexus 4 Android Development] thracemerin:
Yeah, I didn't see your PM cuz I was on tapatalk, I'll grab it for you when I'm back somewhere I can reflash my phone.
[Nexus 4 Android Development] Shaky156:
Youll need to let the phone try n deep sleep n once ur turn screen on then use that cmd, its much easier/quicker doing this on gtalk
[Nexus 4 Android Development] thracemerin:
Re-installed your kernel, screen off, went outside for 5-10 mins, came back, attached to adb and did what you asked.

https://docs.google.com/file/d/0B1goC5O8VXsLbGRRSmUzaGszV3c/edit?usp=sharing
[Nexus 4 Android Development] fkloznica:
thracemerin**

u say the best rom for this issue is cm ? do you think that android 4.3 will fix this ?

thread q: is this fix for push notification bug on 2g/3g.. i dont receive any notifications while my screen is off,only when i turn it on.. because off that i will sell my beautiful device :(
[Nexus 4 Android Development] buster041284:
Don't no about that bug I get notification just fine when screen is off on any kernel or ROM think problem here is delayed notifications
[Nexus 4 Android Development] fkloznica:
yep i was referring to that.. delayed notifications for 30min to 2 hours(on mi device) :D
[Nexus 4 Android Development] meangreenie:
Weird, I don't even get sleep when WiFi is off and I'm using mobile data instead? On this kernel.

edit.. this can't be right, I'll check more.
[Nexus 4 Android Development] pikachukaki:
1st franco 151!2nd your deep sleep works with me!but its laggy as hell!
[Nexus 4 Android Development] thracemerin:
If you were on franco you have the wrong ramdisk since this is an anykernel package, you need to either flash the reset kernel or dirty flash your ROM first to make sure you have the correct ramdisk.
[Nexus 4 Android Development] pikachukaki:
Anyway the OP want to see the deepsleep im not gonna use this kernel for daily use!
[Nexus 4 Android Development] tylercarter:
it was for testing purposes as it has been said many times lol:good:
[Nexus 4 Android Development] thracemerin:
Right, but you're running a ramdisk without mpdecision and thermald on a kernel that requires it, so your results are potentially incorrect.
[Nexus 4 Android Development] meangreenie:
I find something very odd.. Even in airplane mode with all radios off I can't enter sleep mode? Thracemerin can you confirm?

I used motleys 422 reset kernel before flashing this so it should be fine. Maybe the installer doesn't like twrp?
[Nexus 4 Android Development] espionage724:
Off-topic to this particular thread, but what issues exactly?
[Nexus 4 Android Development] thracemerin:
I had deep sleep while on 3G earlier, but I haven't checked recently and I've wiped and reflashed/restored my device about 10 times today so I don't think I feel like checking again.

There's a fairly extensive explanation in my msm_hsic_host thread, see my sig.
[Nexus 4 Android Development] Shaky156:
Can someone please test this if it works? If so I can then release code early and move onto sense 5, thank you
[Nexus 4 Android Development] RiThBo:
I am testing deep sleep now. I will post screenshots of my results later. I cannot test for whether the wifi fix works though.

ROM: Paranoid Android Halo 10 - full wipe

Wifi: ON (- quiet network)

GPS: ON

Mobile data: OFF

Radio: .54

RESULTS:

After 15 minutes of screen off, 0% deep sleep
[Nexus 4 Android Development] Shaky156:
Thanks should only take 10 mins to test deepsleep, device will go into deepsleep within 5mins
[Nexus 4 Android Development] RiThBo:
Just edited post with results... Thanks for trying :good:
[Nexus 4 Android Development] ilia1985:
I'm latest PA flashed ur kernel over AK and tested deepsleep.

WiFi On - no deepsleep after 10mins

WiFi Off 3g On - no deepsleep after 10mins
[Nexus 4 Android Development] Shaky156:
Attempt with both wifi and 3g off?
[Nexus 4 Android Development] ilia1985:
As requested with both WiFi and Data of still no deepsleep

Edit: after 20 mins with wifi and data on got 1:34 min deepsleep
[Nexus 4 Android Development] BlueFlame4:
vs

I don't get the dependency...
[Nexus 4 Android Development] jerdog:
Two things:

1) This is not original development. Moving to Android Development

2) You have not posted your kernel source as required by GPLv2 and XDA. Links removed until you can post your kernel sources.
[Nexus 4 Android Development] atxbang56:
[MENTION=4802595]Shaky156[/MENTION] : does your flashable zip contains the same modified files like the zip you posted in the other wifi fix solution ?

Carbonized from my pretty cool Nexus 4

Best Antutu : 24258 / Best Quadrant : 8643
[Nexus 4 Android Development] Shaky156:
Latest zip changed from faux123 to motleys, deepsleep needs tested that is the main current issue, once deepsleeps fixed then itll work perfectly

Link to download: MOD EDIT: Removed.

Note to devs/testers: why does it work on some devices and not others? We have different hardware revisions, there may be different revision of the wifi chip, sounds like to me some support a certain feature and some dont :/

There will be alot more tests today in an attempt to fix this issue thank you

Edit: [MENTION=3572817]atxbang56[/MENTION] this post contains the latest wifi fix test
[Nexus 4 Android Development] buster041284:
jerdog is a xda mod u quoted him
[Nexus 4 Android Development] jerdog:
[MENTION=4802595]Shaky156[/MENTION] - your links will stay removed until you post source. It's as simple as that. Follow the GPL and XDA's rules on the GPL and have them available on release. It's just that simple.
[Nexus 4 Android Development] jerdog:
There is to be no spreading of this on XDA until the OP posts his kernel source as required by the GPLv2 and XDA. Not sure how difficult this is for people to understand.... The very phones you use depend on GPLv2 and anyone who distributes without kernel source is violating the license and is guilty of distributing warez as they are distributing the work of others without their permission, i.e. license.

If the OP can't figure out how to use GIT, maybe this will help him. It's not difficult to update and push your kernel source.
[Nexus 4 Android Development] atxbang56:
so I've tried it and my phone deep sleeps well on Axiom ROM but I still can't have Facebook notifications...and it's getting me on my nerves.

AXIOMized from my pretty cool Nexus 4
[Nexus 4 Android Development] jerdog:
Read the GPLv2 some time. It does not give a timeframe, instead stating that you must make source available upon release at the earliest and upon written request at the latest. XDA's rules are that source code must accompany release. Plain and simple. It really doesn't matter what timeframe you think is "reasonable". You want to post on XDA and reach the largest target audience in the world, follow the rules.

That's all well and good - but that's not following the rules, nor is it honoring the GPLv2. So follow the rules and all is well. You release, you must provide source code. And come on - it's not difficult for crying out loud to push to github. It really isn't.

PA itself is not covered by the GPLv2, and as such are not required to open source their project. They share it out of the goodness of their hearts, and out of a desire to serve the community. Halo is not kernel source and not covered by the GPLv2, thus they don't have to release it. Different rules - and would fall under XDA's sharing policy.
[Nexus 4 Android Development] jerdog:
First off - way to go and start a dev war. Good luck with that. It ends now.

Secondly - the defconfig is contained in the /proc/config.gz file which is found on the shipped software. While that satisfies GPL requirements, it is something we are looking into from an XDA perspective. That is all that will be said on that.

If you have issues, PM me or report them and we will investigate. Calling out other devs in your thread isn't going to help you.

[/quote]

Thanks, though you'd be better off posting to github so that others can contribute and share in the spirit of XDA and open source and also for transparency. Make sure you update your first post and keep your source updated.
[Nexus 4 Android Development] jerdog:
No. It is not difficult to ship source code WITH a release. You should already be using source control, so pushing your changes will not take long if you know what you're doing. It is very sloppy and poor development to not do this. So no - XDA rules won't be changed.
[Nexus 4 Android Development] Shaky156:
Anyways back on topic current

Confirmed working and enabled ARP offloading (without MAC jumbling issues lol)

Current issues with wifi:

On some devices suspend wakelock

Very rare occasion, 3/4 packets successfully received (packet lost while pinging)

Heartbeat interval can possibly be improved (haven't checked yet)
[Nexus 4 Android Development] Shaky156:
Another thing i noticed is when device is deepsleep max ping is 1200ms which is long for a ping i think, ill provide a diff patch n link that on OP, I agree with open source, others can help/improve/fix issues on the wifi I hope
[Nexus 4 Android Development] Tijmen:
I've cleaned the thread and have taken the liberty to move the link to your source to the OP. Links can be posted now.
[Nexus 4 Android Development] Shaky156:
This should 110% allow deepsleep for people with deepsleep issues

Download link:
[Nexus 4 Android Development] Shaky156:
Dwnload link http://db.tt/NuQq7kk3
[Nexus 4 Android Development] jerdog:
I do not see your source code posted in your OP, nor did you post it for this update. Last warning.
[Nexus 4 Android Development] Shaky156:
Is this some sort of joke? You can clearly see the mod above linked the source code to OP, someones clearly edited the OP and removed text, both images of ping and deepsleep, and source code sure wasnt me, YOU guys keep messing with OP, I sure wont monitor my thread 24/7 just cause MODS edit n remove s***. Also you should atleast have done a comparison or pm'd me before saying that, there is no modifications to kernel, youre more than welcome to compare the zImage then modify your post, source code is the same.
[Nexus 4 Android Development] jerdog:
So you are telling me that you don't have any new changes in this new download link you just posted?

You removed the source code link on June 15 after the Forum Moderator put it there on June 12. Don't feign ignorance and try to blame us for your blatant attempts to not follow the rules.
[Nexus 4 Android Development] ApriliaM3:
Thread re-opened...
[Nexus 4 Android Development] Shaky156:
[MENTION=3685904]anarkia1976[/MENTION] [MENTION=3292224]franciscofranco[/MENTION] [MENTION=3332811]faux123[/MENTION] [MENTION=2677519]mathkid95[/MENTION] [MENTION=1122306]morfic[/MENTION] [MENTION=4195844]show-p1984[/MENTION] https://dl.dropboxusercontent.com/u/58024932/prima.zip That is the current latest driver Source Code I have worked on for any dev that would like to implement within their kernel

https://dl.dropboxusercontent.com/u/58024932/WifiFixv0.6.zip That is the test kernel download

People must be wondering what I have changed to here it is:

I have Forced ARP-Offloading, ARP-Offloading to be active while in deepsleep, set Multicast/Broadcast Filtering Dynamically.

Amongst other things

This should be run with the Firmware/Config file provided in the zip file

This should also be run with PNF (Push Notification Fixer), Why?? Turns out there is more than 1 Wifi issue, this issue is NOT driver related or Nexus 4 specific but is a Android Jellybean issue.

This fix should be run on Stock ROM or Paranoid Android (close to stock), Running it on MIUI, The ROM causes delays in notification. I have recieved instant notification with Paranoid Android.

No more deep-sleep issues should occur, it may be driver related but I have disabled Beacon Mode Power Save mode (BMPS), Some devices have issues accessing BMPS (Stock Android Disabled by default so no difference)

Lastly the Persist.img we have on our devices is important. It contains WIFI related stuff, so I hope someone that has purchased a Nexus 4 that has come with stock JDQ39E can provide a persist.img

Everything works perfectly for me

WIFI Hardware Revision: WCNSS 2.0
[Nexus 4 Android Development] Shaky156:
Another note: in the persist.img is where the actual firmware is and that one is being used, people that have been attempting to use newer firmware for prima, it hasnt been loading, all along its been loading from the persist partition

IF I get the net tonight ill make a start at getting a custom AOSP build together to get wifi running with updated firmware etc
[Nexus 4 Android Development] thracemerin:
For quick reference: https://github.com/thracemerin/prima/compare/jb-mr1-dev...shaky156
[Nexus 4 Android Development] hazard99:
Can i install this and then flash another kernel.
[Nexus 4 Android Development] Shaky156:
This fix is mainly kernel based so unfortunately not yet until other kernel devs implement this
[Nexus 4 Android Development] LibiSC:
What's your opinion?
[Nexus 4 Android Development] thracemerin:
I have no opinion, this is not to be taken as a negative, I really have no opinion for the moment.
[Nexus 4 Android Development] LibiSC:
Ok... I'm just asking cause you have studied the issue more time. :thumbup:
[Nexus 4 Android Development] thracemerin:
It looks to be bits and pieces from a bunch of prima commits, but I don't know if he's somehow stumbled onto the magic or not, I need more time to evaluate and an N4 I don't need to do anything else with to actually get the testing done.
[Nexus 4 Android Development] Shaky156:
So guess its complete :)
[Nexus 4 Android Development] hazard99:
Would love to see the it introduced into a kernel like math kid's matrix
[Nexus 4 Android Development] Shaky156:
Mathkid has already implemented it, ill need to give him an update soon
[Nexus 4 Android Development] fkloznica:
I replay the same q: does this zip fix 2g/3g notification delay ? Sorry for semispaming :)
[Nexus 4 Android Development] Shaky156:
2g/3g delay?! I am unaware of delays on 3g
[Nexus 4 Android Development] Shaky156:
Hi the issue with 3g for some people and not all seem to be related with fast dormancy settings, here is the thread here which may help in delayed 3G

http://xdaforums.com/showthread.php?t=2057093
[Nexus 4 Android Development] alen1901:
Shaky, can you explain why we still need the app? That app works even without your peaces of prima drivers. So in other words, it doesnt work without the app, notifications are still delayed?

Sent from Sparkling Nexus 4
[Nexus 4 Android Development] thracemerin:
The app fixes it for me without the prima changes, the prima changes without the app results in delayed notifications again.

The solution I've been using for ages works most of the time (sometimes there's a short delay, but not like stock) and doesn't require the app.
[Nexus 4 Android Development] Shaky156:
Patience the driver is under testing
[Nexus 4 Android Development] thracemerin:
PNF shortens the heartbeat interval, the heartbeat wakes the device up, yes only for a short time, but that's how it fixes the push notification issue, since the device is awake notifications come like normal.
[Nexus 4 Android Development] alen1901:
So basicly this pieces of prima drivers doesnt mean anything, yet. Better just use the app then. I will test mathkids kernel with your prima drivers but without the app. Because, lets face it, nobody wants to run app that wakes device every 3 or 5min or so. Im more concerned of what hidden troubles can this bring, if any.

Sent from Sparkling Nexus 4
[Nexus 4 Android Development] thracemerin:
Also fyi, I just wiped my testing N4 (white, 4.2.2 pre-installed) and flashed stock with fastboot and then your test kernel from the other day. The results are identical to all other tests you've done, no deep sleep, mostly wakelocks from suspend_backoff over 25 mins of screen off.
[Nexus 4 Android Development] Shaky156:
arp offload is enabled, e.g. even with and without pnf i received late notification with screen off and screen on, now without pnf Screen on notifications done, screen off notifications done but some report deepsleep issues which is what i am currently tackling, I think some HW revs or software revs are different

theres also an issue with the actual driver binary, 3 places its currently kept, system partition, data partition and persist partition (most important), ive attempted to update the driver (hasnt worked out yet) theres also the wcnss firmware.

Anyways ill take away the pnf recommendation.

Thanks so it isnt the multicast/broadcast issue nor BMPS, tricky tricky once this is done afaik push notifications will work perfectly with everyone, currently some working some not, ill need to spend another day on this tonights not the night :) but i have few ideas left
[Nexus 4 Android Development] Shaky156:
[MENTION=3579148]alen1901[/MENTION] since youre testing mathkids kernel with this driver how os it working both on screen and offscreen notifications and ping??
[Nexus 4 Android Development] Shaky156:
Wait [MENTION=4303511]thracemerin[/MENTION] provide me with a log, a dumpstate ive turned off BMPS, so shouldnt have issue entering deepsleep, also provide me with your hw and software rev
[Nexus 4 Android Development] thracemerin:
Of course you ask me this after I gave that device back to my co-worker :p
[Nexus 4 Android Development] Shaky156:
We need a new qcom_wcnss_nv.bin then i could get that running

Is there any newer devices with wcn3660 released? I need a newer binary, if anyone can link me to newer binary

Edit: working on a whole new prima related fix

Anyone that does testing now/future please use initiative, since its tests I do need logs, please provide logs it is important otherwise Im working blind :s thank you
[Nexus 4 Android Development] thracemerin:
git://codeaurora.org/external/wlan/prima.git

All the latest firmware files are there.

PS: I should know better than to report stuff without logs, sorry about that.
[Nexus 4 Android Development] Shaky156:
Okay private kernels under testing, this should be it done now I hope im using it only selected few can get it its not for public release but the prima code will be released as soon as its known to fix

Edit: crap newer binary not loading :/
[Nexus 4 Android Development] Shaky156:
Okay sent mathkid the kernel

current log

INFO: NV binary file version=1 Driver default NV version=1, continue...

hdd_conf_hostarpoffload: Enabled

stable connection

Is there anyone else that is developing on it?? I dont see anyone developing thought thats why i released code? Lol anywayz once the nv.bin is forced to load that is when you will get your notifications, ive turned off pil security so its attempting to load but it isnt loading will need ti investigate further

Looks like its working to me but will see

I have access to another phone ill test on my own till i get somewhere further regarding notifications

We need to load new prima firmware :/

log:

wlan: [472:E :HDD] hdd_apply_cfg_ini: Reg Parameter gEmptyScanRefreshPeriod < allowed Minimum [0 < 1000]. Enforcing Default= 0

<3>[ 10.467266] wlan: [472:E :VOS] INFO: NV binary file version=1 Driver default NV version=1, continue...

<3>[ 10.467297]

<6>[ 10.467572] DefaultCountry is US

<6>[ 10.561422] usb 1-1: new high-speed USB device number 2 using msm_hsic_host

<3>[ 10.575522] wlan: WCNSS WLAN Version 1.3.1.0, Host expected 1.4.1.2

<6>[ 10.575736] wlan: WCNSS software version AAAAAANAAW122025

<6>[ 10.575858] wlan: WCNSS hardware version WCN v2.0 IRIS v2.0 with 48MHz XO

<6>[ 10.590172] wlan: driver loaded
[Nexus 4 Android Development] thracemerin:
Yeah, the lack of new firmware has been the sticking point for me for months, all of the current revisions of the N4 use 1.3.1.0, to my knowledge the only devices using 1.4.y variants are Qualcomm internal atheros testing platforms which use a different chip variant so even if we could somehow get the firmware there is no guarantee that it would work and not cause irreparable harm to our device.

This is why I abandoned the prima driver fix and went the way I did in my other thread.
[Nexus 4 Android Development] Shaky156:
It wont do any harm, Ive attempted to flash new persist partition but it fails, will attempt something else, thought the device was unlocked? If so I should be able to flash that partition
[Nexus 4 Android Development] Shaky156:
Afaik a key is used, whats in the persist partition?? A key, 2 binary files, 1 which is the qcom_wlan nv.bin replacing the persist partitiom would most likely break things, the other way is most likely the best way forward

Alow unsecure boot on pil riva (done) echo 1 to wcnss node which will activate download mode (done)

Not sure why its not replacing the wlan firmware

Any suggestions?
[Nexus 4 Android Development] thracemerin:
Those files are copied from /system/etc into the partition you're talking about on boot.
[Nexus 4 Android Development] Shaky156:
They arent, if they were then the above log would not output what it is, it wouldnt be running 1.3.1.0

So unsure how you can say that :/ when the logs right there saying what it is... persist partition is flashed at manufacturing process, only way to update it safely is via activating firmware dl mode, thats where the nv.bin is and its being used, system/data partition nv.bin doesnt matter atm
[Nexus 4 Android Development] thracemerin:
The Qualcomm engineer I spoke with disagrees with you, but given that you're the expert I'll believe you.
[Nexus 4 Android Development] Shaky156:
Youre speaking to a qualcomm engineer? Why is the above saying 1.3.1.0 host EXPECTS 1.4. Blahblah? Why is the software version the same if ive changed the nv.bin? Id rather believe what the logs telling me, computers dont lie ;)

You should let me speak to him cause what the logs saying it something different

Edit: if you were speaking to a qualcomm engineer this thread and wifi issue most likely wouldnt exist lol
[Nexus 4 Android Development] thracemerin:
I spoke to a Qualcomm engineer, yes. Not recently, but I asked him when I was messing with the prima driver initially if it was in fact being loaded correctly and he said yes, I haven't asked about your specific issue.

I run the BYOD program for a large government agency, we have a serious interest in solving this problem since many of the other solutions cause problems with our network, I spoke to Qualcomm in that regard, however since the prima team builds WiFi drivers for atheros, they are only involved in making aiure they work for the appropriate testing platforms, its up to the vendors (Google and LG) in this case to ensure compatibility with hardware so Qualcomm is not able to provide a solution.
[Nexus 4 Android Development] Shaky156:
All I have to say you know humans can lie for companys? Right? Just ask HTC LOL

Btw ive spoken to a qualcomm engineer before you can find it on their qualcomm website, they dont give advise when it comes to production devices using their hardware

Make life easy:
[Nexus 4 Android Development] Shaky156:
Reason why device wasnt entering bmps mode, thanks to Caf https://www.codeaurora.org/cgit/ext.../?id=b1d8c3aa7eba3af1e1f2cf6085f293d86464aacb

, once this is applied to code device should enter deepsleep for people with deepsleep issues
[Nexus 4 Android Development] oSandmaNo:
The link in OP doesnt work!! Im really desperate to fix the delayes notifications :(

Please re upload?
[Nexus 4 Android Development] OppiFjell:
Install another kernel with push notifications fix like airkernel or Franco kernel with prima drivers.
[Nexus 4 Android Development] oSandmaNo:
Tried franco kernel with prima drivers. Doesnt work. Cant ping the devixe after 5 minutes of sleep. Will try air kernel