yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] PolesApart:
Not yet: I think the github is only synched up to 2014-10-23, which wasn't good enough (has some bugs). I'll check and merge and let you know.

EDITED: github is up to date now.
[Atrix 4G Android Development] iTaisHi:
Z,

i will clerify myshelf:

i have two atrix units

#1 : the BT & Wifi not working at all - this is an hardware issue - not because CM11 ROM.

#2 : have BT & Wifi working good - but i'm not using it at all - because of the data network + WIFI isuue (reboots).

new data network issue (error + solution):

after about 2 weeks with CM11V3 (original kernel),

i had already 2 cases like this:

aftar 20 hours uptime without a reboot, i suddenly had a network drop,

not connected at all,

i could get the connection back by this:

Settings---->Mobile Networks----->Network Operators

than on the screen you see "searching..." and get all the Carriers list, and connection immediatly back.

the error:

[IMG="The network drop"]http://s30.postimg.org/jwjuln281/Screenshot_2014_10_29_17_09_18.jpg[/IMG]

[IMG="The Network Drop"]http://s23.postimg.org/4hg4nm8kb/Screenshot_2014_10_29_17_09_24.jpg[/IMG]

the fixing:

[IMG="The Fixing option"]http://s2.postimg.org/g83ak3krd/Screenshot_2014_10_29_17_10_27.jpg[/IMG]

exist data network issue:

every couple of days i have this kind of network drop,

all parmaters shows that data network is connected, but the data connection is actually dropped.

what fixed this problem:

Settings---->Mobile networks----->Data enabled (uncheck)

Settings---->Mobile networks----->Data enabled (check)

connection back .

[IMG="Uncheck and check"]http://s3.postimg.org/jc4jgoelv/check.jpg[/IMG]
[Atrix 4G Android Development] JUGOMAN:
To clarify, are you " holding" any further 4.4 Development, to work on "L"? No phone BT call fix?
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
it is not about "holding", as I mentioned: I don't have any docks and BT devices. It is lucky that Polesapart took the initiative to fix docking that led to a 'partial fix' in docking. so BT fixes could ONLY happen if someone bother to post meaning logs that could hint about what's the underlying problems are...... All low-hanging fruits are gone. Poles have fixed the hard Wifi wakelock & anyone using Skype/WhatsApp should be thankful to him.
[Atrix 4G Android Development] plinkykev:
Hi Z, as mentioned in post #353 on 18-Sep, I am happy to send you (for FREE) a dock and a BT headset. I worked for Moto, so have a few spare, it's no problem. Just PM me your info. It would be a shame that this is a "blocker" for you to do more of your great work for our otherwise dead Atrix.

As for the possibility of Android Lollipop appearing too, I think I just wet my pants! :)

Currently on Z's v3 with Poles 20141027 Kernel - WiFi+3G working fine, BT OK, Battery life better, Sygic satnav screen not messing up anymore, very few reboots, still some FC's...
[Atrix 4G Android Development] torecdude:
Is it possible to dirty flash PolesApart kernel on v3? Or do i have to factory reset and then flash everything again as iTaishi mentioned before?
[Atrix 4G Android Development] plinkykev:
I just did an "install zip file" in the recovery menu - ie: dirty(ish) install - backed up my data first, obviously!
[Atrix 4G Android Development] iTaisHi:
AFAIK, fro, what i understand of P's explantion, you can flash P's kernel on V3.

but to be on the safe side, lets wait for an answer from Z and\or P,

Z,P,

if we are running our Atrix for about a month with V3 and lots of other Apps,

is it ok to flash now the new P's kernel ? suppose to work ok?

and as plinkykev mentioned , of course it good to have a CWM backup in case of....

plinkykev,

have you done it on your daily mobile , that include V3 for more than a week or so ?

if yes, can you update us if everything functions well?
[Atrix 4G Android Development] Mustkeg:
I dirty flashed all of PolesApart's kernels over Z's V3. Only very sparse crashes since then and the known bugs don't scare me off from using it as my daily driver.
[Atrix 4G Android Development] PolesApart:
If program crashes, please continue posting the tombstones. If kernel reboots, please check if there's /proc/last_kmsg (it's only present if there was an abnormal reboot) and send it to me in pm (or as an attachment here).
[Atrix 4G Android Development] Fozix:
Can't connect to 5 GHz WiFi. Someone have this problem? Phone doesn't see any 5 GHz network. SSID not hidden. 2.4 GHz - no problem. From 2.3.6 Gingerbread both networks work fine.

Installed v3 and PoleasApart kernel 20141027.

And something strange happens: while staying on home screen, setup settings, widgets and so on, phone becomes very hot and battery depletes fast.
[Atrix 4G Android Development] attrixnor:
perhaps you can try with old other poles apart kernel to see if the problem happen ? check you dmesg log too ?

or stand for next kernel release , i see some change today on github of polesapart, it can help
[Atrix 4G Android Development] PolesApart:
Are both problems present in original kernel? If unsure, could you try it?
[Atrix 4G Android Development] Mustkeg:
I had this problem since CM 10(?) at least, I guess. Since then, no 5 GHz Wifi for me with 3 different Atrixes.
[Atrix 4G Android Development] guruzen:
12 hours of battery

After P's 27Oct kernel, i get around 12-13 hours of battery. Just wanted to let u all know about it.
[Atrix 4G Android Development] palmbeach05:
Since you think CM10? Hmm, my first guess would be settings>wifi>advanced>Wifi frequency band and change that to auto.

Can you tell us why you say 5 GHz is not working?
[Atrix 4G Android Development] Mustkeg:
At some point, maybe after flashing CMx+1 over CMx (don't remember), it just stopped seeing my 5GHz capable AP. The AP is fine since I can connect with USB Wifi adapters.

When I toggle the band option to 5 GHz only, no APs are found until I switch back to Auto or 2 GHz only.

Is it working with you?
[Atrix 4G Android Development] palmbeach05:
I always have my devices set to auto, so thats probably why i'm suprised and questioning whats up with this issue. When i have it set to auto it detects everything. Now, what i can do is try to reproduce your issue on mine and let you know what i find, but i'm away from home this wknd and my A4G is at home. I'll pass along my findings when i get back home sunday evening
[Atrix 4G Android Development] Fozix:
I found a messages googling that this problem, with 5 GHz WiFi, exist on different phones and cyanogenmod from 10. And one more thing, hdmi output won't work on cyanogen roms :(

... Without a load phone works well, but under long load system becomes unstable. Maybe it's a hardware problem... To work around this problem on a 2.3.0 ROM, I installed a script which prohibits transition to deep sleep, when screen turns off, for a few minutes to cool down the processor. But script have nothing to do with reboots in active phone.
[Atrix 4G Android Development] JUGOMAN:
Hdmi

Hdmi does work on CM 7, on Atrix,though.
[Atrix 4G Android Development] torecdude:
After flashing polesapart latest kernel and using it for a couple of days i can say phone hasnt reboot once ( not that i noticed). Excellent job on this one, keep it up ! :)

Also, im having an issue that Trebuchet launcher keeps crashing while im using diffrent apps. This started to happen all the sudden before and after i flash Pole's kernel.

i recall installing peek app https://play.google.com/store/apps/details?id=com.jedga.peek.free and after deleting it crashing started, related perhaps?
[Atrix 4G Android Development] PolesApart:
I've read somewhere that Atrics has hdmi working (sort of) with the same kernel we have. If that's true, enabling hdmi should be relatively easy. [MENTION=4641721]krystianp[/MENTION] was working on hdmi for cm9 a few months ago.
[Atrix 4G Android Development] Fozix:
After 2 days of using phone in usual way (small load, mobile network, wifi 2.4 ghz, minimum in settings, menus and options, couple of minutes in games, some reading books...) I must say there is no reboot. I almost happy :)

CM11 v3, PolesApart kernel 20141027

Thank you guys! Good work! :good:

But HDMI and 5GHz wifi... hope there is a way to fix this issues...

There is a video with HDMI working on 4.1.2

www(dot)youtube(dot)com/watch?v=fNIdJP9FRCw

(sorry, need 10 messages to post outside links....)

And another question: does USB OTG works? I don't have a cable for now, can't check.
[Atrix 4G Android Development] PolesApart:
https://www.youtube.com/watch?v=QRFH9dCqH9c <- hdmi working in atrics + kernel 3.1 + lapdock

---------- Post added at 11:26 AM ---------- Previous post was at 11:23 AM ----------

It recognizes the usb remote controller in the multimedia dock, so yes. I didn't try using it for something serious, though.

As for the wifi in 5ghz, I can't really tell as I don't have a 5ghz AP around. Did you try changing the band from "automatic" to 5ghz in wifi advanced options? Does it show any 5ghz network, and if so, can you connect?

---------- Post added at 11:48 AM ---------- Previous post was at 11:26 AM ----------

There's a new kernel version (dated as of today) with a bunch of minor fixes. The most prominent one is a memory leak fix for android binder (the mechanism that passes messages between android tasks), it's supposed to be minor but could impact performance over time, requiring a reboot to free the imprisoned ram.
[Atrix 4G Android Development] thecjan:
hey, you forgot hporch32 version?
[Atrix 4G Android Development] Fozix:
Tried to change from auto to 5 GHz only - didn't help. Phone doesn't see any network. Also tried to change region code - no help. Changed back to auto - all networks are visible and it's possible to connect, but this is only 2.4 GHz networks.

Checked on this kernels:

Original-ZKitkat-bigpartv3-kernel

PolesApart-krnl-ZKK-20141027

PolesApart-krnl-ZKK-20141101
[Atrix 4G Android Development] PolesApart:
Always :P

Alias, I've used hporch32 kernel on both my atrix(es), neither of which required this change, and both of them ran fine.

I would like as many people as possible to try the hporch32 version. If it doesn't give trouble to anyone, I could set hporch32 to default and only release hporch32-compatible versions. Anyway I've just tuned that to be a kernel config option so even if I still have to provide them both, that can be selectively enabled/disabled at compile time, so it's only a matter of tuning my scripts and linking twice (and generating the subsequent zip files).

---------- Post added at 08:09 PM ---------- Previous post was at 08:04 PM ----------

Ok, let's see if [MENTION=5181088]Zn7mkUKzN1r8aCIV[/MENTION] can help: I was looking at this report: https://jira.cyanogenmod.org/browse/CYAN-1599 and it says it was fixed in cyanogenmod 11 M6. Are your sources up to date? AFAIK the bcmdhd works fine in 5ghz, it should be either android or wpa_supplicant or something alike.
[Atrix 4G Android Development] ubunthero:
I'm using the latest hporch32 on an atrix not nedding it, and it works perfectly fine, it looks like battery is a lot better

(lost 2% in 3h without using the phone but with wifi on)

link to the kernel in case some people can't find it:

https://www.dropbox.com/sh/1w47t4vofyiwveb/AAAyK69Lv3z3oSgGI4Qoh9nha
[Atrix 4G Android Development] PolesApart:
I must admit I'm impressed myself with the overall battery usage on wifi (I'm using xposed + amplify [this damn module changes it's name every week. It was previously named "Lion tamer" and "unleash" IIRC). On my secondary atrix I've got 2 days and 8 hours uptime w/ wifi on (I pratically only use it for testing and playing games, it has no sim card, therefore I left the radio off). It has a fake chinese battery, one of those that charges in 20~30min (because it can't take much charge anyway). And I forgot it on (I didn't use it, though) and two days and four hours later it still had enough power for me to play a game for about 5 minutes before it died. And google play store updated quite a few apps when it was sleeping.

I can't promise results yet, but I'm also looking into reducing power consumption on 3G. The app "Better battery stats" pointed me to a wakelock I think I can have a torturer-terrorist chat with. Let's hope I become the first rather than the later, even though I'm a pacifist :D
[Atrix 4G Android Development] rhcohen:
I installed the latest hporch32 kernel on my atrix that hasn't needed hporch32; it seems to be running OK on my phone (as others have noted). I am wondering if the fixed memory leak could possibly address another phenomenon I've noticed, which is that freshly installed kernels seem to work great, with no reboots, for 2-3 of days, then after that I start getting more frequent reboots.

Update: somewhere between 3 and 4 hours after installing this kernel, the phone rebooted while in my pocket. So much for freshly installed kernels going 2-3 days without reboot.

Further update: today I had some screen tearing. So it seems like hporch32 vs non-hporch32 matters. I will revert to the most recent non-hporch32.
[Atrix 4G Android Development] PolesApart:
When that happens, please see if you can submit the /proc/last_kmsg file. Sometimes it contains useful information.
[Atrix 4G Android Development] rhcohen:
Just looked, there is no /proc/last_kmsg file; there is a file /proc/kmsg but it is zero length. Of course it has now been almost a day since this reboot, and I had to force a reboot in between for another reason.
[Atrix 4G Android Development] todobarato:
Hello,

my feedback:

I use the application network monitor mini, to have one visual backup how runs one download, etc...in this ROM isn't working, in CM7 and CM9 works Ok, it doesn't show any think. I try with other app from xposed, same issue.

Something isn't on place and don't let the app read this information.

Maybe it can be fixed easy.

I have version 3 installed, with kernel from polesapart date 01.11.2014

Best regards.
[Atrix 4G Android Development] JUGOMAN:
Are you using ART,instead of Dalvik?
[Atrix 4G Android Development] PolesApart:
I can confirm it doesn't work (and I'm not using ART). However, there's nothing in the logs that suggest what's wrong, so the likely way to get this working is to write to app's author and gently asks how he reads that info to see what we could change on our side. Also, I only tried in wifi, did you check if it works in 3G?

---------- Post added at 02:55 PM ---------- Previous post was at 02:53 PM ----------

@Zn7mkUKzN1r8aCIV if there's still time before you generate the v3 patch, could you please see if this is appliable? I think it could fix google hotword detection.

https://github.com/NamelessRom/android_frameworks_av/commit/bdc2366b7d17fe99257bffc12ec71e2114f72e8f

thanks!
[Atrix 4G Android Development] Fozix:
Want to ask: can someone check that dock station detection works or not? I have standard dock from motorola. Checked option for a clock screensaver while docked: " Settings -> Display & Lights -> Daydream -> When to Daydream -> While docked ", and when I place phone on the dock station nothing happens.
[Atrix 4G Android Development] glegge:
This is just a thanks

Hey, just to say thanks to the developers for KitKat on the Atrix 4g.

I couldint believe it when i loaded it up and it worked, and the new kernel has stopped the constant reboots so far (for the past few hours now).

SO yeah, thanks to you guys for making this possible and all your hard work, youve got one very happy atrix 4G owner here in NZ now.

a little detail.

i loaded the cm-11-20141007-UNOFFICIAL-olympus.zip

installed pa_gapps-stock-4.4.4-20141103-signed.zip

and then applied the new kernel PolesApart-krnl-ZKK-20141101.zip

the phone is running just great.

Again, many thanks.
[Atrix 4G Android Development] plinkykev:
Interesting.... This USED to work fine, but just retested it on mine and wife's Atrix, and sure enough, smart dock (on left) is fine, but standard dock (on right) is not, as per photo. Additionally, i've noticed that the car dock does not launch the CarHomeUltra app 100% of the time. Mostly it works, but occasionally it just charges the phone.

[MENTION=4964106]PolesApart[/MENTION] - any ideas what may have broken this?

Currently on Z's v3 with PolesApart 20141101-hporch32 Kernel
[Atrix 4G Android Development] Voldemort:
I had a few reboots in deep sleep while at work yesterday and one while using Waze (3G and GPS made the phone heat a bit).

The weird thing is that the personal data of the app were gone after the reboot (login data, languages, history, settings) and it was also not working properly anymore (wrong position, blinking screen).

I was in a hurry so I had to uninstall and reinstall it. In the meanwhile I used Google navigator, which had the old screen tearing bug that goes away if you reload the app 2-3 times.

Beside all this battery consumption is amazing :D

On v3 with Poles' latest kernel.
[Atrix 4G Android Development] PolesApart:
Just launched a new kernel release. Should save a little more battery.
[Atrix 4G Android Development] thecjan:
thanks, does it hybrid kernel ?
[Atrix 4G Android Development] Fozix:
PolesApart, I have two questions about a new kernel: do I need a hporch32 version? Previously I didn't use this version. And second about this fix:

"Power saving features: delete wakelock on spi_tty ack"

I use wakelock in my script for Tasker for help against SoD (sleep of death), when the phone gets too hot because of game or something else, and switches off in the deep sleep, so only one way to turn it back on - remove-insert battery. Script does this: when screen switches off, checks cpu temp, and if temp>45 writes variable to a wakelock with timeout to prevent deep sleep for a couple of minutes (I set it to 15 min):

/sys/devices/platform/tegra-i2c.3/i2c-3/3-004c/temp2_input into variable: %CPUTEMP

echo sodhelper 900000000000 > /sys/power/wake_lock if %CPUTEMP > 45000

So this fix will let script do its job?
[Atrix 4G Android Development] Voldemort:
[MENTION=4964106]PolesApart[/MENTION] I installed that script and will let you know! Thanks for the detailed explanation!

Edit: I forgot to say I just flashed your latest kernel :thumbup:
[Atrix 4G Android Development] PolesApart:
As for hporch32, I'm kindly asking that people try it even if it wasn't required before. If it works fine (it's supposed to detect in runtine whether it's needed or not), we'll keep producing hporch32-only kernels from now on (or "hybrid" kernels if we can call it that).

If by some reason it fails (on my phone I had a *one time* weird screen behavior which may or may not be related to running hporch32 kernel on it, as it didn't need it before), you can revert to the other one (non hporch32) and let me know.

As for 2nd, yes, it won't change general wakelock behavior. What it does is to cancel a very specifc timed wakelock if the event it was guarding against really happens, instead of timing out 2 seconds later. It seems that the phone can service the modem and go back to deep sleep in about 500ms (if there are other wakelocks pending) instead of 2s. As it wakes quite a lot when mobile data is connected, that ends up consuming quite a bit of power.
[Atrix 4G Android Development] Voldemort:
The hporch32 latest kernel doesnt work properly on my Atrix. I wiped cache and dalvik, everything went fine (app optimization, a few messages sent on Whatsapp, checked Gmail) then I stopped using the phone and the screen went off automatically. But when I pressed the power button to use it again, screen tearing happened; I had to pull the battery to reboot and it was the same: it works until it goes off for the first time.

Will test the non-hporch32 in a few minutes.
[Atrix 4G Android Development] thecjan:
[MENTION=3371016]polas[/MENTION]Apart, last kernel eat all of rest battery around 65% to 0% in a few minutes, don't know why.
[Atrix 4G Android Development] attrixnor:
Hi Fozix

just a question , why don't you use the cpu speed instead of temp (is it possible) , it's more realistic for background process execution ?
[Atrix 4G Android Development] Fozix:
How cpu speed can help with "sleep of death" problem? In only one way, I think: set cpu speed to lower than 1000 MHz for all tasks and make the phone not too hotter and slower. I don't want slower phone, I just want working phone which not goes to death after a game session.
[Atrix 4G Android Development] Voldemort:
With the non hporch32 latest kernel battery went from 100% to 63% in 6/7 hours (3G always off, 2G and Wi-Fi always on) but Google navigator bug is still there :(
[Atrix 4G Android Development] Fozix:
I noticed that too. With the last kernel something strange occurs to a battery.

Testing hporch version.
[Atrix 4G Android Development] Voldemort:
After 14 hours the battery still has some 30% of juice :thumbup:

And also no reboots at all.

Ultimate test on Saturday (heavy use of Waze)
[Atrix 4G Android Development] PolesApart:
Ok, so I'll have to keep up with the dual approach. No big deal, but I had to be sure :P

---------- Post added at 07:45 PM ---------- Previous post was at 07:31 PM ----------

Weird. I have the exact opposite, see the attachment. No radio, but wifi on all the time. And that battery fix seems to be stealing 7% of the juice :P

My other atrix has radio on and it takes about 8h of moderate use before it starts complaining. I couldn't try it longer than that. Both uses xposed + amplify (or unbouce or ... it was renamed about 4 times since I installed it: https://play.google.com/store/apps/details?id=com.ryansteckler.nlpunbounce ).

If yours still misbehaves, please try capturing a "dmesg" output in the terminal, as root,and attaching it. Perhaps there's something buggy on the hardware that's triggered by some change I made.

[IMG="shot"]https://www.dropbox.com/s/19p4vamu9sq0orj/Screenshot_2014-11-06-19-34-30.png?dl=0[/IMG]

---------- Post added at 07:59 PM ---------- Previous post was at 07:45 PM ----------

Can you describe the navigator bug? What I have is that the screen is black. I have to go to home screen and then again back to it. But this only happens if I go straight to navigator (e.g. from google now by saying navigate to address), if I open google maps and navigate from within, it works straight away. But I only use google maps/navigator for light routing, I end up using waze most of the time.
[Atrix 4G Android Development] Mustkeg:
I have the same navigator bug. Crashes most of the time when I launch it from a shortcut.

I also sometimes see a black rectangle where the map should be. Sometimes it crashes, sometimes it stays black. When I switch the screen off and on then, navigation starts and works fine.

Maps 9.0, on the other hand, shows the map for a short time and crashes every time. I tried both versions available on apkmirror.com (for 4.2+ and 4.3+).

What services do you block/limit with Amplify? With most services, it says "we don't have information about this event" :eek:

Battery life is already fine, I have no problems with battery-draining processes or things like that. I always keep a spare battery around but never had to use it.