yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] leosinto:
Dear Mike,

Installed 5.2.6 and it is great. However, I see RAM less is about 160MB most of the time and barely have 200MB. My phone restarts itself if I keep it open continuously for over a day and if I open many apps and games. Every restart takes longer time than normal start. Another issue is market apps. I can see some apps (like blogger) but cannot see download button. Perhaps it is Google's policy or something I do not know.

Overall, I like your effort to keep it like stock and regular update.

Edit: Would it be possible to make it support Khmer Unicode?
[Desire HD Android Development] Rolando88:
Dude i only have 150mb free RAM so whats the deal haha everything works fine here
[Desire HD Android Development] mike1986.:
In Android the more free RAM you have the worse system is working. We have 700+ MB RAM to use so let's use it :)
[Desire HD Android Development] :
I did. That said, I was running it at 1.3GHz (that's my top speed always, good compromise of speed and battery life), where it is massively undervolted. Couldn't be bothered to live with the instabilities that could potentially be there though, at start up, as that means taking my phone out of its case, which is a big PITA.

To be honest, there isn't much difference in performance with the two kernels. The NCTeam one might be slightly faster, though it's not really noticeable.

By the way Mike...did a full wipe and reinstall, and this is buttery smooth in comparison to the fresh installs of ARHD in the past. Very nice :)
[Desire HD Android Development] nizuak:
hey guyz

tried the new kernal , initial assessment i don't get boot loops like in 1.5 but 2wcr do not work for both 1.5 & 2.0 .Didnt have any probs recording on the recommended kernal on the first post..........reverting to default :(

BTW gr8 ROM as alwayz .....cant wait for the 5.3.0 release, wish pple at HTC wer as fast as MIKE ;)
[Desire HD Android Development] mike1986.:
Maybe it will be 6.1.0 even ;)
[Desire HD Android Development] bartolinio:
mike, dear mike, stop teasing us :D
[Desire HD Android Development] leosinto:
But it slows to run apps and even open apps list. To go to gallery, it takes me over a minute. It is fast when I see remaining RAM is close to 200MB. I think 200 - 250MB free RAM is more preferable. Froyo left me close to 300MB of free RAM.

I have about 50 apps and games installed and >800MB of internal storage used. Moved to SD card all apps support this feature but wonder why it consumes many internal storage. Until now, I suspect e-mail apps is taking the majority because I have 5 e-mail accounts (work, personal and family).
[Desire HD Android Development] futur1sm:
Hi, just done a wipe and installed 5.2.6 this morning (I was on 5.2.2 so didn't want to jump too many versions). I notice in the changelog that the WiFi drivers were changed in 5.2.3, I now have issues connecting to WiFi access points on this new version. :(

On my Netgear DG834G at home if I reboot when within range I have to go into Wireless settings and tap the access point to connect as it says 'Unable to reconnect'. On a BT Hub I use, I cannot get an IP address at all. It just goes into a cycle of Connect, Obtaining IP Address, Remembered..

Any ideas? Love the ROM otherwise. :D
[Desire HD Android Development] Saluco:
Can you explain this Mike, a little bit....i'm sure more than one would like to know Why (is this so) and how Android allocate & manage memory.

TNX :)
[Desire HD Android Development] memnoc:
in android os (as in linux os), ram is used to keep apps always ready to use...think about fastboot mode, your phone reboot so fast cause ram is always full as well as cache (even when the phone is turned off (apparently)), and apps are always ready to go...so, more ram used means more speed in terms of processing, less ram, means more time in processing, less overall speed..that's the reason why task killers are very very bad and unesufel, not to tell dangerous, with android os...in windows mobile, for example, is just the opposite, cause they use diffrent "philosophy" in wich more free ram means more smoothness and better overall performances...but android use more ram as possible, to keep the system ready to response...
[Desire HD Android Development] Azwraith7788:
No issue here. Reboot 10 out of 10 and it just connect automatically. Check your router setting and I remember someone post that something to do with the router brand also.:)
[Desire HD Android Development] Saluco:
man..i have more than 200 (even more than 300 soetimes) most of the time

my guess is that you should remove the Bloatware

either you use Patrics tools after a super Wipe (and give Tnx to Patric for such a great tool)

or you use some app like

System App remover from the market if you don't wanna reinstall ROM now

also in Patric thread you will find a list of the apps that can easily be removed without any problem---give another Tnx to Patric (System App Remover has an "Assist" mode)
[Desire HD Android Development] futur1sm:
Both the access points are working fine and handing out IP addresses, they have other devices connected without issue. One is a Netgear and does connect when I manually go in and tap to retry. The other is a BT branded hub, make is 2Wire and that is stuck in a cycle of obtaining address, remembered, connecting.

I have added another device to both of these routers just fine this morning. It's only since I wiped and changed to 5.2.6, had no connection issues with 5.2.2 :(

Note: The access points are not within range of each other, they are in completely different buildings.
[Desire HD Android Development] jasopan:
1, shortcut between pin 4 and 5?

2, wasn't on never on

From the looks there are around 3-4 users myself included with this issue. surely we all didn't change the same setting and the phone just decided to turn on the speaker most the times we picked up.
[Desire HD Android Development] Azwraith7788:
Then you try different kernel and see how it works.
[Desire HD Android Development] Saluco:
Tnx for the answer.... and i already known some of that

is kinda logic that an app that reside in RAM will open much more faster

but what i really don't understand is how is RAM managed when i open more apps than the remained free RAM , or than the Lower threshold (i guess there is a lower threshold at which point Android is starting killing apps) from what i "see" this philosophy for apps residing in RAM is based more on the Idea that your tendency is to open more frequently the same app (lets say the browser, Facebook, whatever) and that you have enough memory

but ..does the OS manage the same when you open various apps all the time

and how all the open apps reflects on the Use o CPU and battery life, even if they are at a very low level ????

P.S.:

(what i wanna to say is that i want very (or as much as possible ) "scientific" explanation...i have over the average IQ and i can understand most of the things :)))) :D :D:D:D )
[Desire HD Android Development] shithead:
Nice explanation :)

But doesn't mean more ram used is more power consumption?
[Desire HD Android Development] harpss1ngh:
Yes but the kernel and android itself manage memory well so it's efficient.
[Desire HD Android Development] Whiskey103:
100% right. But also android should kill Apps running in background if not flagged as system application. But sometimes there are several "bad" programmed apps, and they are still using unnecessary cpu speed in background. Or hangs in background. So there is in some very specific situation a need to kill the application manually.

So the not use taskkiller rule, well in a theoretical perfect world, indeed not needed.

Just my 2 cents.
[Desire HD Android Development] memnoc:
100% right too; -)

Inviato dal mio Desire HD usando Tapatalk
[Desire HD Android Development] Saluco:
your post remind me some how of MATRIX....

".....PROGRAMS HACKING PROGRAMS...."
[Desire HD Android Development] Pedal_Bike_Pete:
No, RAM uses the same amount of power all the time, even when not storing data, every block of memory is still active, by storing something in there, the system simply changes what's in them already

Sent Fae The Leedroided DHD! >_<
[Desire HD Android Development] vessk0:
Hi, guys, when to expect ARHD based on latest Android 2.3.5? :p
[Desire HD Android Development] Patrics83:
1, shortcut between those pins will trigger car mode. Or dock mode.

2, It is default set to auto start.

And this is a well known HTC Sense issue. Google it and you will see.

I helped a friend with his desire, and since then no auto speaker, on incoming calls.

Sent from my Desire HD
[Desire HD Android Development] ShadowPony:
ram is faster than flash

if it doesn't have it in ram it has to load it from flash, taking more time, cpu cycles and battery

it is the same philosophy as with computers: if it's not in the ram it loads it from the HDD (which is VEEERY slow), that's why it's good to have ram rather than virtual memory (which resides on a hdd), with the new ssd drives it will be better, since ssd is flash :) (but ram is cheaper than ssd for the time being)

the downside of this philosophy is when you have the ram full and open a new program, for this, the OS needs to close other apps then load it from flash into ram

this will lead to a longer start-up time of the app and cpu cycles, and therefore increased battery drain

this is why on android 1.6 there was a problem, because the garbage collector was, well, "garbage" and a task killer was needed which improved a lot battery drain issues

since froyo the garbage collector now does its job very good, that there is no need for task killers (which can actually increase battery drain)
[Desire HD Android Development] Saluco:
You got your 1st TNX :D :D
[Desire HD Android Development] Patrics83:
Thanks Saluco!

What ROM Cleaner will do is to remove unwanted apps.

Apps that in normal cases should allocate RAM memory. On a clean ROM the free RAM will be around 400MB (check out screenshots in my thread) but after some time Android OS will ofc use as much of the RAM it can. The difference is now your apps is taking up the RAM ;)

Sent from my Desire HD
[Desire HD Android Development] michi491:
Is the shorcut between pin 4 and 5 be dangerous to the phone ? The speaker problem happened to me once.
[Desire HD Android Development] Patrics83:
No, but this is only one possible reason why this happens.

Most likely its software related...

As I said I fixed my friends Desire. And it was software relates.

Sent from my Desire HD
[Desire HD Android Development] Saluco:
No Patric...THANK YOU :D

or...since I'm quoting from movies...lets paraphrase one from TRON (original)

"".....He is PATRIC.....he fights for the Users " :D:D:D
[Desire HD Android Development] memnoc:
android works in two way:

1) chronological way: decide what app must be killed in terms of how much time that app is running...so, more time running, less kill, and viceversa

2) ram's weight: decide wich app need more ram to work properly, as a consequence, android kill other apps (using both ram's and weight method) to give more ram as possible to the active app...and this means less power drain, cause if "that" app have all the ram needed, so it works properly, without any more power drain...but that's not always true, and what you said till know, is basically correct, so as you can see, there's no clear and always true explanation, just "operating philosophy"..
[Desire HD Android Development] Patrics83:
LOL you are a funny guy :D

Sent from my Desire HD
[Desire HD Android Development] harpss1ngh:
What do you mean by 2-3 times charging battery?
[Desire HD Android Development] kinnyfaifai:
He means let your battery discharge and charge 2-3 times.;)
[Desire HD Android Development] Wacco001:
Some extra info I like to share : :D

If you close an application, the application will switch to a background (Idle) mode. The state of the current running activity will be saved to the system process.

When you start some more apps the memory managament detects automatical if the free memory is not sufficient and will terminate old process automatical.

Thats the reason why Android doesn't need a "swap file" and users don't have to close applications.

Throughout the termination of the app process the system gets more memory resources and can start the new activity (process).

Android keeps a LRU (Last Recently Used) list and starts killing the oldest "unneeded" process if memory needed.

An another effect of the LRU is, that the user can go backwards.

For example: You read a mail and click a link. The browser will be opened. From the Browser there is a videolink for Youtube.

The Youtube app starts. When you've finished watching the Youtube video, you can go back with the backward button and ... you are realy fast back in your mail application.

The advantage is, that the “closed apps” while they are running in background don't need any CPU time and also no battery power.

But yes, they need memory resources.

An interesting part for OS/kernel dev is/can be the “lowmemorykiller.c” file in the directory “drivers/misc“.

In the kernel source file you could set up exact memory rules for the memory manager.

If you are interested and want to see your current memory setting, take a look here: /sys/module/lowmemorykiller/parameters/minfree

On my HTC Desire HD these settings are:

1536, (Foreground app)

2048, (Visible app)

4096, (Secondary server)

5120, (Hidden app)

5632, (Content provider)

6144, (Empty app)

These 6 values (unit pages) are memory limits for different kind of applications when the memory management starts killing processes.

Cheers,
[Desire HD Android Development] memnoc:
exactly! chronological and weight matter....perfect explanation mate! thanks!;)
[Desire HD Android Development] Xenova:
RAM Management

Just my two scent, not necessary true:

For me, I feel the lowMemoryKill level can be modified to suit your style of usage. It is to find a balance point between "not killing the apps you're need" and "sufficient free RAM to avoid sudden out of RAM / Laggy ".

What i experience before is that these values are set to be too low. It keep most of the apps opened in background. So we can use the apps much faster and consump less cpu. Result: we have lower free RAM. The tradeoff: When I open heavy game, I experienced run out of RAM (it tell me not sufficient RAM to run).

When the values set too high. It will kill the apps in background faster. So we will spend more cpu, and slower to reopen it. Tradeoff: you will have alot of free RAM back there. But for what?

Therefore, it is to find the middle point that satisfy both ends. Generally, users with more apps better off with lower lowmemorykill value. Users with less apps (always switch between fews app only), are better off with higher lowmemorykill value.

MY case: I only have 25+ apps installed. and Only use few apps (other rarely use). THis is my setting (in Pages): 3072, 8192, 16384, 50688, 58368, 76288. I have experimented with many values for 3 months. Just 1 month ago, i found these value suit me very much. It keep balance between the two tradeoff mentioned. Maybe you can try to figure out your own.

EDIT: Generally, we play with the last 3 numbers only. The first 3 numbers is related to:

(Foreground app)

(Visible app)

(Secondary server)

Which offer no benefits if we kill them.
[Desire HD Android Development] futur1sm:
Is there an alternative version of current kernel included with ROM with the WiFi drivers from before 5.2.3? As I like the current kernel except for this issue. :D

Also when I walked out of range and back into range 10 minutes later with the BT hub, I got a message in notifications that it was Unable to connect to the WiFi network.
[Desire HD Android Development] Saluco:
yes i am , but also being so damn smart i am so often sarcastic ...so not everybody enjoy it :)))) :D :D :D

(am i joking ??? :p)
[Desire HD Android Development] Wacco001:
Forgot to mention that a nice app to "manage" these settings can be found in the Market and is called "Autokiller Memory Optimizer" ... :D

For all readers/users ... as always, usage "at own risk" ;)

Cheers,
[Desire HD Android Development] Saluco:
Quite the answer i was expecting ;) i like Proffi answers :d
[Desire HD Android Development] fortuneman:
Sense 3.5

you guys have seen this video, right? ;)

http://www.youtube.com/watch?feature=player_embedded&v=qW6u1foLc6M#!

I suggest skipping the Sense 3.0 and waiting for the 3.5 to appear :)

BTW, do you think that battery also influences phone stability (maybe through voltages)? I just switched my battery and the phone seems to be more stable but this might be due to better voltage/clock settings.
[Desire HD Android Development] Nichie:
those with calls going straight to speaker issue, do you all happen to have gosms installed?

that might be the cause as per their latest update
[Desire HD Android Development] Rolando88:
Whiskey and Mike you did it...

:P

20th of november i can pick my new phone and you guys just didn't leave me any choice.. It has to be the HTC Sensation..

But you guys need to stick with this phone for at least a year!!!:mad::p
[Desire HD Android Development] mike1986.:
Haha no problem mate ;)
[Desire HD Android Development] Whiskey103:
Lol.... Can't promise that mate.. ;)

We will see :D
[Desire HD Android Development] 160bpm:
The only thing why you have the Sensation is because we are the creators of Sensation :) ... Ohh no ID-T did it :) sorry wrong forum :P :P :)
[Desire HD Android Development] mike1986.:
He can also get Asus Eee Pad, right? :p
[Desire HD Android Development] Whiskey103:
Yeah.. Sounds like a good plan yes.
[Desire HD Android Development] rkanwar:
Guys just a quick question. while screen is on and wifi is on what is usually the battery drain in terms of ma?
[Desire HD Android Development] jonhdoe11112:
After a while in standby it's between -3ma and -8ma (for me)
[Desire HD Android Development] michi491:
Not for me...I personaly thought it was related to htc car panel software...as this is the only app on my phone that can trigger car mode...

in addition, before this speaker prob happened, I let this app running a full night (by mistake) and when the phone ran out of battery in the morning, it closed itself...then the speaker prob occured.
[Desire HD Android Development] rkanwar:
same I think but I mean whilst using the phone with auto brightness and.wifi on say for example whilst texting
[Desire HD Android Development] OnceHeaven:
sidetrack abit. mike, congrats on the new purchase. saw ur post in asus transformer thread. ;-)
[Desire HD Android Development] preacher65:
I've been seriously tempted, but the v2 is supposed to be out later this year, so I can't decide. Of course no matter what gadgets we buy, there's always something better/faster/newer out a few months later... :rolleyes:
[Desire HD Android Development] Pedal_Bike_Pete:
Depends on display brightness, minimum, between 100 and 200, maximum, 300 to 400

Sent Fae The Leedroided DHD! >_<
[Desire HD Android Development] rkanwar:
Guys just had the most weirdest experience. My phone is on charge in the car and I had GPS on thought it is the perfect opportunity to test the GPS fix, unfortunately after every step has been taken its still no good. However the concern arises when I had Co pilot running to detect my current location and well my phone all of a sudden rebooted.

these reboots have occurred in the past however that was with a completely dead battery on charge on the car and happened everyone I switched my phone on after it reached 10%+
[Desire HD Android Development] jonhdoe11112:
Tip:

When i press (and hold) on the small cover just below the camera flash, my gps finds much more satellites. Even indoor I can get a fix...
[Desire HD Android Development] CitizenLee:
+1

No wifi for me too.

To elaborate, it can see my network just can't connect.
[Desire HD Android Development] Rolando88:
Haha Android phone and Windows 7 laptop more than enough for me ;)

*Android phone with ARHD offcourse ;p*
[Desire HD Android Development] rkanwar:
Just found a fix for GPS I think anyway I left my GPS on, and ten mins later tried again and got ten satellites fixed. However my query is does leaving GPS on drain a lot of battery? I read a couple pages back that GPS is not used unless am app such as maps or GPS toolbox is opened.
[Desire HD Android Development] jonhdoe11112:
I've the gps enabled and the drain in standby is about -3ma / -8ma.
[Desire HD Android Development] Saluco:
Did you tried lord clockan kernel

???

Send from my DHD using Hot Girls in bikini :D
[Desire HD Android Development] Saluco:
Yes, because there is the gps antenna , and when you press probably you get a better contact. There was even a tutorial to open that cover and to clean the contacts ;)

Send from my DHD using Hot Girls in bikini :D
[Desire HD Android Development] vincepg13:
Hey Mike I'm not asking you to do this I'm just asking you if you think It's possible...reckon its possible to port sense 2.1 music app to sensation?

I ask because srs on desire hd was SO much better then srs on sensation.

ATTENTION: help faux123 get his recognized dev status back, go here >> http://www.change.org/petitions/rec...give-faux123-recognized-developer-status-back
[Desire HD Android Development] harpss1ngh:
Try Lord's v2.0 CFS Kernel. Fixed the Wifi issues for me. It seems better on battery too but mind you I also have undervolted my CPU frequencies between -100mV & -125mV which I'm about to post online after tweaking and re-running stability test!
[Desire HD Android Development] Cristianop:
I have a strange issue. Months ago i had WiFi probs with Standard kernel. So i flashed lords 1.2 WiFi was solved. Since Version 1.5 (now i have latest 2.0) sometimes i get stuck on HTC logo when i make a normal reboot. I have CPU at recommended i think 1.1 ghz and kernel undervolted by 25.anyone any idea? Maybe flash to stock 1ghz?
[Desire HD Android Development] Vessarius:
Standard CPU freq using AR HD is 1.22, I think. Maybe try reflash ROM, kernel etc.
[Desire HD Android Development] mike1986.:
Your issue sounds like too much UV for me.
[Desire HD Android Development] Cristianop:
Okay just read voltages and at 1152 i have 1075. Is that to low? Ahm whats stock voltage of lords at 1152?
[Desire HD Android Development] harpss1ngh:
-125mV undervolt!!!

:DThis is the undervolt I have achieved so far. Most are -125mV and the rest are -100mV with the excepion of the 384000 freq which can only handle a max of -75mV. This is as far as I can go without my phone becoming unstable! This won't work for a lot of you so you may need to reset the vdd's if you try this or try -75mV or -100mV if -125mV isn't stable for you! The usual 'not being responsible for any damage caused' disclaimers apply here....

{ 122000 (875) 750

{ 230400 (900) 775

{ 307200 (900) 775

{ 384000 (925) 850 - Can't uv any further than this value as it becomes unstable.

{ 460800 (950) 825

{ 537600 (975) 850

{ 614400 (975) 850

{ 691200 (1000) 875

{ 768000 (1025) 900

{ 844800 (1025) 925 - -125mV is unstable at this point and only a max of -100mV can be used from here onwards.

{ 921600 (1050) 950

{ 998400 (1050) 950

{ 1075200 (1075) 975

{ 1152000 (1075) 975 - I kept the freq after this as stock values as I won't be using them as they drain the battery fast whether uv or not.

A big thanks to Xenova for providing his undervolt values and advice on how to stress test! Couldn't have achieved this without your help.
[Desire HD Android Development] Cristianop:
Reflashed kernel prob of bootloop seems resolved. Will leave it with standard voltages of kernel ^^

if got a lot of mods sense 3 aio, sense 3 camera, honey hd theme, turkava's Bootanimation,no appdrawer Pages. Is there any influence of these mentioned mods or in general of any mods in Rom speed, stability or battery drain e.g.? I dont have any kind of problems (anymore^^) just a general question.
[Desire HD Android Development] clouds5:
As far as i know reflashing kernel wont reset the values if you use Vipermod to control the voltage. The values get saved in a init.d script and loaded everytime you boot the rom. No matter what kernel you have.

Am i wrong though?