yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] fdaconta:
Qe process

Check out this link http://www.reddit.com/r/Android/comments/v7dtc/carrier_iq_round_2_motorolas_android_devices_are/

"This morning, Hashcode (a major developer of ROMs for Motorola's Android devices and the Kindle Fire) posted this at droidforums.net:

I took the liberty of disabling "Qe" which logs all of the differences in the current OS compared to how it comes from Motorola. It's a lag monster on the bootup, and an invasion of privacy.

It caught my attention so I asked him more about it and this is what he said:

I first noticed it in the RAZR and Droid 4 GB ROMs. The process "qe" is started during the initial boot services. It does a full scan of the /system dir and stores the md5 of every file. It then compares that information to a file in /pds which contains the md5sum file listing of the stock ROM as it was originally from Motorola. As it diffs the 2 listings, any differences are placed in /data/misc/qer and eventually posted back to Motorola.

You can see the report on any stock phone by looking in there.

There is no way to disable it in the regular phone ROM without using a 2nd init process to change the ramdisk files as the binary "qe" is in /sbin and the service is started in the init.*.rc files.

Does anyone else find this unacceptable? I may be overreacting, but this seems disconcerting to say the least."

Disabling this service should Improve boot time dramatically. I am trying to build a better boot.img, I hope this helps. extracted original leak boot.img, Deleted xbin folder containing qe bianry, qee.dat, qem.dat, remove service calls from Init*rc files and repacking should help with boot process.
[Atrix 4G Android Development] ivica86:
@sendust7 your phone have the same tegrapart like mine, do you have screen shaking issues?
[Atrix 4G Android Development] clemare:
The battery drain is the major issue I have, and the only reason not to be my daily rom!

Thanks!
[Atrix 4G Android Development] clemare:
So, what I have to do to test the leaked rom with this modificacion?
[Atrix 4G Android Development] blttalas:
Here is the flashable zip

http://db.tt/pC7GXsBP

Happy Flashing[/SIZE]
[Atrix 4G Android Development] upndwn4par:
Nice detective work. One thing to keep in mind is that so many of the problems with ICS are device dependent - something that goes well beyond tegrapart. I often wonder if this played a part in Moto's decision to bail on ICS.

It is interesting to note that some users that were able to run ICSROM v1.4.4 with no problems (other than battery life) suddenly started having boot problems with v1.4.5. The only difference between the two builds is that I added init.d support. I wonder how this fits in to your research?

As always, nice work!
[Atrix 4G Android Development] damonsmith666:
So if I flash icsrom and then the boot img from the post 2 above this one it will be safe? Will I then have ics with better battery life?

Thanks

xda premium hd is rubbish
[Atrix 4G Android Development] jhonnyx:
blttalas, your CWM fix package does not work. Still cannot boot release 1.4.6 from ICSRom.
[Atrix 4G Android Development] sendust7:
Thank you so much. I will look into it:D
[Atrix 4G Android Development] littleemp:
I can corroborate this. The CWM Package doesn't work, but the boot.img booted with no problems through fastboot flash.
[Atrix 4G Android Development] BigJeff:
So does the new boot.img really enhance battery life; cool the phone and halt reboots?!

Thanks.
[Atrix 4G Android Development] sendust7:
Rev00 flashable zip: http://www.mediafire.com/?5qndqe429eu3ltu

This project is very new. At this point, all I can say is that it works on my AT&T Atrix --- Boots every time in every configuration I've thrown at it so far.

And as I recall, I have only had one random reboot, and that occurred while I was testing a makeshift variant several days ago.
[Atrix 4G Android Development] littleemp:
Charging back to full, will post battery drain stats from sleep consumption. Then from browsermark loops for everyone to see.

(I was one of those whose Atrix worked almost perfection, except for the battery drain)
[Atrix 4G Android Development] ranjithkumar1201:
Good breakthrough keep up the good work.
[Atrix 4G Android Development] jhonnyx:
Did you use the flash through CWM?
[Atrix 4G Android Development] sendust7:
Ubuntu 12.04 LTS Desktop Under ICSROM 146 + Rev00 Boot

I thought some folks might be interested in this:

Ubuntu 12.04 LTS Desktop running under ICSROM 1.4.6 with Rev00 boot image. This is VNC viewer displayed on my laptop accessing Ubuntu remotely.
[Atrix 4G Android Development] littleemp:
Not the newest one. I used only the first one that was broken, and subsequently, used the fastboot image.
[Atrix 4G Android Development] jhonnyx:
Thanks, it booted successfully :)
[Atrix 4G Android Development] xyzwqt:
This boot. Img, it's only for at&t atrix?
[Atrix 4G Android Development] blttalas:
---------- Post added at 07:50 AM ---------- Previous post was at 07:49 AM ----------

Because I compressed files double :(

---------- Post added at 08:10 AM ---------- Previous post was at 07:50 AM ----------

New zip

http://db.tt/WwGAICwm
[Atrix 4G Android Development] Franklee99:
This is very interesting. I think any devs looking at using original moto Rom, would want to be taking a look at this "qe" stuff.

Thanks for sharing!
[Atrix 4G Android Development] lehjr:
Sounds like CIQ all over again. Guess Moto devs were big ET fans, since they seemed pretty obsessed with ways for the devices to phone home.
[Atrix 4G Android Development] daveee143:
great work

No problem encounter. at least the battery. but compared to normal icsrom. it such a great improvements atnt ATRIX. battery jump but atleast in 2% sometimes. :)
[Atrix 4G Android Development] netinetinet:
Rev00 flashable zip

i can flash "Rev00 flashable zip"on CM10 from epinter?

my Atrix is AT&T
[Atrix 4G Android Development] quetzalcoatl2435:
No, this is from the leaked ROM which has different libs. It *might* work on the CM10 builds based on the leak's kernel & libs, but try at your own risk, because I'm not sure ICSROM and CM10 have the same ramdisk.
[Atrix 4G Android Development] Zeljko1234:
But you can try "Somebody's" CM10 with leaked libs ;)

Here is the link http://xdaforums.com/showthread.php?t=1934662
[Atrix 4G Android Development] quetzalcoatl2435:
OK, so I just tried this out with that CM10. No joy. It won't boot.
[Atrix 4G Android Development] littleemp:
These were my results of overnight battery consumption. The timestamp is off because the clock is off and I didn't bother on setting the right time, but you can tell how long the test was anyway. I had Wi-Fi on, didn't turn on the screen.

This is was my other test to check battery consumption, I used a Browsermark loop on Chrome (Result was ~1950 if anyone is interested, on the Nexus 7 it is ~2100. VERY SMOOTH browsing experience), Brightness @ 0%, and Wi-Fi on.

I'll be charging back to 100%, extracting the boot.img from ICSROM 1.4.6, flashing it, and running the exact same test today to compare results, but these should give anyone an idea of how this is performing. Without comparisons, I can tell you (subjectively speaking) that the phone does run cooler than it used to, but that's about it.
[Atrix 4G Android Development] xyzwqt:
12hs with Wifi ON and Screen Turn Off??? :confused:

I see no difference with the original version.

Actually not at all use the phone and the battery was consumed in 12hrs.

Does the CPU go into sleep mode?
[Atrix 4G Android Development] sendust7:
Last night I tested battery drain with display and wifi OFF.

Results (Circle Battery Widget): 87% at 10 PM and 44% at 7 AM. So the drain was 43% over 9 hours. I got similar results from an earlier test with wifi ON. This made sense to me since the default wifi scan interval (see /system/build.prop) is rather long (180 seconds), whereas a typical scan interval is 30-45 seconds.

By the way, ICS is the only ROM I have tested that faithfully renders the "Linux on Android" Ubuntu 12.04 LXDE desktop on my Atrix (ref. screenshot in my earlier post) ;) All others would simply display a blank grey screen with mouse pointer.

Big THANKS to all you faithful testers out there.

When we were kids, we used to work on projects with our dad. When we got tired and impatient (which was quite often), we would ask, "Dad, WHEN are we gonna be done with this project??? And with his loud Italian voice, he would respond: "BE PATIENT!! Rome wasn't built in a day you know!" :D
[Atrix 4G Android Development] littleemp:
This is with the old ICSROM kernel, phone is just sleeping with Wi-Fi on.

This is on Browsermark loop, brightness @ 0%, Wi-Fi on.

There doesn't seem to be any tangible differences from what I can tell, either on sleep or under workload, as far as battery life is related. That's about the extent that I can test, since my Atrix had no other issues outside of battery life.
[Atrix 4G Android Development] clemare:
Ok, almost ready to test.

I'll use it tomorow and I will post my experience.

Clemare
[Atrix 4G Android Development] furkonhesti:
Already test last night..everything is good..no random reboot..very fast..but the things always disturb me to use for daily use is battery drain and high temperature..btw good works..almost perfect..thanks
[Atrix 4G Android Development] sendust7:
Thanks very much for the info. Here's the code snip from baseline ICSROM 1.4.6 init.olympus.rc:

# The following services are added by moto

service qe /xbin/qe /system
class core
oneshot

I think I will try disabling later tonight and see what happens,

[EDIT] Actually I already deleted this code block in my Rev00 boot image since I could not find /xbin/qe.

[EDIT2] Ahh, I see that xbin/qe is hiding in /ramdisk. Sneaky moto.

[UPDATE}: CPU settings and stats (for both cores) are buried under /sys/devices/system/cpu

Below are my accumulated stats. I assume time in state is measured in seconds.

root@olympus:/sys/devices/system/cpu/cpu0/cpufreq/stats # more time_in_state

more time_in_state

216000 153589

312000 6233

456000 3832

608000 2144

760000 1163

816000 597

912000 335

1000000 232787

root@olympus:/sys/devices/system/cpu/cpu0/cpufreq/stats

root@olympus:/sys/devices/system/cpu/cpu1/cpufreq/stats # more time_in_state

more time_in_state

216000 126233

312000 1103

456000 705

608000 436

760000 679

816000 326

912000 215

1000000 1649

root@olympus:/sys/devices/system/cpu/cpu1/cpufreq/stats #

So most of the time, it's sitting at 216 MHz.
[Atrix 4G Android Development] guidoido004:
if i tell you i found the Qe while i was messing in some folders? but i forgot where... Dx

ill look into it again, as soon i find it ill send you where it is and which init.*.rc i read about it...(but i believe you already know where it is, hehe...)

my bad.

EDIT: i believe theres something to do with "androidboot.serialno", your version is getting less performance, but is saving more battery(usually, my phone dont even hang from home to work, now its stayed with 63%, something quite amazing at my eyes)
[Atrix 4G Android Development] sendust7:
To the best of my knowledge, I believe ramfix applies to international users. Here is the updater-script in ramfix.zip:

ui_print("Fixing ram..");
package_extract_file("cmdline", "/tmp/addcmdline");
set_perm("0", "0", "0755", "/tmp/addcmdline");
run_program("/tmp/addcmdline", "mem=512M@512M");
ui_print("done");

The only command entry here is "mem=512M@512M", which matches one of the defaults (/proc/cmdline) on my AT&T Atrix.
[Atrix 4G Android Development] clemare:
I disconnect the phone about 8:45. The charge shows100%. With normal use I got 37% at 14:51. I am using juice defender with the same settings I use in CM7.

To me this is a improvement in battery life compared with my past experience using 4.0.4 however it is not a daily driver for me... but close.

I got at least 4 autoreboots and no screen shaking. However in some taste the phone becomes very slow some times. Maybe a bad behaviour in CPU clock settings?

I'll be back to CM7, however I will backup this instalation in order to continue testing when you need it.

I have an att ATRIX.

Thanks for the effort!
[Atrix 4G Android Development] sendust7:
Thanks for trying it out.

The "stock" ICS kernel supports six governors...

By contrast, the SGS II i9100 supports at least

nineteen

governors: http://xdaforums.com/showthread.php?t=1369817

Limitations like this are the reason why the reverse engineering being performed by krystianp, mmontuori et al. http://xdaforums.com/showthread.php?t=2016837 is extremely valuable. If they succeed, I believe it will encourage (if not revolutionize) the Atrix 4g community.

Meanwhile, I will continue scrubbing /ramdisk and researching other ICSROM kernel work-arounds.
[Atrix 4G Android Development] THUNDERASS:
My opinion that battery comsuption is related gpu speed and gpu deep sleep..i think even if screen closed gpu working continuosly full speed ..

Why?İ tested kernels on nenamark benchmark.Default kernel approx 27 fps ..Clemsyn kernel on 400mhz (33fps) and leaked kernel(38 fps i dont know maybe software related(driver optimizations) but i suspect leaked kernel gpu speed so high maybe 450 mhz(maybe restart problem related that )

Check clemsyn kernel battery consuption.it has 400 mhz gpu speed and battery deplete percent 3-4 an hours.

Can we adjust gpu speed on leaked kernel?
[Atrix 4G Android Development] sendust7:
That is a good question, and maybe one that krystianp could answer. So far, all I can find in ramdisk is an owner/permissions setting for the GPU driver:

init.olympus.rc:
# gpu driver for adreno200 is globally accessible
/dev/kgsl 0666 root root

I consistently get about 4% discharge rate with screen off. One thing I did notice is that in MROM ICS ramdisk (which I think has a more well-structured init, and which I've been able to dual boot), shows this:

# Power management settings
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 216000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1200000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 216000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1200000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load 80

Note that the governor is set to "interactive" in both cores, while in ICSROM, it is set to "userspace". But since the the highest "available" frequency is 1000MHz (1000000 KHz), I believe the system will ignore the requests for "scaling_max_freq 1200000". Of course that is not our concern here. Just a note...

And here is a good presentation on power saving for Linux devices: http://www.embedded-linux.co.uk/downloads/ESC-5.5-power-saving-slides.pdf

Of particular interest to me was page 15: CPUIdle Governors, of which two are presented. In ICSROM, the default (and read-only) setting is "menu", which works well with "dynamic tick" systems --- those for which timer interrupts occur only when needed (see page 8). I considered setting mine to "ladder" until I saw the read-only attribute.
[Atrix 4G Android Development] amelor:
I have 456 mhz (cpu cant reach more) bug in every leaked based rom? after 5- 15 minutes of use, what could it be ?
[Atrix 4G Android Development] clemare:
Are those versions actually different or not? I would like to test it if it is different.

clemare

EDIT: Ok at least they are different size ;)
[Atrix 4G Android Development] sendust7:
I believe the original bittalas zip is corrupt. See his explanation and revised zip here: http://xdaforums.com/showthread.php?p=37843567#post37843567

The second zip (Rev00) is my own, and it is tested working on my Atrix.
[Atrix 4G Android Development] guidoido004:
One is built from a third party(user), other is built by OP, check first post for proper link. ^^
[Atrix 4G Android Development] LobotomyTH:
Sorry if this is off topic, but I just jumped over to Atrix from the HTC Ace hardware, and I'd like to know if the ICS Rom leak had proper Tegra 2 drivers and libraries that the Jelly Bean ports unfortunately lack? I couldn't find a solid answer anywhere. Yes, I am aware of the situation on the drivers being unavailable for Jelly Bean, don't tell me to use the search feature I'm well aware it exists. Also, has OP been asking users for performance on their specific devices? I hear there are a bunch of hardware revisions for the Atrix, so ROM stability seemingly varies a lot between phones. I'll provide you with my phone's information and stability if that'll help you in any way.

I'm glad people are so fervently supporting this phone after the OEM cast it aside like yesterday's news. Keep up the great work on developing this ROM, you're doing us all a huge favour.
[Atrix 4G Android Development] guidoido004:
yes, it has full hw accel, the major problem we have is the battery drain.

the problem is not the drivers anymore, we need a proper source code to compile a kernel and fix stuff on source to make it better than this stock kernel from the Leak, something that we may have soon, but dont get too excited, as i said, we MAY have...

id seen your question, sorry for not answering you before in the thread you made... (EDIT:theres the d00, 1100, and ATT, that i know, and each of them may have "sub revisions", thats one of the theories that made devs think as a reason to Motorola not making the Official ICS OTA)

theres something kinda on topic, theres a compatibility issue with apps on the Play Store, i found thats because the "ATT" in the device name on the build.prop, changing it made me able of getting stuff i couldnt before. Hope it helps. ^^ (ICSROM)
[Atrix 4G Android Development] seanandrsn:
I tried this ROM and was able to get it to boot but the battery life was still not too good. Also my corporate email requires certain security measures to be remotely activated by our email server. I kept getting prompt to activate it but it kept cycling the prompt and would not enable the security settings
[Atrix 4G Android Development] guidoido004:
forgot to report, signal bars are working again on the radio n_01.77.07p with this boot.img
[Atrix 4G Android Development] tonglebeak:
I just want to report my experience thus far. My phone was running hot for quite a while, and then would eventually run cool until I woke it up again. I chewed through 40% battery within 3 hours of what I consider to be minimal use, and even watched the battery slow drain while plugged into USB. This was after flashing the zip file twice.

I tried the fastboot method a little while ago. So far, the phone is running much cooler. I do have it charging now, so I can't report on battery usage, but it's not burning a hole like it was earlier, at least not yet. I'll update later on. I'm not sure if/why the fastboot method would produce better results, but I'll see for sure tomorrow.
[Atrix 4G Android Development] clemare:
Why fastboot method could made a difference? Im using flashing method.
[Atrix 4G Android Development] fdaconta:
Power Managment

These setting are taken from Init.ventana.rc extracted from NVIDIA ICS boot.img

# Power management settings

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 216000

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1000000

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive

write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 216000

write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1000000

write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive

write /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load 80

write /sys/module/cpuidle/parameters/lp2_in_idle 1
[Atrix 4G Android Development] tonglebeak:
This got me thinking. I cd'd to /sys/devices/system/cpu/cpufreq/interactive, then cat'd min_sample_time: it's set to 30000! I'm not too good on kernel stuff, but _why_ does it need 30 seconds to figure out if if should start stepping down? Had to su, but I was able to echo 10000 to min_sample_time, just so I can start seeing if it has any kind of effect.

Before I did this, very minimal usage was 9% battery drain over 64 minutes. I'm going to continue monitoring it now that the sample time has been lowered by a third. Perhaps someone with more knowledge regarding the kernel could chime in as to whether or not there's any reason to set it to 30000, but at this point, I love this rom and want to squeeze what I can out of it.
[Atrix 4G Android Development] sendust7:
Good info... Last night I wondered about providing the option of putting the second core (cpu1) to sleep, leaving only cpu0 to handle background tasks. That last line of init.ventana.rc looks interesting ;)

I also wondered about an option to reduce display resolution (presently 240) to reduce the number of pixel firings. But we can't just reduce lcd_density from 240

/system/build.prop:
# For larger screen support
# 3.75" WVGA == 248dpi
# 4.0" qHD == 275dpi
ro.sf.lcd_density=240

That just makes the screen smaller (and causes apps to crash). So if there is a way, it's not that simple.:crying:
[Atrix 4G Android Development] tonglebeak:
I'm more than happy to try things out. The fact a reboot will erase all of the changes makes it an appealing process.

Just wanna update you on this. After 78 minutes, 9% battery, with a tick more usage than before. That goes from 7.1 minutes per percent, to 8.67 minutes per percent, which doesn't surprise me at all since this I used the phone a little more (texting and such) during this 8.67 minute/percent testing period, and the min_sample_time being knocked down which I believe saves power. In any case, even though the usage was a little higher this past period, that still nets me a TWENTY-TWO percent increase.

The only negative I've seen so far, which I'm willing to put up with, is that the phone goes into deep sleep much more quickly. Although that's typically a positive, it does require mashing the power button much more frequently. I'm OK with that though.

For those who want to try this, here are the commands to issue. You can do it within Terminal Emulator.

$ su
$ echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

Of course, you can do

$ cat /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

Before and after issuing the echo command, just to confirm the change.

I also want to add that cat /sys/module/cpuidle/parameters/lp2_in_idle is set to N. I can toggle this to Y and see what happens I guess, although from what I've read, leaving it at N (or 0) gives the best battery life.

UPDATE: toggling the lp2_in_idle kills the phone after deep sleep begins. Phone has to reboot. Tried twice with the same results.

UPDATE2: With about the same amount of usage as the first test (very minimal, some texting, wifi, etc), I just pulled 6% over 60 minutes, which is a minutes : percent ratio of 10:1 (estimated 16.67 hours based on that usage). Phone does not get hot for prolonged periods of time. sendust7, you should really consider trying that tweak and perhaps sticking it in your img if all goes well for you. The only tradeoff, like I said earlier, is getting out of deep sleep more often.
[Atrix 4G Android Development] sendust7:
UPDATE2 sounds promising. As for the UPDATE just prior, there are two idle states for each core: state 0 (LP3) is "CPU flow controlled" and state 1 (LP2) is "CPU power-gate".

From what I have read thus far, power gating puts the system in its lowest power state whenever possible. I am still looking at how this correlates with the "lp2_in_idle" setting. In state 1, the "power draw" is zero and in state 0 it is 600 (which I assume is milliwatts).

Also, the latency in state1 is much higher than in state 0.
[Atrix 4G Android Development] tonglebeak:
Perhaps, coupled with another tweak, it could work. You can try it on your phone (toggle from N to Y), however, I attempted it twice, and the phone would just completely die, and end up at the boot screen. I'm not entirely sure yet what else could be adjusted to try to make the lp2 work, if it indeed does conserve power. I'll look into it further as well, although I'm not very hopeful about getting it to work on my side at least.