yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] Excappe:
I'm having the same issue, running PA 2.23 and M-Kernel plus

I even tried to copy the script to /system/etc/init.d with the same results
[Nexus 7 Android Development] bshiznit:
Jay, are you running 2.20 or 2.23? I recall those 2 versions were actually posted for grouper within a day or 2 of eachother is why I ask...
[Nexus 7 Android Development] wilcomir:
here I've got zeroes with mount | grep discard, but numbers with uname -a ; ...

if I run swapon -a (is it correct?) I get

swapon: /etc/fstab: No such file or directory

dunno if it helps.

cheers

V
[Nexus 7 Android Development] aLPaSLaN07:
Do we have to flash the m-kernel? Is it the only way?
[Nexus 7 Android Development] kzakhar:
Ignore the fstab error message: swapon -a basically looks for a swap entry in /etc/fstab and tries to enable it; since you don't have /etc/fstab, the error message is expected and correct.

What do you mean by 'zeroes with mount' and 'numbers with uname', though?
[Nexus 7 Android Development] carrsi:
u0_a37@android:/ $ uname -a ; free ; mount | grep discard
Linux localhost 3.1.10-motley+ #51 SMP PREEMPT Mon Oct 15 14:37:13 EDT 2012 armv7l GNU/Linux
total used free shared buffers
Mem: 996780 976648 20132 0 275496
-/+ buffers: 701152 295628
Swap: 0 0 0
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0
u0_a37@android:/ $ cat /sys/block/zram0/disksize
134217728
u0_a37@android:/ $

Same here. PA 2.23 :/
[Nexus 7 Android Development] kzakhar:
It isn't, but the m-kernel is based on one of the best kernels around. You could try trinity, faux, franco or any other kernel with undervolting and init.d support, they all work relatively well. Make sure to read the kernel description, especially if the kernel already has lowered voltages: in this case you will have to skip the undervolting section or experiment on your own to find stable voltages.
[Nexus 7 Android Development] Jay Aristide:
Download: Nexus7_CM10_PA22_4.1.2_complete.zip

Those of you on ParanoidAndroid and other CM10 based ROMs who can't get the zram to turn on, download this, then

* reboot into CWM

* flash this zip

* go to advanced and fix permissions

* reflash M-Kernel Plus

* fix permissions again just to be safe

* reboot

* profit (I hope)

Please report your findings

DON'T DO THIS if you're not on a CM-based ROM.

If anybody is stock-based and having this issue, let me know. AFAIK, everyone experiencing this is on something CM-based..
[Nexus 7 Android Development] Jay Aristide:
I'm on PA2.23

No, you don't. Pretty much any 4.1.2 kernel with zRam, init.d, and fsynccontrol support will work, but I only support/troubleshoot M-Kernel Plus, as that's what I use.
[Nexus 7 Android Development] Jay Aristide:
Without zRam and undervolted by -75mV, battery life is awesome.

Folks, zRam impedes battery performance, but increases tablet performance considerably (while multitasking moderately). However, zRam is not the only thing the recipe does. If battery life is important to you, I urge you to grab the no zRam script, run at stock speeds, ondemand governor, deadline scheduler, and undervolt -75mV
[Nexus 7 Android Development] superbellefleche:
Ouh yeah, that's finally working !! Thx for the butter
[Nexus 7 Android Development] Jay Aristide:
OP updated.

Metallice released a few different kernels and I found the fix for CM-based users, so I've updatedthe OP to reflect
[Nexus 7 Android Development] evodon84:
Its working for me now as well on PA 2.23 with the zip you provided. Thanks
[Nexus 7 Android Development] wilcomir:
Ok, still no luck here.

root@android:/ # free
free
total used free shared buffers
Mem: 996780 979188 17592 0 186608
-/+ buffers: 792580 204200
Swap: 262140 17344 244796

root@android:/ # mount | grep discard
mount | grep discard
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0

root@android:/ # uname -a ; free ; mount | grep discard
uname -a ; free ; mount | grep discard
Linux localhost 3.1.10-Metallice+ #58 SMP PREEMPT Sun Oct 21 13:33:50 EDT 2012 a
rmv7l GNU/Linux
total used free shared buffers
Mem: 996780 985880 10900 0 235256
-/+ buffers: 750624 246156
Swap: 262140 21616 240524
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0

root@android:/ # cat /sys/block/zram0/disksize
cat /sys/block/zram0/disksize
268435456

running cm10 1017 nightly. here's what I've done:

follow old install instructions in OP (with the only kernel that was available at the time)

dl the new zip and new kernel, 513LP 446GPU

follow the instructions provided in post above, flash zip, fix permissions, flash kernel, fix permissions.

if you need anything more just say it.

thanks,

V
[Nexus 7 Android Development] Jay Aristide:
According to this, you have a 256mb zRam and proper remounts. Everything is running as intended. Congratulations :)
[Nexus 7 Android Development] wilcomir:
well that was the case at the beginning too, I thought the zeroes after discard when running mount | grep discard were bad. what does they mean?

and, ot, about the kernel, what does LP stand for? LP frequency and all that, I've thought of it but it's puzzling me.

thanks

V
[Nexus 7 Android Development] Jay Aristide:
The zeroes at the end of the mount output represent the user and group /data and /cache get remounted to.

LP stands for Low Power. Your quad-core Tegra3 processor actually has a fifth core - the LP Core - that it uses when your n7 is asleep, just flipping through screens, or other low power consumption tasks.
[Nexus 7 Android Development] wilcomir:
I knew it was something about the cpu. So basically it is fifth core overclock.

Thanks for the info, keep up the good work. I'll stop OTing now.

V
[Nexus 7 Android Development] Jay Aristide:
It's not all that OT, and I usually don't get vocal about it unless things get really cray-cray. Don't sweat it.

Glad I was able to help!
[Nexus 7 Android Development] Cetin:
First flashed PA rom then "Nexus7_CM10_PA22_4.1.2_complete.zip" but system is not booting. Even wiped everything and flashed rom again. After rebooting flashed "Nexus7_CM10_PA22_4.1.2_complete.zip" again but still no booting.

Maybe I have to put files from zip first before flashing this?

I dont know what I´m doing wrong.
[Nexus 7 Android Development] Jay Aristide:
Flash PA, flash Nexus7_CM10_PA22_4.1.2_complete.zip, fix permissions, then immediately flash the M-Kernel Plus of your choice, fix permissions again and reboot. Obviously, you'll skip flashing the kernel in the next step.

Let me know if this works for you, and I'll update the OP to refect it.
[Nexus 7 Android Development] carrsi:
Yep, it's working for me. Flash patch, fix permissions, flash kernel and fix again.
[Nexus 7 Android Development] kzakhar:
Is ondemand better than interactive for battery life?

Upd: answered my own question below.

---------- Post added at 07:58 AM ---------- Previous post was at 07:31 AM ----------

Thanks, I followed the instructions and now zRam swap stays after boot.

---------- Post added at 08:11 AM ---------- Previous post was at 07:58 AM ----------

The above method also works for the new a2 kernel by Metallice (446/579 in my case).
[Nexus 7 Android Development] kzakhar:
Answering my own question: there seems to be little battery usage difference between ondemand and interactive, but interactive seems to offer better performance:

Source: Android CPU governors and you! It was quite an interesting reading :)
[Nexus 7 Android Development] stark0:
I can't live without your recipe! Thank you a lot! I wait to upgrade my system for it were ready.

It's awesome :)

Enviado desde mi Nexus 7 :D
[Nexus 7 Android Development] dSlice:
Yes thank you Jay!
[Nexus 7 Android Development] MrDrift42:
Just flashed PA 2.23 back and went through your whole procedure and got it all working right. Seems to be running faster than my OTA 4.1.2 setup, and is benchmarking better too! Thanks!
[Nexus 7 Android Development] cybok0:
I'm running aokp and used the 128 script and this is what I got,

u0_a118@android:/ $ su
u0_a118@android:/ # free
total used free shared buffers
Mem: 996780 979152 17628 0 53204
-/+ buffers: 925948 70832
Swap: 0 0 0
u0_a118@android:/ # mount | grep discard
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,discard 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,discard 0 0
u0_a118@android:/ #
[Nexus 7 Android Development] rockky:
Chmod 7500 is what permissions?

Thanks
[Nexus 7 Android Development] kzakhar:
setuid, setgid, sticky, user read, user execute. Why would you need this?
[Nexus 7 Android Development] rockky:
Well it says 'chmod it 7500' and I don't know what that is. I figure it meant a manual permission set of some kind.
[Nexus 7 Android Development] kzakhar:
I can't find where it says to chmod 7500, and am quite sure it doesn't say that anywhere in this guide. Perhaps you should read it again.
[Nexus 7 Android Development] Jay Aristide:
The script is not running, at all. Does aokp come with out of the box init.d support? What are the permissions on /system/etc/init.d and on the secret sauce script?
[Nexus 7 Android Development] rockky:
"ad: Nexus7_CM10_PA22_4.1.2_complete.zip

and

the M-Kernel Plus of your choice from Metallice's M-Kernel Classic/Plus thread

* Reboot into recovery

* Flash Nexus7_CM10_PA22_4.1.2_complete.zip

* Go to advanced and fix permissions

* Go back and flash the M-Kernel Plus you downloaded

* Go to advanced and fix permissions again

* Go back and reboot system

* If /data/local/userinit.d/ does not exist, create it and chmod it 0755

* Copy the script you decided on into /data/local/userinit.d/ and chmod it 0755"
[Nexus 7 Android Development] Jay Aristide:
It says 0755 :)

Dyslexics of the earth, UNTIE!

err, I mean UNITE!
[Nexus 7 Android Development] notko:
Sorry beeing such a n00b, but i really don't know what i have done. I followed your instructions and the result is:

This is good or not? I undervolted -50mV, so on whhat should I be paying attention?
[Nexus 7 Android Development] Jay Aristide:
Your zRam didn't activate. Please see post 37 :)
[Nexus 7 Android Development] rockky:
Yes it does, I'm asking exactly what that means.

QUOTE=Jay Aristide;33131374]It says 0755 :)

Dyslexics of the earth, UNTIE!

err, I mean UNITE![/QUOTE]
[Nexus 7 Android Development] kzakhar:
This means u=rwx,go=rx. How about you read it up or something? http://goo.gl/7mfW
[Nexus 7 Android Development] notko:
So now i think i am good?
[Nexus 7 Android Development] brianpee:
Seems right.
[Nexus 7 Android Development] kzakhar:
You are. But think if you really need that much zRAM swap:

1) it consumes 1/4th of your RAM;

2) it consumes CPU to compress/decompress data (=> consumes battery).

Unless you do heavy (like for real) multitasking and don't care about the battery life, perhaps you should consider starting with a smaller swap, like 64-96 MB.
[Nexus 7 Android Development] Jay Aristide:
I've noticed most people are using a 256mb zRam and I was planning on addressing that..

Everything Kzakhar said is true. By dedicating 256mb to zRam, you're effectively cutting your system RAM to 768mb. Since that 256mb chunk is always present and compressed, you use CPU cycles (and by proxy, battery) to constantly compress/decompress the information being read from it and written to it.

If you use your tablet as most people do -- that is, one app running in the foreground, and you don't do a lot of 'recents -> switch app -> work some -> recents -> switch back -> rinse/repeat' -- then you probably don't need much zRam, if any at all. I recommend zRam because it helps -- a LOT -- with launcher lag after exiting an app, but for that you only need a 64mb zRam. Hardcore gamers and those who want superior battery life will disable zRam altogether, while forum warriors who often have 3 browsers, 2 apps, maps, officer suite, and trillian open all at once will choose a 256mb zRam. Personally, I run 128, as I often fall in the middle of these two extremes.

I hope this helps shed some insight into why and how to utilize zRam :)
[Nexus 7 Android Development] Jay Aristide:
OP updated with a link to the above post and clarified instructions for those with CM-based ROMs.
[Nexus 7 Android Development] notko:
Ok. I'm now on 64Mb. Tnx for the help.
[Nexus 7 Android Development] cybok0:
I think I fixed it, is this right? Thanks for your help.

u0_a118@android:/ $ su
u0_a118@android:/ # free
total used free shared buffers
Mem: 996780 985800 10980 0 51856
-/+ buffers: 933944 62836
Swap: 131068 172 130896
u0_a118@android:/ # mount | grep discard
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,relatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc,discard 0 0
u0_a118@android:/ #
[Nexus 7 Android Development] bshiznit:
THANKS! Up and running now with 64 mb zram paranoid 2.23

---------- Post added at 08:17 PM ---------- Previous post was at 08:16 PM ----------

Yup cybok that indicates 128 mb zram
[Nexus 7 Android Development] rootbrain:
Jay, working great now, only issue is speaker. Acting weird compared to stock 4.1.2 kernel. Staticy is all I can say. That's using musicFX on the sounds settings. I switched to DSPmanager and it cleared the problem.

I started with classic4.1.2_446, and seemed fine, tried the alpha4.1.2_446 and had some quirky issues, so I went back to classic immediately. The 486 hammered the battery too quickly, the 446 is a good balance between performance and battery life. Wonderful now.

If anyone is commenting about lag it's the Samsung SD card & "trim" issue. Use the forever gone app let it do it's thing. Really speeds up the disk. Search xda it's been documented in a thread on 4.1.2 fixes.

Anyway thanks to you and Metallice.

Rootbrain
[Nexus 7 Android Development] Jay Aristide:
The audio issue is something to do with the LP overclock on the M-Kernel Plus. Metallice is working on it, and I think he's gonna be releasing a no-lp-oc version, too.
[Nexus 7 Android Development] Jay Aristide:
You're all set with 128mb zRam.

BTW, you don't have to use su for free and mount (unless you're actually mounting and unmounting)
[Nexus 7 Android Development] batman368:
how did you fix that? permissions? are you still on AOKP?
[Nexus 7 Android Development] rootbrain:
I'll look for it but since I have DSPmanager and that seems to eliminate the problem I'll probably stand pat with the classic 446. Thanks.

Rootbrain
[Nexus 7 Android Development] kzakhar:
Could you please explain how DSPmanager helps?
[Nexus 7 Android Development] MrDrift42:
Any ideas for PA 2.50? Back to the same issue of swap disabling at boot. Works if I run the script after boot. Tried the same procedure as last time and no dice. This is with M-Kernel a3.
[Nexus 7 Android Development] Jay Aristide:
You flash the zip from post 37 again before the kernel?
[Nexus 7 Android Development] MrDrift42:
Yes. Though I just tried it again and it took this time, so maybe I missed a step. Either way it works again. Thanks!
[Nexus 7 Android Development] DonQTX:
Jay is there a video on how to do this? I'm not a tech savi guy and have to rely on you tube to do anything.

Thanks
[Nexus 7 Android Development] Jay Aristide:
No, but if someone made a good, straightforward one (in English, please), I would surely add and properly credit it in the OP :)
[Nexus 7 Android Development] rockky:
Or just simply state that in clickable link for us morons in the OP. I did 'read it up'.
[Nexus 7 Android Development] MrPickleFicker:
Hey there

Kind of a rookie at this so wanted to make sure I got this right.

Running paranoid 2.5 so I followed the cm10 instructions. Does it look like everything is in working order? I used the 64 mod.
[Nexus 7 Android Development] kzakhar:
Yes, it worked fine
[Nexus 7 Android Development] oldlight:
Thank you!!!

I myself build a ROM following your great recipe. Great results!!!

My N7 run so fast, smooth and great battery use.

Thank you!!!
[Nexus 7 Android Development] zlewe:
Do I need to remove busybox in bin before install it in xbin?

Sent from Mount Olympus via Iris-Messaging.
[Nexus 7 Android Development] Sultan.Alkhuzaie:
Hi Jay

Can you update the cm base file in the OP i am on PA 2.5
[Nexus 7 Android Development] MrDrift42:
I'm on PA 2.5 and just did this and it worked fine.
[Nexus 7 Android Development] stonebear:
Is "chmod it 0755" setting permissions to rwx r-x r-x?
[Nexus 7 Android Development] Jay Aristide:
You got it :)
[Nexus 7 Android Development] stonebear:
Thanks, I will give this a go then. :)

edit

Done and verified working on Slimbean (which I think is CM based, I treated it as such anyway). :)

I assume I can try different M-kernels now while retaining the mod?

edit 2

my sd read/write scores are even higher than when I did your mod on 4.1.1 :)
[Nexus 7 Android Development] zlewe:
Verified working on Stock using init.d method. Thanks

Sent from Mount Olympus via Iris-Messaging.
[Nexus 7 Android Development] Cetin:
I need best and fastest configuration for viewing and rendering large pdf files, like 200mb magazines and books!

What would you all recommend for?

This is what I got right now:
[Nexus 7 Android Development] rootbrain:
Not really sure, but with dsp manager installed there are two options under sounds>music fx. One is normal musicFX the other is dsp manager. Using dspmanager seems to eliminate the occasional static and infrequent pops being reported.

Wish i had something technical to say why but I don't. It just does.

Rootbrain
[Nexus 7 Android Development] MrDrift42:
I have dsp manager and don't see those options. Weird.
[Nexus 7 Android Development] Kueber:
After I flashed 1.4.2 (PA 2.5) I used your little recipe here.. but it feels not as smooth as the 1.4.1 one?

Everything is working so far.. but am I missing something?

Which M-Kernel+ do you guys use? I downloaded the a3 (recommended OC values).. mhm.

Especially in apps it's more sluggish than before (G-mail, browser). Thinking about going back to 1.4.1 ..

Update: Gone back to pa 2.16 with 1.4.1 jay-recipe (my latest nandroid backup) and everything is buttery smooth, so that wasn't some cognitive dissonance on my part :D Any suggestions what could cause this sluggishness?
[Nexus 7 Android Development] Heretic Infidel:
Problem with the zip file

Hi,

On Paranoid Android 2.23 i was able to flash the rom, gapps, kernel and your zip file. It then worked with buttery efficiency.

However, every single time i try to install the Nexus7_CM10_PA22_4.1.2_complete.zip via CWM combined with the Paranoid Android 2.5x rom, it gets stuck on the google logo.

The steps i have taken are:

1. install stock google 4.1.2 & boot

2. factory reset

3. install PA 2.52 + gapps 201211010

4. boot sucessfully

5. reboot to CWM & install m-kernel a3 (recommended

6. boot sucessfully

7. reboot to CWM, install Nexus7_CM10_PA22_4.1.2_complete.zip

8. reboot, get stuck on google logo, manual reboot to Fastboot & then to recovery

9. install the m-kernel a3 again.

10. Boot succesfully.

Within the installs of the kernels and roms etc i clean my caches, fix my permisions etc as per order of the original poster.

Hereby my question: what could be the reason that this is happening and ofcourse, how do i fix it?
[Nexus 7 Android Development] Kueber:
Well, sticking to the guide Jay wrote is a generally good idea, lol.

[CM-Based] Installing the ramdisk, M-Kernel Plus and Special Sauce script:
CM really should have busybox. If it doesn't, install it.
Download: Nexus7_CM10_PA22_4.1.2_complete.zip
and
the M-Kernel Plus of your choice from Metallice's M-Kernel Classic/Plus thread
* Reboot into recovery
* Flash Nexus7_CM10_PA22_4.1.2_complete.zip
* Go to advanced and fix permissions
* Go back and flash the M-Kernel Plus you downloaded
* Go to advanced and fix permissions again
* [B]Go back and reboot system[/B]
* If /data/local/userinit.d/ does not exist, create it and chmod it 0755
* Copy the script you decided on into /data/local/userinit.d/ and chmod it 0755
* Skip to [Common] Verifying Installation

You should flash everything in one recovery session, no reboots until it's stated there - and be aware of the order things have to be flashed, yours does not match Jays. Then there shouldn't be any problems.
[Nexus 7 Android Development] Heretic Infidel:
That explains 1 thing, read it correctly but rememberd it wrong. That part is working.

However, i have 1 last question regard the placing of the script.

Jay says: place the scripts in data/local/userinit.d/ and if its not there, create it.

I would like to know what software to use to create it, as root explorer does not allow the create of the userinit.d folder.

Or am i reading something wrong?
[Nexus 7 Android Development] cyberapoc:
You use the terminal. 'mkdir', 'cp', 'chroot' commands are all you need.

EDIT: of course, don't forget to use 'su' first ;)
[Nexus 7 Android Development] rootbrain:
That is weird. As an FYI I got the DSPmanager from this link: http://xdaforums.com/showthread.php?t=1889522. It's the zip I flashed that has the Apollo music player + DSP manager. I didn't care much for Apollo, so I just deleted it with NoBloat app and left the DSPmanager intact. Maybe that's how the settings got updated?
[Nexus 7 Android Development] Heretic Infidel:
Works! Ty very much ^^
[Nexus 7 Android Development] MrDrift42:
Edit:

Didn't see the posts above that you figured it out. Sorry :D.
[Nexus 7 Android Development] TigTigerTig:
Would this, by any chance, help sort out any live wallpaper lag I experience when scrolling through pages on my launcher?
[Nexus 7 Android Development] Jay Aristide:
The zRam might :) Be sure to let me know if it helps after you give it a go
[Nexus 7 Android Development] Kueber:
Might have been overlooked, little bump just in case.

Is it possible that PA 2.5 or higher causes problems?
[Nexus 7 Android Development] stonebear:
Just an update on my last post, I reflashed slimbean and did this mod treating it as AOSP rather than CM and it worked.
[Nexus 7 Android Development] Jay Aristide:
PA is becoming more robust and feature-rich.. That's about all I can think of, to be honest. I've noticed that the 4.1.2 versions of PA have been a little slower than the 4.1.1 versions, but 4.1.2 is such a general improvement over 4.1.1 that I really can't see myself going back
[Nexus 7 Android Development] Sultan.Alkhuzaie:
how can i chmod the last 3 steps of the cm base
[Nexus 7 Android Development] Sultan.Alkhuzaie:
i have a fresh install pa 2.52 and did all these steps just want to know if i did everything right
[Nexus 7 Android Development] kzakhar:
To my surprise, stock ROM gave me the best overall experience: good performance, excellent battery life and no lag whatsoever. I think I'm gonna stick to stock :|
[Nexus 7 Android Development] IRASadPanda:
When I check if the script is working in Terminal, swap values are all zero, is this normal?
[Nexus 7 Android Development] zlewe:
If you use no zram script it's normal. But if you use zram enable script this is totally not working .

Sent from Mount Olympus via Iris-Messaging.
[Nexus 7 Android Development] Sultan.Alkhuzaie:
I have zram 256 is this right
[Nexus 7 Android Development] superbellefleche:
Yeah that's right !!