yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] Erebus671:
In staying true to my word, I have finally managed to upload my Tibu back up for the dialer storage, for those who have had problems with their APNs, please check the following link.

http://ge.tt/6ZI35KE

Instructions:

1. unzip folder

2. copy all contents to your phone's Tibu folder

3. restore dialer storage

4. reboot

5. ????

6. profit. [I hope. :)]

Edit--- 2/28/2012 @ 2317 hrs.-----

I for got one thing, check your APN settings, something may be off...

look at the AT&T US MMS, make sure you change the MMS APN, make sure it looks like this... I'm hoping that the rest are okay, cause I live on guam, and although Docomo Pacific has a contract with AT&T to get out data services out here, our APNS are slightly different.

APN: wap.cingular

Proxy: leave blank

Port: leave blank

Username:WAP@CINGULARGPRS.COM

Password:CINGULAR1

Server: leave blank

MMSC: http://mmsc.cingular.com

MMS Proxy: wireless.cingular.com

MMS Port: 80

MCC:310

MNC:410

APN Type: leave blank

Hope this helps, and that the rest of the settings aren't wrong too. Even if they are, this will prove one of two things, that 1: backing up your previous Roms Dialer Storage will in fact save you the APNs, or 2: That backing up my previous Roms dialer storage was an anomaly on my phone and probably won't work, but I have had one other person have this work. So, please, if you've got the time, give this a shot.
[Atrix 4G Android Development] xploited:
For now I have installed bare bone 2.5 GT and letting sit on the table for an hour to check how much battery it loses in standby.

If the drain is still there in bare bone version, I will try the commands your posted.

If that doesn't help, I will move onto the test build.
[Atrix 4G Android Development] Erebus671:
@Notorious544d:

We'll I've given your test a try, and well... test passed, I backed up the two most mentioned apps with Tibu: Youtube and Maps, then I flashed using CWM recovery 5.0.2.0, prior to flashing I wiped the following (also using CWM Recovery, still can't use fastboot.):

1. Wipe data/factory reset

2. wipe cache partition

3. in mounts and storage: format /cache

4. in mounts and storage: format /data

5. in mounts and storage: format /system

6. in mounts and storage: format /osh

7. in mounts and storage: format /preinstall

after all are completed, I reflashed, reboot into the rom and let it run for a while then booted back into recover and flashed gapps, then I repeated that process for the following addons: Right-aligned CLock, sync, and GPS (PI).

Then I checked my APNs, nothing, after that I started the restore, of course I restore dialer storage, as I always do, then I reboot and check APNs then restore maps, reboot and check APNs, still there, I repeat for youtube, still there. All good on my end, I'll be returing to GT+ and start testing for battery life on that in the morning...

Good night all.
[Atrix 4G Android Development] fuzzy34:
Now that mine is working now I've been keeping track of battery. I'm losing about 5% per hour.

Running: GT w/ Gapps lite, Sync, and CM7 media
[Atrix 4G Android Development] andreww88:
Okay, so does it help when I say that I created them the first time I flashed 2.5 when I restored Maps? The APN disappeared. I re-flashed and did not restore Maps, and APNs are fine. I don't have the Youtube app. I will try to download Maps on the Market and see if that messes up APNs when I get some spare time sometime today.
[Atrix 4G Android Development] xploited:
Update #2 on the battery issue:

Bad news, flashed bare bone 2.5 GT, without any mods or installing any apps.

Charged to 100% and let it sit on the table. An hour later it dropped to 95%, another hour later it dropped to 90%.

Yep, looks like a 5% drain per hour. :(

Will try the shell commands that Notorious mentioned, will see if it changes anything.

Unfortunately, will have to go back to v 2.2 for now.

Update #3 on the battery issue:

Shell commands didn't help. Unfortunately, will have to go back to v 2.2 for now.

Update #4 on the battery issue:

Faux 2.3 kernel 1ghz might have fixed it this time. Will test for a day and report back.
[Atrix 4G Android Development] METALLICAM:
Battery drain??

Found this about the process "ksmd"....

.....KSM is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y,

added to the Linux kernel in 2.6.32.

Source: http://www.kernel.org/doc/Documentation/vm/ksm.txt

This info might help
[Atrix 4G Android Development] Einhery:
it is really the best rom!

can i disable KMS in my flashed rom without reflash it? or it need to recompile kernel at all?
[Atrix 4G Android Development] METALLICAM:
I do not have the answer for that as I am just the basic user trying to help nail down the battery issue. This question would be for Notorious or Faux123 for his kernel. IF this is truly the problem of course.
[Atrix 4G Android Development] Erebus671:
Okay, so I'm finally going to start my battery test, I'll be doing a six day test starting today with a control. I'm going to reflash this rom on a clean install and run that all day to see how long the battery lasts, now this control test will be simple, I'm not even going to install any CPU manipulation apps, or the hciconf file. Once the battery gets down to 10% I'll take the screenie of my battery stats screen and post those results, then I will repeat the test with the hciconf file placed in the /system/xbin location. After that test I will run a clean install once again, this time I will install SetCPU, and I will repeat the test, I will keep doing this with a clean install using the two CPU manipulation apps recommended here in this thread, System Tuner and Pimp my CPU, The final test on day six will be a combination of hciconf, and the CPU manipulation app that provided the best results. Day six will only happen if hciconf does help though. If anyone can think of any other possible battery fixes for me to add to my test, please feel free to PM me with your recommendations and I will add them to my test.
[Atrix 4G Android Development] sservati:
I think google maps has issue...I installed the .zip file for Canada but google navigation acts weird and most of the time does not say the name of the streets when it is guiding you and just say go strait or turn right!
[Atrix 4G Android Development] andreww88:
Okay. This is what my usage is during the day. It uses more battery idle than active. I'm working on trying to reproduce the APN problem. I think its something messing up when certain apps (I.e. Maps) get restored in TI backup.
[Atrix 4G Android Development] fboaventura:
Wanna see something really, but really, strange?

As of right now, I'm completing two straight hours of phone call and my battery dropped 5% in those 2h. When idle it's dropping ~3-5%/h. :eek:
[Atrix 4G Android Development] xploited:
LOL.

I think this ROM has gained consciousness and wants us to use it at all times and embrace it's awesomeness, or else... it slowly... kills... the battery. :D
[Atrix 4G Android Development] Drakonas:
Completely understandable. I'm sure Notorious is glad for the help. :)

I just wasn't sure if you were interested in helping. It is an amazing rom.
[Atrix 4G Android Development] justflorin:
Lmfao I think you are right.... A ton of use gets me this but slight use here and there usually gets me 3 to 4 hours...

Sent from my CM7'd, oc'd/uv'd (M)Atrix 3.5G
[Atrix 4G Android Development] Drakonas:
As far as I know, that setting is a kernel configuration at compile time. It would require you to recompile the kernel, and that is not recommended because it may bring up other issues. It may brick your phone if you don't know what you're doing, as other settings may need to be tweaked alongside ksm.

I've only recompiled kernels, simply for adding kernel modules. I know nothing about the custom settings, specifically for Android. I've only done it for desktop Linux distros. Same base kernel, but I don't know about the technicalities.

What kernel is used in this rom, btw? I'd suggest that that is the cause of the battery usage. It usually is in my experience with the Atrix.
[Atrix 4G Android Development] METALLICAM:
- Based on Faux123's 024r2 CM7 1.3Ghz kernel GT version
[Atrix 4G Android Development] Drakonas:
I think I remember that. What about the EE version?
[Atrix 4G Android Development] METALLICAM:
If I remember correctly it is the 1.0 ghz version.
[Atrix 4G Android Development] Drakonas:
Hmm.. I did notice that battery time is about the same for the GT and EE versions with 2.5. Maybe the 1.3ghz version isn't having an issue?

Edit: I am using the Test #1 rom, and I just noticed something. CPU use stays stationary at about 45% during standby/sleep for the past 20 minutes, but has most of the time been at 100% during the last day.

Also, using SystemPanel (very useful), I noticed that the ksmd process is using an average of 3.4% cpu constantly. Not sure if this makes any difference, but it seems odd.
[Atrix 4G Android Development] METALLICAM:
Oh no, the GT 1.3 ghz version IS having battery drain issues. At least for me...
[Atrix 4G Android Development] Drakonas:
mmk then. I believe you. Btw, I edited my last post.
[Atrix 4G Android Development] fboaventura:
And here are the screenshots

Sent from my Neutrino EE powered Atrix
[Atrix 4G Android Development] Notorious544d:
Hmm, can anybody having APN issues try moving the libs in the attached .zip in /system/lib and let me know if it fixes.
[Atrix 4G Android Development] Mossys:
your download source does not work on your website.

It asks for credentials.
[Atrix 4G Android Development] affiatic:
Running 2.5gt for about 2 days no random reboots. a little bit ago every time i clicked my text message app it would bring up internet instead. I rebooted and it worked normal again. very strange but the ONLY issue I have had. once again very well built and thank you
[Atrix 4G Android Development] TfzSCVang:
Does anyone have a mirror for v2.5 Theme Chooser?
[Atrix 4G Android Development] Randomverll:
I have this odd issue where my att internet (haps 4g) doesn't work with any of my browsers dolphin or stock but works with all other apps such as this or wikipedia. Reboot didn'T fix it
[Atrix 4G Android Development] Pistolaobr:
Can someone post the login and pass to the jokersax FTP, or a diferent links to the addons. Thanks
[Atrix 4G Android Development] Notorious544d:
Temporary mirrors

Use these links as temporary mirrors. Remember which post count this post is (#4067), as it'll be good reference - so that people don't continuously ask the same questions.

ROM Download

Addons

I appreciate how nobody are posting mirrors, thanks a lot.

And I'm very sorry about this ftp mess, I'm a supernoob with this server stuff and it's very likely that it's a very dumb mistake by my part. The problem is, I don't know what the mistake is, so we'll just have to wait for Joker's PM reply.

So please bare with me.
[Atrix 4G Android Development] Notorious544d:
Hmmm.... regarding the KSMD process, could somebody try to replace the build.prop with one from Weekly #8? It could be a build.prop tweak causing it...

If you are going to do this, REMEMBER TO SET PROPER 664 PERMISSIONS!!!!

Otherwise it is likely that your phone may softbrick.

But yeah, give it a go and tell me the results.
[Atrix 4G Android Development] andreww88:
I had a similar problem the first time I flashed 2.5. Except mine was the opposite, apps did not work, but the browsers did. I re-flashed and restored apps in TI backup one by one to make sure they all worked. I think you might have an APN issue too. Could be wrong. But, if you can try re-flashing and downloading apps from Market fresh or restore apps in TI backup one by one.
[Atrix 4G Android Development] miskulawik:
I also experience battery draining at ~5%/h when screen is off. I've tried System Tuner and it seems to do the job making usage down to ~2%/h however we shouldn't use additional software to make it work properly, should we?

I've done a little research and found some info regarding 'ksm' at kernel.org. I went into Script Manager, run console and typed in command:

su

echo 0 > /sys/kernel/mm/ksm/run

which seems to kill the ksm daemon (I couldn't see it in Watchdog anymore). I left the phone for two hours and... the results seem to be similar to using System Tuner -> ~2%/h.

Could anyone try it and see if it really works?
[Atrix 4G Android Development] Notorious544d:
The thing is that it is 0 by default anyway...

Maybe a 're-echo' may fix it as something dodgy could be going on, but it'll be great to hear if this actually fixes the bug.
[Atrix 4G Android Development] jokersax11:
I fixed most of the links. You can't point to the folder. You have to create links for each item. This is for security purposes. I even created a page with some instructions.
[Atrix 4G Android Development] xploited:
Today I have kind of lost hope of getting reasonable battery on 2.5.

But seeing that you still have ideas I ill try again and test it tomorrow. Luckily, i made a cwm backup of 2.5gt this time. :D
[Atrix 4G Android Development] rskyline:
How can i download this rom? It ask for a password!
[Atrix 4G Android Development] Drakonas:
Guys, please read before asking! We've said this over 3 times now. Use these mirrors.

Edit: Forget what I said. It seems Notorious is working on it. Notorious or Joker, it seems one of you forgot the ".com" for the GT version link.
[Atrix 4G Android Development] LOCKDOC_UA:
It's hard to say but I rolled back to v. 2.2 where I have 4-8mA at idle state instead of 56-86mA on 2.5. Will keep eye on any progress, but...

2.2 for now... ((
[Atrix 4G Android Development] consolation:
I did, the police came and took my phone off me, are they going to reduce my standby drain? Hope they don't lock my bootloader.
[Atrix 4G Android Development] zombies1337:
Just did a clean install of 2.5 EE and I'm getting a ton of force closes for acore. Any thoughts?
[Atrix 4G Android Development] LOCKDOC_UA:
I'd be very appreciated for link for (v.2.2) right aligned clock, sych & language pack. If possible separate. B'cause I have a very weak connection at this area - gprs!

Thanks!
[Atrix 4G Android Development] barius:
Default value is 1, confirmed by cat < run .....

Anyway I think it's a kernel problem, which stops the phone from going 'deep sleep'.
[Atrix 4G Android Development] tachospeedo:
KSM reset to 1 after reboot

What do you mean by default ? I tried the same thing and after reboot this value is set at 1. I tried to search a configuration file to disable it but had no luck.
[Atrix 4G Android Development] Randomverll:
I downloaded Firefox and opera from the market and both work fine but its a persistent issue with stock browser and dolphin HD. Also I'm still on 2.2 so it might be different issues
[Atrix 4G Android Development] Ilkinansr92:
How can it be the kernel issue if it works fine on other ROM's?
[Atrix 4G Android Development] cmontboober:
hi everyone... i flashed v2.5gt+ finally got it running. I added the google lite apps along with the gps mod and a couple other things now my phones been stuck in the a boot loop, anybody else experience that?

thanks
[Atrix 4G Android Development] cmoG530:
What are the other things that you flashed??? It would be helpful to know. :D

#Sent from my God given Atrix 4G
[Atrix 4G Android Development] cmontboober:
vpn, gtalk, sync... thats it i think
[Atrix 4G Android Development] xUmaRix:
had enough with 2.5.I encounter multiple issue such as bluesleep even I'm not using bluetooth,long boot time due defragging,phone won't go into deep sleep.Testing Morrisoft rom now
[Atrix 4G Android Development] killinme1:
Hey I just wanted to give a big thanks to Notorious and everybody else that contributes to the zippiest ROM that I've ever used. :p Still rockin 2.2 ATM as 2.5 gave me deepsleep, APN, and wifi problems. If I didn't have such a busy schedule, I'd Contribute more that props.
[Atrix 4G Android Development] Erebus671:
Just an update on day one battery testing.

Rom version: 2.5 GT+

addons/Mods: lite gapps, right aligned clock, GPS(PI)

kernel: 024

Restored apps: CPU spy, GO SMS pro(with emoji plug in), root explorer, sms backup & restore, Tibu(of course), xda premium, and my dialer storage of course.

Now at 5h 15m 28s on battery and still have 72% battery remaining. I will post screen shots in my next post from my phone.

Also according to CPU spy, the frequency does jump around alot, but it seems to focus on 456 & 800 Mhz, deep sleep is also never used.

Edit---- 2/29/2012 @1725hrs.

For some reason, I cannot any of my screen shots so I will do so when I get to class and a computer. :)

Sent using my Motorola XOOM using XDA premium
[Atrix 4G Android Development] ishamm:
after following all the usual steps to installing 2.5GT+ my phone now appears to have died. I get endless, very long winded bootloops, and a blank screen when entering recovery mode to reflash 2.2, which worked fine, or anything else. can anyone help?

thanks

---------- Post added at 10:30 AM ---------- Previous post was at 10:20 AM ----------

sorry for double post, wont let me edit previous. I am also sometimes getting a very short boot loop on the dual core screen, maybe 5-10 seconds each time
[Atrix 4G Android Development] xUmaRix:
Change to latest morrisoft rom which is based on this rom my phone is deep sleeping now according to cpu-spy
[Atrix 4G Android Development] xploited:
Same here, flashed v2.2 and things are running much better now. Which app do you use to measure battery drain in mA?

Neutrino 2.2 + addons + kernels (separate files). :cool:

Also, added this to my signature.

I repeat, THIS IS NOT a kernel problem. Right now I am running 2.2 with a kernel from 2.5 - faux 024r2.

NO battery drain, phone deep sleeps properly.

Get into fastboot, do a full wipe, reflash recovery, reflash any ROM with clean install.
[Atrix 4G Android Development] Jack'O:
Please do not post links to dowload Neutrino.

Now they're on jokersax servers and he pay for that, have respect for who pay to give you something for free.
[Atrix 4G Android Development] xploited:
Dude, these links are for versions 2.2, which is not on Jokersax's servers and in fact is very hard to find now, especially the addons.

I've spent a good hour or two trying to find it + addons yesterday and uploading for people that want to roll back.

If Notorious requests me to take them down, fine.
[Atrix 4G Android Development] Jack'O:
Ok, sorry. Misread cose i'm cooking and following this thread.

Sorry.
[Atrix 4G Android Development] Notorious544d:
I wanna check something that could potentially increase our battery life.

Type the following in terminal and tell me the output:

Two processes should come up. Post the output here.
[Atrix 4G Android Development] Jack'O:
Don't know if can be helpful to compare cause I'm actually on Weekly 20 feb.
[Atrix 4G Android Development] Einhery:
equal values on Morrisoft Gen V0.7 ("Based on Weekly Feb 20th 2012"), which without battery drain.
[Atrix 4G Android Development] Notorious544d:
Thanks a lot for the in-depth analysis. You seemed to have solved a lot of problems.

I'm in the process of re-scipting some of those stuff so that it works more efficiently.

Few points:

- sysctl.conf does seem to be working from what I know... I tested random values by using 'cat' command and they've all applied. Except for the 'sched_min_granularity,' 'latency' and 'wakep_granularity.' Not sure why, but I may add those into SuperCharger.sh script so that it applies on boot.

- S99perfect does work, because if you type 'mount' in terminal, you'll see that all mounting points have all mounted with noatime.

- S65priorites, you're right. It doesn't apply so I will transfer this to the SuperCharger.sh script.

- S20defrag, it seems that 'reindexing' all database files takes a long time, so I have removed it. My previous ROM's also had the defraging tweak, but the one is V2.5 was meant to be 'improved.' Removing 'reindexing' should hopefully fix the bugs in V2.5 and give the extra benefits.

Regarding the ^M thing, please elaborate, and if possible, how I can remove it.

EDIT: Maybe I don't even need a SuperCharger.sh script... if I transfer all the tweaks to rc.local, will all the tweaks apply successfully?

Try using the V2.5 build.prop in V2.2 and see if that 'starts' the sleeping problem. If it does, we'll know the culprit.
[Atrix 4G Android Development] xploited:
Restored 2.5 GT that I tested yesterday:

Will also try copying over build.prop from the Weekly like you suggested.
[Atrix 4G Android Development] kornolio80:
I tried this but I didn't get any new lines:

$ su

# ps -p | grep suspend

#

That's all I get... not really sure why but after pressing enter I'm ready to type a new thing with no information in between, I'm on 2.5 EE.

ps: I'm not sure how to get a screenshot (noob, sorry, lol)
[Atrix 4G Android Development] Notorious544d:
Thanks a lot. Sorry for the trouble of flashing and restoring every few hours, but I think I'm getting there...
[Atrix 4G Android Development] Blizzard22:
Can someone tell me why I can't access to the Market?

There is a message that I have to authenticat me. How can I solve this problem?

Motorola Atrix 4G AT&T unlocked
[Atrix 4G Android Development] miskulawik:
I've gone back to 2.2 and overwritten build.prop with the one from 2.5 and can confirm that it goes into 'deep sleep' fine so it doesn't look like the build.prop is causing issues.

Also, just to be more specific, when I was on 2.5 and stopped the ksm daemon, it never went to the 'deep sleep' mode but was working on the lowest frequency.
[Atrix 4G Android Development] Notorious544d:
Hmm... despite not going into deep sleep, did you suffer from any battery drain?
[Atrix 4G Android Development] xUmaRix:
U can use dos2unix command to fix the ^M thing

Sent from my MB860
[Atrix 4G Android Development] miskulawik:
Well, as I said, on the fresh 2.5 install with all addons except the GPS mod and TTS, the battery usage was ~5%/h, after stopping ksm daemon it was like ~2%/h so the question is - is it still excessive? But even if it's not, why it still doens't go to sleep mode?

In case of any doubts I don't use TIBU yet and I always do clean install when changing rom without any backups as I have this phone for 2 weeks.
[Atrix 4G Android Development] Notorious544d:
Do you have 'battery monitor widget?' How many mA does it lose every 5 minutes on idle?

If it's ~20mA, then it's fine.

And ~9mA when in airplane mode. That's what I average at.
[Atrix 4G Android Development] miskulawik:
Which version are you asking about? 2.5 or the one I've got installed just now (2.2 with the 2.5 build.prop file)?

I also forgot to mention that I calibrated battery when I was using 2.2 so the results should be reliable.
[Atrix 4G Android Development] xploited:
Not a problem. I'd rather have a perfectly working 2.5 than a perfectly working 2.2 :D

Anyway, I have copied the build.prop from the Weekly to 2.5 GT.

Booted up without issues.

Now let's see how much it discharges in one hour....
[Atrix 4G Android Development] fboaventura:
I'm losing ~130mA (93-173) every 5 minutes on idle.
[Atrix 4G Android Development] Notorious544d:
Doesn't matter. Reboot, disable ksmd, then observe battery life.

And OMG!!

I fixed the download links!!! :D

It was a very dumb mistake by my part (as expected) so could everybody now please remove any mirrors.

Thanks.
[Atrix 4G Android Development] Notorious544d:
Wtf? Just wait a bit for it to settle down. When you 1st download it, it gives weird readings, but then decreases.

Also, change your battery capacity to 1930mah.
[Atrix 4G Android Development] ediesel18:
It soft bricked my phone and destroyed my recovery too. (by the way did you have cwm touch?) Your going to have to learn how to use fastboot and replace your recovery with RomRacer. you can get a little more instructions on the romracers thread.