yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] iTaisHi:
a question about K&Z's GitHub,

(hope its ok to ask it here)

accordingly to K&Z holy and amazing work (and all the the other QA good guys here),

i see the that in GitHub there are all the new updates.

like in here:

https://github.com/CyanogenMod-Atrix/android_kernel_motorola_olympus/blob/ics/arch/arm/mach-tegra/board-olympus-modem.c

is that specific update from the end of Aug2013 already installed in V1 (Aug2013) but not in V2 (Sep2013)?

would it be effective to install this update if it still not installed?
[Atrix 4G Android Development] plinkykev:
Info+Status

I am using this v2 build quite happily as my daily use version - i've worked for various mobile phone companies and had phones in a lot worse state than this!

To summarise, the phone is used to make calls, send texts+emails, take photo’s (Camera Zoom FX), use Facebook (and it’s messenger), stream TV (FilmOn), stream radio (TuneIn), listen to music (musiXmatch), watch videos (MX Player), and I even get play a few games too. So, for those of you wondering about updating, you can see it’s in pretty normal use.

Having said that, I have seen various issues which I would like to list, to help Z and other dev's with their work, to show other users “you’re not alone”, and for potential new users to see what you’re in for :)

Serious instability (very regular reboots) when WiFi and 3G are both enabled.

With just 3G enabled (WiFi is off), just occasional reboots, resulting in “audit” files in /data/misc/audit folder

Various program crashes, resulting in “tombstone_xx” files in /data/tombstones folder

Screen doesn’t always come back on from sleep after pressing power button:

The lower Menu/Home/Back/Search buttons light up OK, but screen is blank/black.

It is working (can hear swipes, etc), just not visible. A few off/on presses of power button usually fixes it, but not always...

Occasional screen corruptions (will add photos later)

Google search box fails and crashes if MIC button is pressed/voice search used

YouTube (v5.10.1.5) crashes when trying to play videos (search and suggestions work OK, just playing them kills it)

Bluetooth in-call audio does not work, but strangely music over Bluetooth (A2DP) works fine.

HDMI out does not work (standard issue I think on all recent Atrix ROMs)

Battery life is poor (for me = 8-10 hours maximum)

FYI - I had NOTTACHTRIX previously, and that did crash and reboot too, it was slower than this ROM, and a lot older too.

Also, I have SELinuxModeChanger installed to run at boot and disable this mode – is this still OK?

To help the dev’s, please feel free to +1 these issues to help identify how common they are, and also add in others you've seen too. Thanks to Z, and the other great dev’s out there, we are using KitKat on an old “dead” phone, so also be grateful, despite the issues, I know I am.
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
Rest assured that there WILL BE UPDATES for this rom

As the 'low-hanging fruit' (easy bugs) are mostly gone by now, fixing will takes longer longer. I am well aware that youtube FC bug is causing a lot of crashes ( as a matter of fact, the latest gapps updates are closing in & 'using' that old non-neon plugin to attack our beloved Atrix [ I don't have reboots/crashes as I always state I DON't USE gapps.. ], so be patient. I would rather fix more bugs before posting V3 (ya know, I rebuild the source tree from fresh with new signing keys , it takes time :) )
[Atrix 4G Android Development] tonglebeak:
Z, for what it's worth, Youtube updated today and no longer crashes.
[Atrix 4G Android Development] asparaz43:
If you can serve this version of YouTube on my Atrix works http://www.androidfilehost.com/?fid=23189362627840301
[Atrix 4G Android Development] PolesApart:
For me it was the opposite, youtube worked fine and now it crashes :)

[MENTION=5181088]Zn7mkUKzN1r8aCIV[/MENTION] for what's worth, I would settle for a fixed libstagefrighthw.so (or whatever lib in the chain was fixed) instead of an early release of v3 ;)

Oh and btw, that exact same libstagefrighthw crash happened on JellyBeans on some cyanogenmod devices. Some people discovered that when that happend, a wakelock was left active on audio, so the phone wouldn't enter deep sleep anymore. Perhaps some battery drain comes from that.
[Atrix 4G Android Development] plinkykev:
Thanks for the update, and I hope you realised that my post was not meant as a complaint, I just wanted to give a summary list of the various posts that have been on here to help keep track of them. :)

Attached are more audit/tombstone files, but I left out YouTube/GoogleSearchBox logs. I did also notice with some app crashes they gave an error about putting trace logs in /data/anr - are these useful at all? I have attached one batch so you can take a look, just in case...
[Atrix 4G Android Development] PolesApart:
Dock

Opening a shell on this rom and simulating a dock connection works:

Multimedia/regular Dock:

am broadcast -a android.intent.action.DOCK_EVENT --ei android.intent.extra.DOCK_STATE 1

Car dock:

am broadcast -a android.intent.action.DOCK_EVENT --ei android.intent.extra.DOCK_STATE 2

(I have manually installed car home in this latter case).

Does anyone knows the mechanics behind detecting the actual physical dock and delivering the intent? [MENTION=4641721]krystianp[/MENTION] ?
[Atrix 4G Android Development] Totopoxtle:
Iim sending tombstone files and audit file, just after a reebot, in fact happened 2 consecutives reboots, I hope it can be helpful.

Best greetings.
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
The fact that I have neither a dock nor a BT device makes it very difficult to find what's wrong in the code to fix it [ that's why it is still a not fixed... ]
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
Can you post your youtube FC tombstones here? thx.
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
it seems you have problem with bootanimation which is very very strange, Is your rom just a mod from mine??? I did notice guys were doing mods on this rom to 'suite their needs'...
[Atrix 4G Android Development] plinkykev:
PM me your info and I can send you a charge dock and BT headset, no problem. Worked at Motorola, got a few spare!
[Atrix 4G Android Development] Totopoxtle:
Z, no, it's not a mod, but as you're saying can be one cyanogen theme that I downloaded, specifically I was using MIOS THEME FREE, so I'm gonna try without aplying the boot animation, anyway, I have had other sudden reboots, but the tombstones weren't generated, I checked, this time just after the phone rebooted I sent the files.

Thanks a lot for your attention, I'll keep testing and trying to be useful.

Best greetings

P.S. When I was writing this had another reboot, this time I've installed a theme called Darker Green, the boot animación is exactly the same that yours, but green, the thing is that there aren't tombstones with the time that this just occured, they are the same I just sent, and there are 3 with time of 4 hours back, I guess the phone rebooted then too
[Atrix 4G Android Development] plinkykev:
Totopoxtle - reboots create "audit" files and program crashes create "tombstone" files - in folders of the same names in /data

If you're getting lots of reboots check you enable only wifi OR 3g, not both.
[Atrix 4G Android Development] PolesApart:
Actually, SELinux ("SEcure Linux") creates entries on audit; program crashes create tombstone files and program slowdowns/hangs creates "anr" files/entries (there could be both /data/anr/traces_<program>.txt and /data/anr/traces.txt).

As for reboots, they can come from:

a)kernel: either from a crash or a hang (watchdog triggers a restart on this latter case). You shouldn't expect these to happen very often on normal conditions. We don't exactly have normal conditions, i.e. the kernel is a bit outdated in relation to the android it's driving, and was tuned without support from the manufacturer.

b)a very hard program crash that leads the kernel in inconsistent state (very rare and would indicate a bug in the kernel, as it's supposed to handle most of these)

c)a program crash/hang that makes android's userspace stops feeding the kernel watchdog. A timeout will trigger a reboot.

d) some indirect bug (i.e. the hardware could be tuned wrongly/too agressively and lead to overall instability).

e) something else I didn't think of

The sad thing is that AFAIK there's not usable log of these events. The userspace data ("tombstones", "anr" and [to a lessser extent]audit files) can help diagnosing if the reboot is caused by b and c, but probably not the other factors.
[Atrix 4G Android Development] PolesApart:
Sure.

Play store reports 5.10.1.5 as the version installed, could someone with a working youtube please check if it's the same? thanks!
[Atrix 4G Android Development] PolesApart:
I'm available to help in any testing. I was googling around and trying to see how that was supposed to be implemented but couldn't find anything relevant.
[Atrix 4G Android Development] plinkykev:
Couple more audit files from "random" reboots... (no tombstone or anr trace files were found)

Also, here's a photo of the screen corruption I mention on a previous post.

[IMG="Atrix KitKat screen corruption"]http://image.bayimg.com/9991cc0831fe18f9fed9cfccd961ab26fd45d82a.jpg[/IMG]
[Atrix 4G Android Development] DooMaster:
I have a spare Multimedia Dock that was selling but I prefer to send it to Z's if he need it, PM me too Z if you want it (In case plinkykev's dock is the standar one)

Best regards
[Atrix 4G Android Development] rhcohen:
Is it specifically 3G (cell) DATA being on simultaneously with wifi that results in lots of reboots, or does any cell connection (voice, no data) also behave badly with wifi on?
[Atrix 4G Android Development] plinkykev:
I have not seen it so much with voice/sms usage, 3g seems to be the main issue for me - handover from one to the other seems to be problem i think.

Sent from my KitKat Atrix
[Atrix 4G Android Development] psmaniaco-androidiani:
Today the phone freezes twice.

First time it happened in deep sleep, battery pull required.

The second time I was browsing here on xda with CM browser, again freeze and battery pull.

Here audit files
[Atrix 4G Android Development] Totopoxtle:
I tried as you say, keeping only 2G when I'm connected to wifi, but my phone keeps rebooting :( anyway I'm gonna keep the rom, and eventually upload the audit files, I supose that the file is overwritten each time, so I just had a reboot (precisely after changing from 3G to 2G), I'm sending that file.

Best greetings

P.S. A new issue, after connecting my phone to computer, when I chosed disconnect, the phone suddenly rebooted, it hapenned twice, but the audit file that I sended I think only reflects one occasion.
[Atrix 4G Android Development] joshua764:
apk for improving camera so I can pass? please

enviado desde palm pre2
[Atrix 4G Android Development] palmbeach05:
Not exactly sure what you're trying to pass, but have you tried the CM11s (different from the regular CM11 which this is) camera?

Sent from my MB886 CM10.2/4.3.1
[Atrix 4G Android Development] joshua764:
Yes. synchronize the flash with the camera

enviado desde palm pre2
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
Test for Dock/HDMI

PolesApart:

Can you try out this patch to check whether DOCKing can be recognized???

The relevant code is in frameworks/base/services/java/com/android/server/DockObserver.java

private static final String DOCK_UEVENT_MATCH = "DEVPATH=/devices/virtual/switch/dock"

it points to /devices, but in our Atrix, there is only /sys/devices, that's 'might be' the core of the problem... we need to create a symbolic link, so can you plz edit boot.img.

in init.olympus.rc, add :

symlink /sys/devices /devices

in 'on early-init' section, repack boot.img, reflash it and give it a try :)

I also see sth similar in frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

mHDMIObserver.startObserving("DEVPATH=/devices/virtual/switch/hdmi");

If it is working, we might be able to fix hdmi as well :)
[Atrix 4G Android Development] rodrigo9411:
Guys anyone can help me? i installed the rom and booted normally, but the setup wizard crashes no matter what gapps i use, any solutions?
[Atrix 4G Android Development] cailloup:
Search the thread for "setup wizard"

1st result shows the solution...

http://xdaforums.com/atrix-4g/devel...ix-bigpart-t2847281/post54873475#post54873475
[Atrix 4G Android Development] guruzen:
There is a way to bypass this problem. Pull the notification bar and u will see date and time. Select the date. It will ask to setup google account. There u will find, wifi configuration.. Do that and create gmail account. This will finish the setup and u can come out of the setup crash issue..

Do let me know if you were successful.. I was successful twice after v2 installation..
[Atrix 4G Android Development] Totopoxtle:
Aparently it hasn't happened to anyone else, but again I connected the phone to PC and when I disconnected it reboots, and after rebooting the USB icon stays in the status bar, to avoid it I connect again, disconnect and when rebooting I unplug the USB cable, and restarts normally.

Best greetings
[Atrix 4G Android Development] PolesApart:
Hmm it seems like DEVPATH=/devices is correct, as it comes from udev notification (which simplifies the path names). The DockObserver I could look up had this:

private static final String DOCK_UEVENT_MATCH = "DEVPATH=/devices/virtual/switch/dock";

private static final String DOCK_STATE_PATH = "/sys/class/switch/dock/state";

The first uses uvent (udev) notation, the second uses /sys/class. It probably checks DOCK_STATE_PATH on startup/resume/whenever it wants to poll, but registers for udev events so it doesn't have to poll frequently, i.e. polling vs event-driven notation.

The thing is the atrix has not only /sys/class/switch/dock, but also /sys/class/switch/smartdock and extdock. When plugged to multimedia dock I read:

root@olympus:/sys/devices/virtual/switch # for i in /sys/class/switch/*dock*/state; do echo "$i: `cat $i`" ; done

/sys/class/switch/dock/state: 0

/sys/class/switch/extdock/state: 0

/sys/class/switch/smartdock/state: 1

Or in other words: the dock or DEVPATH=/devices/virtual/switch/dock is zero (unplugged), but smartdock is plugged.

If I unplug it, they're all zero.

I do believe that previous roms modified DockObserver.java in order to look for these other too (Too bad [MENTION=3721576]epinter[/MENTION] is not around or he could share his CM 4.2 DockObserver with us).

I'll also plug the atrix to my car dock and see which one comes up, if any.

Thanks for taking the time to look at this :)

EDIT: apparently, the car dock didn't light any of these up. It did however made /sys/class/switch/whisper/state goes to 1. I also tested to see if whisper is zero when smartdocked, and it is, therefore, it seems the right files are:

/sys/class/switch/whisper/state // for car dock

/sys/class/switch/smartdock/state // for multimedia dock

And a correct implementation would trigger EXTRA_DOCK_STATE_CAR for the car and EXTRA_DOCK_STATE_DESK for the other dock. Unless one of the greater dock enumerations like EXTRA_DOCK_STATE_LE_DESK provide anything relevant like enabling the audio output, which I guess I could simulate to see if it makes any difference with the am commands above.
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
Poles, you're right!

There was actually an implementation on DockAudio by Atrix-Dev-Team long long ago... Here:

https://github.com/Atrix-Dev-Team/a...ockAudio/tree/gingerbread/src/com/cyanogenmod

I already included in my source tree, the problem NOW is how much work is to modify the 4.4.4 source to fully run regular docks, media docks, hdmi and car......
[Atrix 4G Android Development] ranjithkumar1201:
Can any one tell me what is working and what not is in this Rom
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
Kernel way of fixing DOCKs

Okay, there is a neat way to fix it in kernel

./drivers/mfd/cpcap-usb-det.c

data->wsdev.name = "whisper";

data->sdsdev.name = "smartdock";

data->emusdev.name = "emuconn";

data->emusdev.print_name = emu_audio_print_name;

data->dsdev.name = "dock";

data->edsdev.name = "extdock";

a sloppy way is to swap "smartdock" & "dock"

OR, if you have time to spare, plz. test every model of your docks and post the state value for all these switches, both ON/OFF :

"whisper";

"smartdock";

"emuconn";

"dock";

"extdock";

such that we can finalize how to patch the kernel
[Atrix 4G Android Development] Zn7mkUKzN1r8aCIV:
Hi, luckysquid, are you still around??

am starting to look at the wakelock problem of wifi, can you elaborate how you ping your wifi after sleep???

Is your test setup like this ??

Phone [wifi] <--------------> [ad-hoc hotspot] laptop

before sleep

Phone [wifi] <-----ping----- [ad-hoc hotspot] laptop

Phone [wifi] -echo reply-> [ad-hoc hotspot] laptop

after sleep

Phone [wifi] <-----ping----- [ad-hoc hotspot] laptop

Phone [wifi] ---------X-----> [ad-hoc hotspot] laptop

also, how long it takes after screen off before no ping reply from phone???

Thx.
[Atrix 4G Android Development] pokereth:
Same as PolesApart reported:

Using Motorola branded CarDock

"whisper" = 1

"smartdock" = 0

"emuconn" = 0

"dock" = 0

"extdock" = 0

Thanks for working on this--I was really missing it not docking properly.
[Atrix 4G Android Development] PolesApart:
The way I see it, we could hack the kernel to make smartdock force-togle dock too. That would give our current kitkat the desktop dock functionality on both docks. But it's not obvious for me, at least not at first glance, how to trigger the *car* dock by just changing the kernel, tough. Maybe I have to read that java source again.

However, I do believe that the right fix for next kitkat rel (or some subsequent after that) would be to implement that in the android side, because it would allow us to fine-tune things: android already makes most of the audio channel setup, for example. And the charging-only dock (the one I suppose triggers just "dock") doesn't have audio output, so the audio should remain as is when docked. The multimedia dock has a usb audio port, and audio should be routed to it if and only if there's no headphone plugged or bluetooth audio connected *and* it's "there's a cable connected" switch on, at dock time, but if the user plugs anything on the jack later on, it should reroute, the same as if we plug a headphone on the phone's jack. And then there's the issue of someday making the hdmi mirroring to work again: the multimedia dock and the lapdock have both hdmi outputs switch, these probably have to be configured from android, besides the kernel support.

I'll see if I can implement the work-arounds via the kernel for both multimedia and car dock plug/unplug detections, so that we can think of the complicated stuff later :P

EDIT: it seems that there's more in play. I was reading cpcap-usb-det.c and it gives the impression that something like this was implemented:

1) kernel uses hall-effect sensor to detect regular dock (it probably has a magnet somewhere specific)

2) kernel uses black magic to detect other docks.

3) kernel notifies user-space daemon whisperd of these events

4) it does it's own black magic

5) it then notifies the kernel via specific messages (see cpcap_accy_whisper function in cpcap-usb-det)

6) the cpcap-usb-det stuff has methods already implemented to override the switch values, it was then supposed to set the dock switch to specific values. I do believe that would just work fine with the kitkat's java file you posted - at least for dock, abstracting the audio stuff.

what I was going to do is implement something in lines of item 6 above, but since it's already in place, I will try to understand why it isn't working.

May I ask: the /usr/bin/whisperd in the rom comes from legacy atrix or from somewhere else, e.g. from xoom?
[Atrix 4G Android Development] Mustkeg:
I'd be happy to test the dock functions in future kernel/ROM versions. Over the years, my Atrixes mysteriously attracted a Lapdock, a Multimedia Dock (HDMI, USB), a normal dock (MicroUSB, 3,5mm audio jack) and multiple car docks ;)
[Atrix 4G Android Development] thecjan:
amazing, this ROM did not need hporh32 or 3-profiles anymore, thanks.
[Atrix 4G Android Development] sanaldi:
yes it is working bu sometimes it is gone but the kernel causes that. not about rom
[Atrix 4G Android Development] Mustkeg:
Amazing!

Wifi and mobile data works(38p radio). Fastest GPS fix ever! BT sees devices, did not test further. CM11 on the Atrix is a dream come true.
[Atrix 4G Android Development] thecjan:
anyone had this issue?

and, after flashed rom, sdcard mounted auto & quickly.
[Atrix 4G Android Development] jman316:
will this ROM be ok to use in the UK?

Where can i download from? Link not working...
[Atrix 4G Android Development] jephimax:
I haven't experienced any bug as fas as I'm using it. Must be the other guys dirty installing the ROM.
[Atrix 4G Android Development] luckysquid:
my feedback of rom:

first boot is more slow (more than 1 minutes on motorola logo) ,sim icon is unknown but there is a signal and calls work.

after reboot atrix loop on motorola logo. After re-flashing rom I have same issue (sim icon unknown) but I go into recovery and install 4.4.4 bank google apps and after reboot sim card in recognized and all work ok (wifi e mobile data)(N_01.100.00R).

all the future reboot is fast (only 5 second on motorola logo)-

I report an issue present into any rom with 3.1.10 kernel. I use fritz app fon for voip call but when atrix is in stanby (screen in black) and I receive a call it don't wake up or wake up after 3-4 minutes. If I switch on atrix the call is received. I dont have this issue with old 2.6.x kernel.

thanks very big work Z.
[Atrix 4G Android Development] kyva1929:
Looks like we are in similar situation. The simcard unknown info display, mobile data and boot loop after 2nd boot may be solved by just installing gapps. I will test and report back later.
[Atrix 4G Android Development] jephimax:
Have you tried clean installing? The SIM card info display works fine for me and haven't encountered mobile or boot loop problems. :confused:
[Atrix 4G Android Development] luckysquid:
yes clean install with instruction on first post
[Atrix 4G Android Development] kyva1929:
You cannot even try to do "dirty" installation as the system partition has to be reformatted. Wiping dalvik cache and cache is always done for installing any new roms.
[Atrix 4G Android Development] Voldemort:
I can confirm what others previously wrote: phone calls, mobile data and wifi are all working!

Congrats to Z for this big leap!

Just one question: it seems that only 200mb or so of RAM are free and more than 500 used... Isn't that a lot just for ROM+GApps?
[Atrix 4G Android Development] plinkykev:
Quite excited about this ROM, as I had the "NottachTrix 4G v2.3.0 ROM - WITH Webtop Options" previously, but recently seem to be getting more hangs and reboots, so decided to give this a go.

However.... trying not to be thick here, but is this really for the Atrix 4G (MB860)?

I ask, as the flashing details state about using CWM-based Recovery v6.0.3.7, which after much hunting around, I cannot find - it seems to be only for the Atrix-HD (?)

Regardless, I downloaded the ROM, and ran the FASTBOOT flash (went OK), but once I moved to the phone, and entered Android Recovery, the screen started messing up, as per image hosted here:

www (dot) bayimg (dot) com/gaPjlAAFn (sorry not a direct link, some restrictions on people with < 10 posts...)

Anyone else had this? If it's the wrong CWM then fine, can someone please post a link for it (better still, add to OP).

If not, anyone got any ideas?
[Atrix 4G Android Development] kyva1929:
Um, the ram usage does seem kind of high. I got a moto g with 864 mb total available, and even with UC browser opened the ram usage is only ~270 mb (PAC room recent ram usage bar).