yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Dam4rusxp:
Have you tried clearing the dalvik cache and fixing permissions after flashing? And do you use any whatever2SDext features?
[HD2 Android NAND Development] nemuro:
No to both questions.
[HD2 Android NAND Development] mknewman:
4.1 Kernel and 4.0 ROM and I'm still seeing slow unlock, 248-996mhz and ondemand governor. Battery use is better but still 11mah on idle.
[HD2 Android NAND Development] Dam4rusxp:
Then you should try that when you run into such problems again.
[HD2 Android NAND Development] SnoopHTC:
Hello Dorimanx, I test your Kernel on my CM7 Nightlies ROM and all work great!!! Thanks for your works!!! There is a simple way to reactive the internal killer memory because I use Darktremor A2SD Scripts and AutoKiller Memory Optimizer PRO and I like set it to optimum :) ?

Anyway, thank you again for your work and I want to thank all the developers still active in our machine
[HD2 Android NAND Development] nemuro:
Did that + fix permissions.

Now, upon reboot, my wallpaper is changed to stock and I have some apps missing. Mainly Miui widget clock and One more Clock. They had widgets on the screen that can't appear anymore.

Add to missing apps rom toolkit. Now the market won't start.

Also, on manage applications I can see the apps that couldn't get loaded. They have the icon that suggests they are on sd, and they have little amounts of space occupied. Facebook for example declares it occupies only 272 kb. However, I didn't move facebook on sd.
[HD2 Android NAND Development] wannafly:
A previous bug comes back in 4.0 and 4.1.

In version 3.x (maybe 3.7 and 3.8), the phone sometimes halts when runing apps that have operations to the sd card(gReader for example). after reboot, there are a lot files in LOST.DIR.

I think kernel 3.9 fixes that.

But in 4.0 and 4.1, the same problem comes again.
[HD2 Android NAND Development] djsolidsnake86:
headset doesn't work on miui v4
[HD2 Android NAND Development] Rick_1995:
get the kernel source from github

make ARCH=arm htcleo_defconfig

make ARCH=arm menuconfig

drivers -> staging -> android -> Android OOM (enable this)

save and exit

make ARCH=arm CROSS_COMPILE=/pathtotoolchain zImage

make ARCH=arm CROSS_COMPILE=/pathtotoolchain modules

and then get the zImage from ./arm/boot/

for modules, google. (lazy to type).
[HD2 Android NAND Development] legolas93:
:confused: "internal killer memory"

What is it?..Memory management isn't related to rom? :confused:

Anyone can explain to me?
[HD2 Android NAND Development] marzinho:
On 4.0 and 4.1 facebook hangs up the phone, and after ca 30 seconds phone reboots completely. On 3.9 everything is fine.
[HD2 Android NAND Development] ITAYSHARONI:
Same for me, facebook black screen until i pull the batt out
[HD2 Android NAND Development] Rick_1995:
OOM -> Out Of Memory killer, "internal killer memory" as you call it is not userspace only, it has kernel parts too which are disabled in dorimanx's kernel by default.
[HD2 Android NAND Development] legolas93:
:confused:

I always used Dori kernel with other Rom than his and all was Ok (without task killer). Do you think that in my configuration can something goes wrong?
[HD2 Android NAND Development] Axel85:
same for me,with facebook and dolphin browser hd in 4.0 and 4.1.I use typhoon rom +cpu @ 96 min 1612 max
[HD2 Android NAND Development] D3LTA:
Mhh i'll pass on 4.1 i think, 4.0 is running great for me on Redux 1.4
[HD2 Android NAND Development] SnoopHTC:
Hello Rick, Thanks for the answer, i will look at this but it made me not look so simple ;)

Hello Legolas, no, you are all right, it's Dorimanx who don't like Internal Memory Killer :):):)
[HD2 Android NAND Development] Hinnne:
on dorimanx rom with k.4.1.

no facebook problem.

all working ok.

try app fix permissions.

fix p. for facebook.

or reinstall facebook.

fix p. in cwm.

it should work
[HD2 Android NAND Development] dorimanx:
You welcome my friend :)

happy to hear that.

Sent from my HD2 development phone.
[HD2 Android NAND Development] dorimanx:
the internal mem killer is not working at all, never was, ram is controlled by rom framework, and all settings that we can set, not effect the rom.

so i have removed it to free some more kerner ram.

so just ignore the settings, a d to activate it, i need to do it from kernel settings and recompile.

so no easy way.

Sent from my HD2 development phone.
[HD2 Android NAND Development] :
Kernel 4.0 on HyperDroid 5.5.0

I have the same issue of application freezing and after some seconds (20/30) device reboots.

Will try to fix permissions & reinstall the app.

The app in question is RssDemon v3.1.17
[HD2 Android NAND Development] dorimanx:
for it to work kernel has to be moded for ics.

i dont build for ics, sorry.

so its will not work for you.

Sent from my HD2 development phone.
[HD2 Android NAND Development] djsolidsnake86:
yes i'm using ics options but doesn't work the same :(
[HD2 Android NAND Development] maxpiva1:
Hi, please help!! Did I brick my phone?!?!
[HD2 Android NAND Development] dorimanx:
kernel is only big store of drivers, its not changing nothing in hardware,

so just install any other kernel or reinstall your apps.

i dont have any of your problems..

I am so pazzeled why for some people there are so major bugs, and for 100+ silent users all cool...
[HD2 Android NAND Development] Looki75:
Dorimanx,

Network issue

I have an issue with internet (wifi and data) on the kernel v4.1 and v4.0:

* In Google Translation, impossible to translate a word: immediately blocks/freezes the phone. If I don't pull the battery, it reboots itself after a while

* Same with stock browser: when I open the google home page, it freezes

zram

Also, related to zram, here is the post by themadproducer which describes the issue: http://xdaforums.com/showpost.php?p=21832316&postcount=1353

The issue started with kernel 3.9 and was still here with kernel 4.0 and 4.1...

It was ok before you implemented the "better management of zram".

Thanks for your support!
[HD2 Android NAND Development] frits141:
I live with you. You see here only problems caused by...... Members which have no problems pressed the Thanks button. As I did. I love your work and no probs for me. Thanks!
[HD2 Android NAND Development] jack928:
is true!

Why in some app the system freezes?
[HD2 Android NAND Development] gpietron:
Hi,

no such issues, both browser google home and G.Translate working OK. Not using zram, so no comment ...

Also no any other issues, all good so far :D (I'm not using bluetooth).
[HD2 Android NAND Development] Mappazza:
...it's strange...but now it seems to works with data and wi-fi...

1) uninstall the kernel;

2) dalvik clean;

3) reinstall;

4) no busybox;

5) no vpn fix;

6) yes zram;

7) fix permission...

... and how that old film said: It 's like striptease, no matter how they do it, let's enjoy the result!! :D
[HD2 Android NAND Development] jack928:
sometimes the connection don't start... but when i disable and enable the connection work done....

the problem with the browser and g trapelate is true 4 me
[HD2 Android NAND Development] Yank555:
Tested Google Translate, works just fine for me. As for browsing I'm using Opera and I don't use zram, so can't tell...

JP.
[HD2 Android NAND Development] dertester123:
I hope that someday you will encounter a problem that you are alone with.

And then i hope i will be there and call you a "...... "

There are many such examples.. one was su problems fikret experienced last time. It only happened to a small group of users and the cause was somewhere in the rom / kernel and not on the user side.

XDA is not there to blame people but to share and help even if there are often the same problems coming up that could be solved by reading the thread/searching etc...

Think about it.. next time you have a problem and did everything clean and someone comes calling you "...... "

And for zram problems:

Thats a feature i guess the most users dont even use. So if only a few are coming up with problems i would NOT wonder about this.

Especially if people like themadproducer (klick here) try to describe the problem and their efforts to make it work instead of saying "maah doesnt work you suck"
[HD2 Android NAND Development] paco_oblea:
v4.1 freezes when trying to use applications that rely on data connection.

Using NDT GINGER V35.0[CM7.2 Nightly 2.3.7] and CLK.

:)
[HD2 Android NAND Development] bigheadlyf:
The same here... freezes in ICS, start from v4.x. v3.9 was ok. :(
[HD2 Android NAND Development] tmotard:
Hi.

I got the problem With Google translate.

...
[HD2 Android NAND Development] Looki75:
Additional information about the "network issue":

1/ It affects some of the apps that need internet;

not all

; ex: kaiten mail is ok; it seems it affects the apps that need heavy database access through network

2/ It reminds me a very similar issue we had in kernel 3.? (maybe 3.5 or 3.6?) when also some internet app would make the phone freeze

3/ But this time: it is not systematic; you boot the phone, it could be ok or broken; you reboot, it could be ok or broken; I rebooted 10 times, from these 10 times, the issue was present only 7 times. There were 3 times, when everything was fine...

And still, the issue with zram :)

Keep faith Dorimanx, we (debuggers! :)) will help you make an ideal kernel!!!
[HD2 Android NAND Development] dorimanx:
sadly ideal its will not be, but we can make it good, i will be free today at work close to evening, i will revert changes to zram, and try to reduce the network security and tweak the driver, its very complicated, wrong setting and no data on 4.0 , when for me all was ok...

with 4.1 all ok too... and i have the same phone, but my rom... no other changes...

but i will try to make it better for all.

in zram revert we will lose the huge ram boos at boot, and get back to -50 to 70mb free on boot,

zram will not grow to 25% of free ram and release the real ram.

its will grow only on need when real ram will drop under 100mb.

if this will help with zram bug, so be it,

i prefer the bigger free ram... but its slow the phone with no doubt.

Sent from my Galaxy Tab P7510 :)
[HD2 Android NAND Development] cheetaoncocain:
I am using the same setup and my standby is 2-4mah, only thing is boot is still sluggish.
[HD2 Android NAND Development] mir2006:
I have battery drain again with Dorimanx ROM v3.0.8 and v4.1 kernel.

I've unplugged my HD2 at 7:15 AM and now, after 45 minutes on standby, I have 95% battery level.

I've conservative profile on sleep mode with 96/400 min/max CPU frequencies.

I think it doesn't occur when I have wifi turned on.

:confused:

EDIT: Sorry guys, I had the sleep CPU profile at 960MHz minimum frequency!! :lol:
[HD2 Android NAND Development] fuorionda:
Hi, i have no 3g data on miui 4.1 clk kernel flashed on miui 20.01 clean install.

Edit: reinstalled miui 20.01 and flashed first clk tytung kernel and after dorimanx 4.1 and now data works flawless.
[HD2 Android NAND Development] dratengon:
Browser force close w/o any warning Toast box

I install 3.0.8 and not problem.

But when i launch default browser the progress bar running until almost complete then it close suddenly w/o any notice.

Below is the logcat. I try dolphin browser also has the same problem except mozila.

Any idea?

01-30 17:42:25.054: I/ActivityManager(282): Process com.android.browser (pid 1101) has died.

01-30 17:42:25.058: I/WindowManager(282): WIN DEATH: Window{40714210 com.android.browser/com.android.browser.BrowserActivity paused=false}

01-30 17:42:25.058: I/WindowManager(282): WIN DEATH: Window{407374b8 com.android.browser/com.android.browser.BrowserActivity paused=false}
[HD2 Android NAND Development] themadproducer:
Strange but positive BATTERY results.

1) @ Cheetao.....I installed the free version of Battery Monitor Widget (the one with the green battery ICON....and it recognized my fat 2400mah battery.

2) I then tried my not fully charged Jin Dian 1600mah battery and BMW saw it as 1230mah....so I might try fully charging it so see if that number increases it.

3) WEIRDNESS.....the other day I wrote about 3 different chargers all not able to FAST charge the Jin Dian battery(s) and today....no problem....800ma fast rate charge. I don't think I have changed roms or kernel. WTF? Will it be a random glitch type behaviour? geeez.

UPDATE: Fast charge rate sometimes works...and other times not. Replugging psu randomly toggles fast/slow charge. Ohh Well.
[HD2 Android NAND Development] Looki75:
I use the pro version of BMW (these letters remind me a car...!:D) and as someone already said, it has different battery profiles.

I setup 1 profile for my stock 1230mAh battery and 1 profile for my Chinese 1600mAh battery. In BMW doc, they say that when you change batteries (physically), you have to switch manually the profile in BMW. But this being done, BMW is checking the real mAh of your batteries.

My BMW (the widget, not the car :D) is still learning from my batteries, so too early to say if each one is measured at the level it is supposed to be!
[HD2 Android NAND Development] Charmacas:
Hey Dori,

I don't think that you have to revert back the whole ZRAM changes. For me ZRAM is fine in 4.0. No more problems with freezing after closing a game. So I think you should stay with the changes and may look into another solution if others are having problems with ZRAM with the actual kernel.

I can confirm that some apps are just freezing with 4.0. For example Facebbok as others already said. But yesterday evening it worked fine. So most of the time the problem exists but sometimes it don't. I don't know if this helps but maybe... ;)

Go on with your good work! Thank you for all the time that you put in!
[HD2 Android NAND Development] themadproducer:
Charmacas,

Would you mind doing a SPECIFIC Zram test? See if you get the same issue as I do (and a few others) You are using Typhoon rom right? Here are the parameters...

0) Zram Compcache setting is 18% or else set it to this and reboot first.

1) download and install the free games Angry Birds and Crazy Snowbird. These are 2 games that together consume 120mb+ after they are played and loaded into memory.

2) Launch one game...get it playing, then exit with MENU hard key button so it stays in memory. Launch 2nd game and play.

3) If 2nd game does not freeze, exit it with MENU button and relaunch first game. IF First game has to reload from scratch...then the test is incorrect in that both games at this point need to be LOADED into ram.

4) if during or shortly after switching between games causes a 99% freeze...then you the same issue as some of us have. IF not...especially if you are then able to load yet another game or app with all 3 staying in memory...then I (we) need to find out what the reason is. But if you get the ISSUE, then Dorimanx should indeed REVERT to the old Zram.

Without Zram right now...the system flies!!! I just have less amount of ram. After boot I have 235mb free ram without Zram on Typhoon.and Dx 3.9. I might quickly upgrade to 4.1 to see if that helps.

UPDATE: 4.1 tested as described above. 2nd game froze while loading. I have been able to 100% reproduce the problem to a T.
[HD2 Android NAND Development] popcho:
Im with dori 3.8 rom with 4.1 kernel and cant reproduce your problem im running 5 games simultanios right now and i dont have freezes or something its all runnig quite smoothly. maybe you have some tweaks or skripts that are messing up with the zram
[HD2 Android NAND Development] dorimanx:
Hi, you are very good debugger, but your HUGE problem is that you use OLD not updated, tweakless ROM, please... switch to MY rom, then TEST...

i cant help you if your ROM fail you... all i can say, you have problem in your ROM. not in kernel.

I can run 5 games and switch on any one of them with no problem. when i have 50 services already in RAM! + 5 games...

This is the POWER of Dorimanx ROM.... get updated today and forget about freeze and all the strange bugs...

see you soon. :)
[HD2 Android NAND Development] Charmacas:
Can I test it with two Angry Birds versions? Rio and seasons for example?
[HD2 Android NAND Development] themadproducer:
Thanks for your input.

---------- Post added at 05:47 AM ---------- Previous post was at 05:36 AM ----------

Hey Dorimanx,

Well I know your rom is more tweaked and powerful. If I could change over my FULL setup to your rom quickly...I would at least try. (someday soon)

Thanks for your respectful compliment to my debugging / troubleshooting approach.

As far as the Typhoon rom goes, as you say...it may not be as ideal for the NEWER Zram as it is with your rom. BUT..I have a suspicion....totally unproven...that those using your High End rom may not see the problem because possibly the SWAP partition is compensating. In other words, it's easy to reproduce the Zram freeze on Typhoon rom because it gets taxed FIRST...and only. I wonder if your low end rom would behave more like Typhoon rom? Having that swap partition gives tons of MB headroom....Please correct me if I am mistaken.

---------- Post added at 05:58 AM ---------- Previous post was at 05:47 AM ----------

Yes, I think that would work just as well Charmacas. In my last test with Typhoon 3.7.6 an Dx4.1, I had to launch 3 games to get the freeze and it froze right on cue! It took the 3rd game to put Zram into trouble. Each game is about 40-60+ mb hungry. You might have to add one more large game to the test.

Since you are running Typhoon rom, your test will really confirm the issue. If someone else can do the test with Dorimanx low end rom, then that could also narrow things down a bit and give Dorimanx a better idea as to which direction he will decide to take with Zram..

Test is:

- fresh boot with Zram and 18% compcache active

- launch 2-3 games like angry birds, cut the rope, Crazy snowboard etc. totaling minimum 120-150mb ram without killing them. (they need to be loaded and active)

- Freeze should happen about the time that Zram runs out of headroom.

- test is extreme in that normal small app daily use may never cause this FREEZE issue except maybe after days of operation if/when free ram/zram decrease due to usage or leakage.

Thanks
[HD2 Android NAND Development] dorimanx:
In my compcache script i have set priority to zram 20 it's say to ROM first load to full the zram! then start using the disk swap, i dont get to this point,

i have 812MB swap 512disk + 300zram and i always under 300,

and this what i see if i run zram_stats

# zram_stats
Swaps Status
Filename Type Size Used Priority
/dev/block/zram0 partition 316368 283184 20
/dev/block/mmcblk0p3 partition 530136 0 -1
ZRAM STATS
/sys/block/zram0
disksize: 323969024
num_reads: 26422
num_writes: 70797
invalid_io: 0
notify_free: 39960
zero_pages: 5779
orig_data_size: 102637568
compr_data_size: 36296738
mem_used_total: 51748864
avg_compr_ratio: 35 %
mem_overhead: 42 %

#

as you can see my disk swap is 0 and this is how all High end or Light rom users work.

So it's will use the disk swap only on MEGA load. and probably will crash the phone on over 400MB swap... CPU will not handle so much compression task...

Also to move to my rom, you dont need to do any thing super hard..

just backup your data + ext just in case...

check that your ext is min 1GB and you have at least 200MB free if you want the data2ext mod ON...

then install my ROM over yours...

wait till it's up and thats it...

all will be done by my install... just wait for rom to load all the dalvik-cache , this may take long.. and update kernel to 4.1 or 4.2(will be up today)

And then check and debug, at least you will have more stable rom as a base..
[HD2 Android NAND Development] jjmmll:
Not sure what the problem is the zram I do not use zram, and version 4.0 works very well for me, but the version 4.1 is unusable for network problems described by Looki75.
[HD2 Android NAND Development] vlad2277:
I checked with another program charging does toggle, randomly, what it does is it either starts charging thinking you plugged "ac" or "usb" cable

That's why it doesn't know, not sure why this could be happening
[HD2 Android NAND Development] vensterbank:
I want to overclock my phone, and ive read somewhere that this kernel doesnt heat up my phone as much. Can some explain, or link me a guide on how to corectly overclock and what apps i need (setcpu, etc.) Also version 4.1 freezes up every 30 sec or so. Where can i download 3.9?

Thx upfront.

Edit: running JW miui
[HD2 Android NAND Development] jolas:
I reverted to 4.0 due to a lot of freezes with 4.1.

I had some freezes in 4.0 too, but I'm sure that it is not due zram, because:

-(Using 4.0 with zram activated):

browsed a lot of sites using the browser, closed it and tried to open Gmail to read an incoming mail and my phone froze...

-(Removed zram activation script from init.d folder and rebooted):

done exactly the same, browsed a lot of sites using the browser. After closed it and tried to open it again, my phone froze...

P.S.

Anyway as I posted >here< and >here< and after seeing dorimanx #1533 post I think that zram is not working with the ROM I use... :(
[HD2 Android NAND Development] mknewman:
For me 4.1 is working well, very very low battery use after some of the prior versions (5-10mah) and unlock is much better but have gotten stuck once or twice. Miss that instant unlock we used to have.

I've used only 12% battery in 4 hours.
[HD2 Android NAND Development] sam razzy:
I'm the great power user of Dorimanx :) love this great Rom
[HD2 Android NAND Development] D3LTA:
Not bad DorimanX, not bad at all!

Thanks for everything m8!
[HD2 Android NAND Development] jack928:
wait for a new release :D

can you explain me why some app freeze ...for example g translate?
[HD2 Android NAND Development] johann2204:
have you use your phone?
[HD2 Android NAND Development] jack928:
AHAHAHAH 7D but only in standby :D
[HD2 Android NAND Development] Yank555:
Hi Dorimanx,

I've been on 4.1 a whole workday, battery life is exceptional with WiFi on and connected all the time, average use, and I had over 50% left after over 12 hours :D

I only had 2 isssues (not bad ones) :

- bluetooth calling from my car's handsfree kit reacts slowly, so I get a "Dial Up faild." popup, but the call is placed a few seconds later. Maybe 96MHz is too low for me, will go back to 128MHz min frequency and see how it works out tomorrow

- tonight on the way home my car kit suddenly said connection to phone lost. At home I checked and the phone was dead, nothing was reacting no hardware key lights, no display. I plugged it in to the charger, no reaction. I had to pull the charger and battery out for it to boot.

As I said no big deal, just wanted to report back, maybe it can help you find something ;)

JP.
[HD2 Android NAND Development] sam razzy:
Can someone temme is dis can be used on miui4?
[HD2 Android NAND Development] themadproducer:
:D

First, thanks for the tip to go from Typhoon to your Rom without losing apps and data. I will be shocked if it works without issues....and pleased! :D Good to know it should work. (I tried it once long ago and unfortunately it semi-failed)

In your description of how your rom(s) utilizes Zram + Swap, it sounds like you are saying that "with your setup", you are just under 300mb use of Zram....which has the priority over Swap....and that you don't go over 300mb. So that would not trigger any possible freeze issue because your not going past Zrams limit.

So if you do use over 300mb (lets say by another 100mb) I assume Swap kicks in right? The question is...with your rom, does it freeze? Have you or anyone loaded 400mb into ram?

UPDATE:

Dorimanx...in respect to your Kernel thread, I promise not to continue to write in about Zram after this post....unless you specifically ask me to. :D

I just did one last test:

- Zram 18% = Appr. 218mbs zram MAX available (no swap partition)

- Swappiness 100% (forces Zram to be fully used first before normal ram)

- fresh boot Zram used = 100mb or so

- fresh boot real ram = 235mb FREE

- after preloading some apps, ram = 185mb Free

Then I test by loading 2-3 games....which all go into Zram until full. At the point when Zram is full, and the OS diverts to real ram (more or less) and this is when I get SYSTEM FREEZE from hell. So even though I still have REAL RAM available, things go hay wire.