yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] humberos:
ZRAM

zRAM

How do I enable zram?

It must be enabled by a script. Some ROMs may support activating it. If you need to do it yourself you have two choices.

1) Save this to a file and run the script from terminal, Script Manager or System Tuner.

2) Or better yet, save this to a file called 90zram (or whatever you prefer) in /system/etc/init.d and automate it (The ROM's ramdisk needs to supports init.d)

#!/system/xbin/sh
# auto zram activation init script with busybox search
# by show-p1984

echo "[90ZRAM]: Firing up /system/etc/init.d/90zram";

if [ ! -e /sys/block/zram0/disksize ] ; then
echo "[90ZRAM]: ERROR unable to find /sys/block/zram0/disksize";
echo "[90ZRAM]: Is this a ZRAM kernel?";
echo "[90ZRAM]: ZRAM NOT ACTIVATED. (404)";
else
#find busybox in /system
bblocation=$(find /system/ -name 'busybox')
if [ -n "$bblocation" ] && [ -e "$bblocation" ] ; then
echo "[90ZRAM]: busybox found in:" $bblocation;
echo "[90ZRAM]: Setting ZRAM disksize.";
echo $((100*1024*1024)) > /sys/block/zram0/disksize

echo "[90ZRAM]: Starting ZRAM...";
bblocation=${bblocation%/*}
cd $bblocation
./busybox mkswap /dev/block/zram0
./busybox swapon /dev/block/zram0

echo "[90ZRAM]: ZRAM activated.";
else
echo "[90ZRAM]: ERROR! busybox not found!";
echo "[90ZRAM]: Is busybox installed? Symlinks set?";
echo "[90ZRAM]: ZRAM NOT ACTIVATED. (404)";
fi
fi

3) To see how much it is being used in your environment, you can look at the output from:

cat /sys/block/zram0/num_writes

cat /sys/block/zram0/num_reads

##EDIT

I will include it as default in ramdisk.
[Galaxy Tab  Android Development] adi6262:
Humberos ,

Tab freeze when I open Google now at 1.4 GHz . Works OK at 1.3 GHz or below . Yes only freeze on opening Google now .
[Galaxy Tab  Android Development] humberos:
Did you get any log?

Greetings from Brazil!
[Galaxy Tab  Android Development] adi6262:
Oh sorry ! I'll post it after school .
[Galaxy Tab  Android Development] marvz098:
HumberOs I don't know about Zram can u explain to me whats the purpose of Zram? Sorry for my question...
[Galaxy Tab  Android Development] alroger:
UPDATE: 20120920 available. @humberos kernel, pdroid, new partition layout, better memory management, zRAM and zCACHE, USB Fast Charge.
[Galaxy Tab  Android Development] Lior:
Do i need to save anything from my currently stocked device before i flash this?

(saw people losing the imei or modem files on other roms)

new to this, sorry!

Thanks ahead.
[Galaxy Tab  Android Development] AKA_noodle:
[QUOTE

cat /sys/block/zram0/num_writes

cat /sys/block/zram0/num_reads[/QUOTE]

When I use this commands, I get 0
[Galaxy Tab  Android Development] alroger:
Just write down what's your baseband / modem version if you need to copy it back later.
[Galaxy Tab  Android Development] alroger:
To give you more RAM at the expense of a little CPU power. Google it for details.

It's working good for me.
[Galaxy Tab  Android Development] marvz098:
tnx to ur reply bro....
[Galaxy Tab  Android Development] XenoStrat:
Hello,

I installed the 19th build this morning, the 20th a few minutes ago.

Everything seems fine, besides the fact I must have made a mistake somewhere; let me explain.

Symptom:

- in settings/storage:

Total space = 456 Mb

Apps = 209 Mb

Available = 37.87 Mb

Which doesn't add up.. :/

When I try to install a new app, it says "storage space is running out".

I think the origin of the problem is that I tested an application called "SwitchMe root profile manager" a few days ago; it must have messed with the data partition..

Now I know I could restock to solve it, or maybe some cwm wipe; but I'd be grateful if someone could direct me towards an other solution. :)
[Galaxy Tab  Android Development] marvz098:
Huhuhu I experiencing ah tabfreeze and then restart when I'm open my games..how can I fix this problem I'm using a latest build..
[Galaxy Tab  Android Development] hkleomap:
For 20th updated, there are two problems：

1 Apollo.apk Fc

2 auto restart sometimes

Besides these, it is a great rom. thx.
[Galaxy Tab  Android Development] alroger:
No such problem here, using 20120920. Everything is awesome for me!

Then again, I don't know which game you are refering too, neither the exact model of your Tab (P1000N/L/x?).

You guys can use the same guidelines as the nightly thread for reporting bugs, attaching kmsg and/or logcats, etc, so our great DEVs can take a look.
[Galaxy Tab  Android Development] alroger:
Again, no such simptoms here. Most likelly App/Data cleanups necessary.

Apollo playing fine here.
[Galaxy Tab  Android Development] Mjoelnir77:
I had the same problem. Cleaning data with TB solved the issue and now everything is fine.
[Galaxy Tab  Android Development] marvz098:
Sir I'm using p1000 random restart huhu when I'm playing my music and games.

---------- Post added at 06:31 PM ---------- Previous post was at 06:10 PM ----------

Guys what cpu frequency u use in p1000?
[Galaxy Tab  Android Development] alroger:
I use 1.2GHz on my P1000N. Anything above that is unstable (specially for Video and Games).

Did you test your games with the DEFAULT settings? (1GHz, ONDEMAND, etc)
[Galaxy Tab  Android Development] AlterMann22:
Is Deep Sleep state not working?
[Galaxy Tab  Android Development] alroger:
Yes it is. I use CPU Spy to check.

If yours isn't, look for the responsible app.
[Galaxy Tab  Android Development] nscosta:
Expericing to much randoom reboots in this last ROM in many apps..

Thanks
[Galaxy Tab  Android Development] _Derk_:
This is reported throughout all different releases after 0916 independend of old or new partition layout.

Might be interesting on which devices it happens, I had it on P1 with erezaks 0918 and 0919 (bootloop after install).

Bye,

Derk
[Galaxy Tab  Android Development] nscosta:
P1000 (pt)
[Galaxy Tab  Android Development] humberos:
ZRAM Integrated

Hey @ALL!

Now ZRAM is functional for all users and we can change ZRAM values using Performance Menu (in Settings).

Commit

GITHUB

***For next builds.

Greetings from Brazil.
[Galaxy Tab  Android Development] alroger:
@humberos, my MAC is wrong again, and I've changed every single nvram and nvxxxx file that I could find without success. Where is the damn thing reading from now?

Everytime I reboot I have to reactivate Kaspersky Mobile Security and my Perfect Keyboard. Any tips about that?

Thanks again!
[Galaxy Tab  Android Development] alroger:
UPDATE: 20120921 available. @humberos kernel, zRAM working through system configuration and zCACHE updates.

Play with zRAM options in Performance / Memory Management (reboot to take effect), and let us know your experience!
[Galaxy Tab  Android Development] alcuin:
Just tried 20120920 CDMA on VZW p1c, formerly running CM9. Flashed once, then flashed again after CWM upgrades from 6.0.1.1 to 6.0.1.4. Reboot; got CM boot screen but then goes black. Soft keys light up when I tap on them but otherwise unresponsive. Booted back to CWM and reflashed back to CM9 for now.
[Galaxy Tab  Android Development] marvz098:
how can i use boot.img inside the kernel to try other MTD builds?
[Galaxy Tab  Android Development] alroger:
It's all layed out in my blog.

Just remember that this kernel is for New Partition Layout MTDs. I know you can use with the CM10 nightlies.
[Galaxy Tab  Android Development] alroger:
Thanks for the report. If you have the time, could you try flashing CM10 latest nightly for p1c first, and if it works then flash my build to see?

Anyone else on CDMA?
[Galaxy Tab  Android Development] marvz098:
sir i dont know how to use heimdal...any other way to use boot.img instead of heimdal?

sorry for bothering u. i'd like to try aokp build
[Galaxy Tab  Android Development] alroger:
If the AOKP build has the new partition layout, like CM10, no problem, just replace boot.img inside the ROM ZIP!

These tips are in the Download link!
[Galaxy Tab  Android Development] marvz098:
tnx bro i'll appreciate ur reply to me...
[Galaxy Tab  Android Development] humberos:
I will check it soon.

Thanks for your feedback.

Greetings from Brazil!
[Galaxy Tab  Android Development] jhnsok:
Ahh yes and its the same blank screen problem.

Tried CM10 nighties and works fine but lotsa death sleep issues.

I was really hoping that the kernel in this would fix that.
[Galaxy Tab  Android Development] fdfdrere:
Version of 21, restore default settings in camera causes fc.
[Galaxy Tab  Android Development] jtkes693:
same issue here on the p1c blank screen after boot official cm10 nightlies work fine
[Galaxy Tab  Android Development] OsitKP:
Have you read this?

http://xdaforums.com/showpost.php?p=31873799&postcount=301
[Galaxy Tab  Android Development] humberos:
Yep!

Now, I am using this update too.

Thanks!

Greetings from Brazil!
[Galaxy Tab  Android Development] adi6262:
New build with new layout soon ? :D

Last two alrogers build caused frequent auto reboots . Humberos 18 sept build is stablest build I know .
[Galaxy Tab  Android Development] alroger:
Ohh boy.. more fun.
[Galaxy Tab  Android Development] doixanh:
I got kinda serious batt drain when idle. As I observed it's [ksoftirqd] (30% cpu whenever idle, even screen off)

Mem: 401704K used, 111924K free, 0K shrd, 7452K buff, 169048K cached
CPU: 1.1% usr 28.1% sys 0.0% nic 68.7% idle 0.0% io 0.0% irq 1.9% sirq
Load average: 1.00 1.13 0.79 1/461 2165
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
3 2 root SW 0 0.0 29.7 [ksoftirqd/0]
367 138 system S 382m 76.2 0.7 system_server
2157 1400 root R 1472 0.2 0.5 busybox top
1375 1 root S 4524 0.8 0.0 /sbin/adbd
1 0 root S 432 0.0 0.0 /init
888 138 u0_a41 S 314m 62.6 0.0 {enmod.trebuchet} com.cyanogenmod.treb
758 138 system S 309m 61.5 0.0 {ndroid.settings} com.android.settings
689 138 u0_a38 S 300m 59.9 0.0 {ndroid.systemui} com.android.systemui
750 138 radio S 297m 59.1 0.0 {m.android.phone} com.android.phone
830 138 u0_a1 S 296m 59.0 0.0 {d.process.acore} android.process.acor
1060 138 u0_a15 S 289m 57.7 0.0 {m.android.email} com.android.email
1170 138 u0_a7 S 287m 57.1 0.0 {ndroid.calendar} com.android.calendar
1078 138 u0_a16 S 286m 57.0 0.0 {ndroid.exchange} com.android.exchange
941 138 u0_a1 S 285m 56.9 0.0 {ndroid.contacts} com.android.contacts
1112 138 u0_a25 S 283m 56.5 0.0 com.android.mms
738 138 u0_a21 S 283m 56.5 0.0 {putmethod.latin} com.android.inputmet
766 138 u0_a14 S 283m 56.3 0.0 {d.process.media} android.process.medi
1022 138 u0_a8 S 280m 55.9 0.0 {viders.calendar} com.android.provider
1200 138 u0_a31 S 280m 55.8 0.0 {.quicksearchbox} com.android.quicksea
1042 138 u0_a12 S 280m 55.8 0.0 {droid.deskclock} com.android.deskcloc

A quick google search suggested that it may be related to time or something. I tried to set date, but couldn't.

1|root@android:/ # busybox date -s "2012.09.22-17:54"
date: can't set date: Function not implemented
Sat Sep 22 17:54:00 CEST 2012

Setting date with Settings app doesn't work too.

Does anyone have same batt drain problem (cell standby too high cpu) like mine?

/edit: I restocked to GB 2.3.3, flashed Overcome v4.0.0, booted to CWM, and I was able to set date (busybox date...). Perhaps somehow our Humberos Kernel is having problem with date/time?

/edit2: I tried to put JPZ modem into /system/vendor, chmod 777, reboot. No luck. I checked in Settings -> About tablet, baseband is JPZ (was unknown). Also, I pulled out simcard and enabled Airplane mode. ksoftirqd still takes 30% of my CPU whenever it's idle.
[Galaxy Tab  Android Development] alcuin:
Was able to successfully flash CM10 20120921 nightly. Tried to flash your 20120920 right after that, still not booting unfortunately. I'll be happy to test out anything else, thanks.
[Galaxy Tab  Android Development] darksmartz:
The last build 9/21 press hold home button recent apps doesn't appear.

*P1000
[Galaxy Tab  Android Development] doixanh:
Update regarding the batt drain problem:

- Restocked then Overcome v4.0.0, then CM9 latest nightly : ksoftirqd is still eating 30% CPU whenever idle

- One more time restocked, then Overcome v4.0.0, then CM9.0.0 (dated Aug 10th) : ksoftirqd is still eating 30% CPU whenever idle

- Yet one more time restocked, then Overcome v4.0.0, then CM9.0.0-RC1 (dated Jun 26th) : ksoftirqd is still eating 30% CPU whenever idle

I used CM9 since its alpha/beta. I don't remember the last version I used before flashing CM10, but there was support for Themes.

I read in the CM10 thread, there are several guys having same problem like me... What can be the cause?
[Galaxy Tab  Android Development] alroger:
I was watching that.. notice that it uses 30% of 0-1% CPU usage, when we are not using anything. When flicking screens, for example, CPU usage goes to 30%, then ksoftirqd drops down the list cause it's actually not using any significant CPU %.. I mean, 30% of almost 0, is almost 0.

Did you check with CPU Spy or someother app like that if you are effectivelly going into deep sleep?
[Galaxy Tab  Android Development] doixanh:
No, it isn't 30% of almost 0. It's 30% of the full load at 200MHz. When something is using CPU, it drops, but when CPU is idle, it goes up. Battery drops very fast because CPU isn't idle at all.

This was taken at the beginning of April. I tested battery idle time... There was no drain at all.

I'm wondering if anyone has a very old build of CM9?

Btw, I'll test with CPU spy and get some report tomorrow.

Thanks :)
[Galaxy Tab  Android Development] alroger:
You sure? This is from your top: CPU: 1.1%, so ksoftirq was using 30% of that.
[Galaxy Tab  Android Development] doixanh:
CPU: 1.1% usr 28.1% sys 0.0% nic 68.7% idle 0.0% io 0.0% irq 1.9% sirq

That's 1.1% in user mode.

28.1% in kernel. That's where ksoftirqd is spending CPU.

This bug isn't related to your ROM at all, sorry to post here. I should have created a new thread though :P
[Galaxy Tab  Android Development] koolad4ms:
any mirror for this link??
[Galaxy Tab  Android Development] nscosta:
This realease is very unstable, it reboots in most apps and games.

Thanks
[Galaxy Tab  Android Development] chanreii:
Me, too..i've got 5 reboots this day.. one while on the stock browser, one on the youtube app, and the 3 others on the games.. :(
[Galaxy Tab  Android Development] chris3110:
I made the same experience with that build, its working fast and everything is cool as far as you dont realy work with it, some apps will make it reeboot on the spot. is there any nightly that i can use, that maybe fixed that problem?

thx

Chris
[Galaxy Tab  Android Development] _Derk_:
The frequent reboots were observed throughout the different ROM-releases, so not related to a specific ROM but to general changes in CM10.

Not all users were observing this, so it might be related to specific modem.bin or individual used apps which are popular so used by a significant amount of users...

Let's hope this gets sorted out soon :fingers-crossed:

Bye,

Derk
[Galaxy Tab  Android Development] alroger:
UPDATE: 20120923 available. @humberos kernel, New New Partition Layout, big /data again. All data will be lost again! :p

Flash, reboot recovery, flash again, flash GApps, Factory Wipe and go.
[Galaxy Tab  Android Development] nscosta:
This new realease isn't detecting the modem (jpz)

Thanks
[Galaxy Tab  Android Development] alroger:
I think modem.bin is back to /radio.
[Galaxy Tab  Android Development] nscosta:
Done...:)
[Galaxy Tab  Android Development] fatbuccha:
Hey alroger, do we need to restock before flashing to convert to new partition? I'm on you 21st build

Thanks
[Galaxy Tab  Android Development] alroger:
Nope.
[Galaxy Tab  Android Development] fatbuccha:
Hi alroger, are you having reboot issues on your latest build?
[Galaxy Tab  Android Development] sx1-doc:
i am having the reboot bug too ,since latest 2 releases....

just to let u know

thanks for the HW
[Galaxy Tab  Android Development] phearus:
Could you folk please list all your apps and the version of gapps (the one from goo.im is from xx/07 and there was an newer version xx.08 floating around for a while that seems to have not found its way onto goo.im) you have installed - maybe we can workout what the offending apps are - maybe even help narrow the cause down for the devs.

This does happen sometimes - throughout all the builds. My tab (across all builds from cdesai, humberos, and alroger) have suffered reboot just about every time I plug into my computer and turn on USB disc mounting...

Thanks
[Galaxy Tab  Android Development] sx1-doc:
Gapps 26.07.12, and fresh installed after a full wipe, first restart happened when i his the browser favorites, and then in the market and and and ....

tell me guys how i can help to iron this bug out ??

thanks
[Galaxy Tab  Android Development] alroger:
So far, version 23 has not rebooted here.

There is a problem with USB Mounting, in which there might be a soft reboot, cause the graphical UI seems to be closed in order to be able to mount... but it mostly works.

p1n here.

I use 1.2GHz, ONDEMAND, Kernel Samepage Merging, zRAM Disabled.

PS: Damnit! Just rebooted while watching Youtube.

Peeps, use Official GApps from GOO. I can't vouch for any other ZIP. From that we get automatic updates on the Apps, or if new Google libs come out another version will be put up.

If you want to help with the reboot issues, follow cdesai's form/procedure in his thread and in the nightly thread use the guide on 3rd post. Gather up all the logs and info and post acordingly here.
[Galaxy Tab  Android Development] _Derk_:
You really don't want the list of my >200 apps :silly:

I used GAPPS 20120729, not the prior signed one but now changed to the inverted GAPPS

I have most (>175) of my apps placed on my 6 screens plus some widgets (earthquake, calendar, Fritz Ticker, 3 x widgetsoid, news & weather and fancy widget). Fancy widget is known to possibly cause instability but the reboots also happened short after flashing so prior to re-placing the widgets on the screens...

Bye,

Derk
[Galaxy Tab  Android Development] alroger:
Reboots Report

3 reboots today, watching video (MX Player), youtube and then Prince of Persia Classic.

p1n, 1,2GHz ondemand, ksm, no zRAM. Last kmsg attached (starting Prince of Persia).

last_kmsg2.txt: default settings, no widgets, just trying to browse the net. browser seems unusable, reboots after a few seconds of use.

last_kmsg3.txt (20120925): testing a few updates on the kernel.. reboot opening a youtube video in the youtube app...

Enabling zRAM seems to help!
[Galaxy Tab  Android Development] phearus:
I concur - I got many reboots last night - then I just gave up trying to do anything.

I am going to restock completely - see how that goes...

Stil - this thing is really flying (when it is not crashing)! Nice work devs, and alroger - thanks for the builds bro ;)
[Galaxy Tab  Android Development] adi6262:
Everything is pretty much great for me :D

Flashed 23/09 after restocking . All running great at 1.3 GHz.

Like it always had been with me, Google now crashes at 1.4 GHz .

MX player played 720p mp4 very smoothly, so did the default video player (gallery) . Default browser too is quite smooth till now .

Got over 18hrs of battery too! (On 3G, not WiFi! :D) # win!
[Galaxy Tab  Android Development] nscosta:
Continuing expericing reboots in some apps.

instagram, flip board, feedly are some exemplos.

thanks
[Galaxy Tab  Android Development] chanreii:
For two days, my tablet installed with your latest build, seems normal..no reboots, normal hours of charging (2.5 hours) and longer battery life..

but then after that two days, problems arise.. battery stuck at 35% while charging.. ( i removed it for a while, and then put the charger back..took me 4 tries to see it progress until 100%) and then the battery drain.. i charged it before sleeping, then i woke up in the morning seeing the battery went down to 68%...and then the series of reboots while watching videos, browsing the net, and playing some games..

:) and :(

but honestly, yours was really damn fast and i like the wifi connectivity, so fast, unlike the previous and other builds, i can't maximize my internet connection usage :)
[Galaxy Tab  Android Development] alroger:
New humberos kernel

UPDATE: 20120925b @humberos kernel Fixed Wifi MAC!

UPDATE: 20120925 @humberos kernel available for flashing. Memory management fixes. Try zRAM to fix reboots!

Reboot problems? Try the new kernel, then go into Performance / Memory management and enable the default zRAM option. Must reboot after that.

See if it helps and let us know.
[Galaxy Tab  Android Development] jtkes693:
has the booting issues on cdma tabs been fixed...i tried flashing 9-23 and it didnt boot up still just stay on a black screen official nightlys work though
[Galaxy Tab  Android Development] XenoStrat:
Hi,

Just wondering if the 20120925b contains the memory management fixes from the 20120925..?

To know if I should test both or if the b version is enough.

EDIT: flashed b, the zram option is there. I had no forced reboots for weeks now, so I won't be able to tell you if it solves the problem. I'll get back to you if I find anything weird.

Thanks
[Galaxy Tab  Android Development] alroger:
Yes, its is just a 2nd build in the same day with the MAC fix I wanted so much. Thanks humberos!
[Galaxy Tab  Android Development] speedyg0nz:
Flashed the 20120925b kernel and enabled zRam. No reboots in the past half hour with constant usage (Youtube, browser, FB, Twitter, etc). The performance overhead required by zRam is noticeable though, especially when opening apps and returning to the launcher home screen. Looking forward to a kernel where random reboots can be prevented without enabling zRam.
[Galaxy Tab  Android Development] adi6262:
No more 1.4 GHz?
[Galaxy Tab  Android Development] speedyg0nz:
Spoke too soon. Just encountered a random reboot. Could be due to SwiftKey though. Will test a little more.
[Galaxy Tab  Android Development] mess18:
MAC Address changes

HI,

Something wrong within the last build I have installed yesterday to my P1000. Each time it resets or powers up its MAC address changes! My home router works checking the address, so the Tab just cannot connect to it and I have to change setups for it to allow the Tab to connect.

Any ideas or just to switch to another build?
[Galaxy Tab  Android Development] alroger:
If you noticed it was just fixed in the latest kernel.

Please don't quote the whole 1st post (which is always changing by the way).

You have not specified which build and kernel you are running for us to actually comment on it.
[Galaxy Tab  Android Development] humberos:
Sorry dude, 1.4 isn't stable... 1.3GHz seems stable to use.

We were having problems with arm internal voltage on 1.4GHz.

Greetings from Brazil!
[Galaxy Tab  Android Development] adi6262:
Understood . Great decision . The ROM is fantastic :)

Greetings from India .

---------- Post added at 05:11 PM ---------- Previous post was at 04:56 PM ----------

Alroger or other members

If anyone has 18 sept humberos build zip, can you please send the trebuchet apk?

Attach it to your reply . Thanks.
[Galaxy Tab  Android Development] alroger:
It's still up for download, in humberos blog. XDA didn't let me upload it neither in APK nor ZIP.
[Galaxy Tab  Android Development] adi6262:
I know its on his blog, but I am a little low on data :P

If you could please email me at aditya.gholba@gmail.com?

Try changing. Apk to. Jpg :P LOL!
[Galaxy Tab  Android Development] XenoStrat:
Hi!

I experienced two "bugs" today:

- When I go into settings/performance/processor on the 20120925b, I change min cpu to 100, max to 1300, smartassV2 as governor. if I get back in the setting after quitting it, the min freq set is 200. I tried restarting android after changing back to 100, but upon restart it shows 200 again (even when "set on boot" is checked). When I look into CPU spy, I see the 100Mhz unused. I didn't see that behavior on the 23rd build.

- I placed a modem.zip (JPZ) coming from cdesai (modem_updates). Works well when there is a SIM in the SGT, but when there is no SIM I can only see a subset of the wifi networks I could see when the SIM was in.

Kind regards,

Xeno.