yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Original Development] frost_nz:
No would be the answer. You know as much as we do.
[Nexus 7 Original Development] rockafellor:
Which settings did you use in fku? Hotplug/governor?
[Nexus 7 Original Development] konradsa:
Not sure this is correct. Smart dimmer doesn't cause flicker, it only cause washed out colors after watching a video. Auto brightness is the one that causes the flickers.
[Nexus 7 Original Development] osm0sis:
Because Android doesn't come with fstrim and without anything sh*ts the bed when the sdcard gets full.

And like I said, the negligible impact to write speeds is worth the long term improvement.
[Nexus 7 Original Development] GedBlake:
They both do... or at least did (past tense)... for me.

I can only report my own experiences... with smart dimmer on (but auto-brightness disabled)... I get screen flicker.

With smart dimmer off - no more screen flicker. I know the primary reason why people disable it, is to avoid video wash-out.

But for me, it fixed the screen flicker issue, which disabling auto-brightness alone didn't.

Rgrds,

Ged.
[Nexus 7 Original Development] khaytsus:
Just use lagfix daily, exactly what most Linux users do.
[Nexus 7 Original Development] flaviocc:
Guys,

its possible to use the osm0sis version on Tilapia ?!

Thank you. :good:
[Nexus 7 Original Development] osm0sis:
For the tiny writes and deletes that take place on Android mounting with discard is by far the better choice. It's also simpler than building cron and fstrim into your kernel. ;)

Yes, of course. It's just franco.Kernel r61 with some stuff changed in the ramdisk. :)
[Nexus 7 Original Development] konradsa:
Sad to report I also went back to r47. I signed up for Google all access music, and the playback was just too choppy. That issue is much better on r47 than r61, even with osmosis changes.
[Nexus 7 Original Development] khaytsus:
Or just use lagfix in the market....
[Nexus 7 Original Development] BowDown:
My N7 will be arriving tomorrow. This will be one of the first things I install.

Posted from my Samsung Galaxy S III 32gb via tapatalk 2.
[Nexus 7 Original Development] osm0sis:
So run it daily, forever, or pay to buy it and use its scheduling service? Poor solution. Discard might not be the best option for desktop or server Linux where there are large file transfers, etc. but it's a very effective solution for Android. That's why it's in like 90% of kernels on devices that require it.
[Nexus 7 Original Development] Metallice:
I came to glance over this thread and am now very confused. I don't understand this talk about adding discard. The nexus 7 kernel has been mounting with discard since 4.2. The kernel source was modified so this option would only affect the chips that required it - (samsung?) 16GB chips, due to a bug with low free space. You shouldn't have to worry about this at all. Assuming that Franco.kernel mounts like stock, discard should apply for the chips that need it, and do nothing on the chips that would be negatively impacted by it. This was all outlined in the commit messages.

---------- Post added at 11:37 PM ---------- Previous post was at 11:32 PM ----------

Here you go straight from kernel block.c

+ * The Nexus 7 ships with several emmc chips. The ext4 discard

+ * mount option is required to prevent performance issues on

+ * one chip, but hurts performance on others. However, if this

+ * is a secure erase request, we want this to work on all chips,

+ * as this is used in factory wipe. So this test will enable the

+ * discard option for the one chip, and secure erase for all chips.

+ */

+if (!(req->cmd_flags & REQ_SECURE) && !(card->cid.manfid == 0x15))

+goto out;

+
[Nexus 7 Original Development] Bobtehblob:
The number of times I've flashed a cm update, forgetting to re flash osmods Franco kernel. Then hours later being confused as to why my tablet is running like ****! At least it reminds me how much of an improvement this is over the stock kernel :D
[Nexus 7 Original Development] sgt. meow:
"improvement over stock kernel" is, IMHO, a slight understatement. This, Sir, is an amazing piece of work. Like pixie dust or something.
[Nexus 7 Original Development] BowDown:
So before I go digging through 200 pages... Does this kernel allow charging in host mode?

Posted from my Samsung Galaxy S III 32gb via tapatalk 2.
[Nexus 7 Original Development] sjknight413:
Am I missing something here?

For me r61 osmod runs about the same as cm 10.1s stock kernel, but with worse battery life.

Either you are all experiencing some sort of placebo effect or my device is inferior which I highly doubt.
[Nexus 7 Original Development] frost_nz:
Have you tried with a clean flash, recommended settings a few pages back and cleared int.d scripts? I think you must definitely be missing something
[Nexus 7 Original Development] sjknight413:
Of course I have.

There is nothing in init.d in a clean cm10.1 install that messes with any kernel settings.
[Nexus 7 Original Development] liranvaknin:
Can't find r61 osmod download link :confused:
[Nexus 7 Original Development] sgt. meow:
I don't know if I speak only for myself or not, but on stock kernel my N7 lagged like hell (dunno why). Then I tried franco's r47. Smooth as a baby's butt. I switched to my own kernel for some time implementing stuff from franco's and other kernels from time to time. Then I returned to r61, and my initial thought was "Holy crap! This is fast!" and I am not exaggerating or anything. But then of course I switched back to my kernel today. Also being able to control hotplug parameters (unlike in stock) helps a lot with both performance and battery life. So do the numerous tweaks mentioned all over the thread that are already integrated in r61-osmod.
[Nexus 7 Original Development] fozzie:
There's no talk of adding the discard option as it's already there in Franco's kernel; on /data & /cache on my N4 and also on /system my N7 (although not sure why the difference).

I was asking about the easiest way to remove it so I could run some tests. There are tests that show it's not necessarily the panacea of all evils and you may be better not using it and just trimming every now and again.

Also, when Franco added the discard option, I'm not sure if it was done conditionally or not. I'm pretty sure though that it wasn't there when we first got 4.2.
[Nexus 7 Original Development] kendallc123:
http://www.d-h.st/0FO
[Nexus 7 Original Development] hotrodwinston:
You also have to consider device variations - some devices work great with some settings while others don't - my gnex can't handle faux kernel at all - lags and sod no matter how I set it- my wife's gnex acts funny on Franco kernel - using the same settings that work beautiful on mine. Every device is just slightly different.
[Nexus 7 Original Development] Metallice:
As long as Franco's kernel is updated correctly, discard should be disabled for the devices that would be negatively affected by it, and enabled for the devices that need it.
[Nexus 7 Original Development] fozzie:
Well yeah, but 'should' isn't 'does' is it. Have you been able to check Franco's source?

Besides, just because Google do it, it doesn't mean it's the best way does it? If that was the case, we wouldn't all be here using custom kernels would we ;)

I've yet to see any decent comparisons of running with the discard option against regular trimming (on these devices) unless you can point me to something?
[Nexus 7 Original Development] Metallice:
My mistake. I meant to say "does". The code does what it does. Not much ambiguity to it. Are you really going to try to argue that google doesn't know what they are talking about here with a specific and direct message like that?

And the google way is almost always is the best way. We can add features, keep things updated with Linux and nvidia, tune values to our hardware, but rarely are things legitimately changed. The arrogance of suggesting that a few tweakers know better than engineers at google astounds me.

A custom kernel doesn't mean we think we are doing things better than google. It means we like custom interfaces, updated drivers, tuned values, and the most recent Linux patches.
[Nexus 7 Original Development] osm0sis:
I never presumed to know more than Google. I just wasn't aware that conditional code existed. Pretty cool, really. Francisco has had discard in the fstab for awhile now though; if I understand you correctly, you're saying that's not necessary?
[Nexus 7 Original Development] Metallice:
I never said you did. I was just responding to the previous assertion that we run custom kernels because Google doesn't always know what is best.

I'm saying the opposite actually. You need discard in fstab like stock. If you don't have one of the 16GB samsung the discard flag does nothing.

They purposefully went out of there way to make sure the discard flag did not work on non-samsung 16GB chips. Sort of suggests something huh? Well, not really "suggests" because they added a comment saying discard hurts performance on non Samsung chips.
[Nexus 7 Original Development] jazzespresso:
Hi osm0sis,

several people mentioning about "Lag Fix" app, can you kind enough to explain what's it? I assume this is something we can download it from play store?
[Nexus 7 Original Development] fozzie:
Errrm, nice mis-quotes and putting words in my mouth, but I can see that you're deeply entrenched in the "if Google do it, it must be the best way" (just like with the gamma settings on the N4 eh?) and so enjoy your journey down that path. There's only one arrogant attitude here, pal.

Can we expect any useful info from you (instead of SBO's like "the code does what it does") regarding the merits of mounting with discard enabled versus trimming?

---------- Post added at 09:14 PM ---------- Previous post was at 09:12 PM ----------

Here you go:

https://play.google.com/store/apps/details?id=com.grilledmonkey.lagfix

http://xdaforums.com/showthread.php?t=2104326
[Nexus 7 Original Development] jazzespresso:
thanks for the link!

About the gamma settings on the N4, I thought it was something LG messed up...I could be wrong though.

I
[Nexus 7 Original Development] khaytsus:
It is an android gui for the fstrim binary basically, so Google what that that is and you'll get I what it does.
[Nexus 7 Original Development] Metallice:
Listen, I'm not going to start some silly fight with you.

I said this "As long as Franco's kernel is updated correctly, discard should be disabled for the devices that would be negatively affected by it, and enabled for the devices that need it."

You said "should does not always mean does"

I said that I should have said "does" in this case because the code (that stops the discard flag from working that I pastes earlier) will do that always. AKA "the code does what it does"

Taking things out of context to make it seem like I'm saying meaningless things are neither fair nor necessary.

I have no data. Only the direct message from Google engineers on the subject and the fact that they purposefully went out of their way to ensure that discard does not function on non-Samsung 16GB chips.

Do what you will with that information.
[Nexus 7 Original Development] fozzie:
Ah, I never noticed that in your sig before. That should do the trick, thanks :)

(I'm also playing around with journaling, just for the hell of it!)
[Nexus 7 Original Development] Metallice:
Ehh. Nevermind. I have data. Wasn't that hard to find. Simply had to google search "discard performance evaluation".

EDIT:

Oh wait I found some more
[Nexus 7 Original Development] khaytsus:
Which is why "everyone" on Linux uses fstrim on a cronjob vs discard when on SSD. Not sure what distros default to, however, but clearly Red Hat was doing extensive research for a reason.
[Nexus 7 Original Development] fozzie:
Cool. They all show performance is better NOT using the discard option, as I thought. Thanks.
[Nexus 7 Original Development] osm0sis:
Yup. That's always been understood to be the case. Trick is, on the crappy Samsung EMMC chips, without discard things get laggy as hell when the sdcard gets full, or enough deletions have been done to fill up all the empty space with "trimmings". ;)

---------- Post added at 12:54 AM ---------- Previous post was at 12:47 AM ----------

I've also just uploaded a new version of the f.Ku Emergency Reset Zip. It now supports clearing a large number of kernel control apps' settings, This should simplify all the instructions people have had to give out lately, that seem to be required for people to know how to run kernel defaults as intended without ROM and app conflict/interference.

I renamed it to just "Kernel Emergency Reset Zip" since now it should be applicable to many other devices and kernels, as supported by the various control apps: franco.Kernel updater, eXperience (Free/Pro), GLaDOS Control, TricksterMod, Trinity Kernel Toolbox, ROM Toolbox (Lite/Pro), SetCPU, Faux123 Kernel Enhancement Project, and AOKP's Performance Control.

Download here: http://xdaforums.com/showpost.php?p=35648172&postcount=35726 :good:
[Nexus 7 Original Development] fozzie:
Indeed, which is why I wanted to run for a few days without discard but with nightly trimming, to see if things felt any different.

Actually, my device is really flying at the moment with nodiscard, journaling off and fsync off (but I accept there may be an increased risk of data corruption, but let's see if that nandroid backup is going to be needed!).

I'm also wondering if discard should really be on, on Franco's N4 kernel?

Edit: Forgot to say that using your Android Image Kitchen was a breeze. Thanks.
[Nexus 7 Original Development] ganeshp:
Can you tell me how you did that?

I've modified fstab.grouper in rootfs accordingly but the changes are not sticking over reboot!
[Nexus 7 Original Development] osm0sis:
First, it'll only make a difference if you have one of the affected Samsung chips, second, you're not going to notice it after only a few days, unless you're constantly downloading and deleting things, and even then filling up your sdcard is the only surefire way to see any slowdown. r61-osmod already basically has journalling off with data=writeback and barrier=0, but Fsync off does fly, yes. ;)
[Nexus 7 Original Development] fozzie:
Pretty sure I saw journaling is on with your mod (and iirc from my messing around earlier, if journaling is off then you also can't set data=writeback; mount complains).

---------- Post added at 09:18 AM ---------- Previous post was at 08:23 AM ----------

Just download the Android Image Kitchen from the link in osm0sis sig and extract to a single directory on your PC. Put your boot.img in the game directory. Run the bat file that splits the image. Edit the fstab. Run the bat file that rebuilds the img. Job done :)
[Nexus 7 Original Development] ganeshp:
thanks [MENTION=332323]fozzie[/MENTION] for the tip ..and thanks [MENTION=4544860]osm0sis[/MENTION] for the kitchen ..It is indeed Amazing/simple/easy :D
[Nexus 7 Original Development] fozzie:
osm0sis - what do you get when you run the below (on UDA, APP

& CAC)?

/sbin/tune2fs -l /dev/block/platform/sdhci-tegra.3/by-name/APP|grep feature
[Nexus 7 Original Development] osm0sis:
No you're right, it's still on, but with data=writeback and barrier=0 we're telling it we don't care about the journaling, and that's one of the reasons for the boost in feel with osmod. :)
[Nexus 7 Original Development] flaviocc:
Tks osm0sis. Gonna try soon.
[Nexus 7 Original Development] SGWUser:
Is it possible to install the kernel using f.ku? I just installed CM10.1 so I lost the kernel, and I have no PC available atm :)
[Nexus 7 Original Development] jlg19753:
Yea .

Sent from my Nexus 7 using Xparent Skyblue Tapatalk 2
[Nexus 7 Original Development] Krayvon:
!

wow, what a combo. R61 and latest cm nightly. I am getting amazing battery life and its stock like stability.

the only thing i dislike about it is the wifi cut off i get when screen is off, similar to my HTC ONE S cm nightly rom. so i'm assuming its a CM thing.
[Nexus 7 Original Development] jlg19753:
Cm thing , AOKP and r61 doesn't cut off the wifi when the screen is off . Do u have your wifi set to always?

Sent from my Nexus 7 using Xparent Skyblue Tapatalk 2
[Nexus 7 Original Development] Krayvon:
yup. i figured.
[Nexus 7 Original Development] wags57:
Just me had problems with torrent app? I tested all possible and after a few minutes using my tablet freezes in 61, same in 47 :(

Normal in M Kernel and Faux, but Franco running greats for me, its the only problem.
[Nexus 7 Original Development] khaytsus:
It's an Android thing. Settings->Wifi->Advanced or so
[Nexus 7 Original Development] frost_nz:
This has been mentioned before, please search. Try changing io scheduler to row
[Nexus 7 Original Development] wags57:
I searched but I not found, thanks for the reply
[Nexus 7 Original Development] MaNFr3:
r61-osmod strikes perfectly on rom stock ;)
[Nexus 7 Original Development] qaz2453:
has anyone got a link to r47 plz

r61 isn't working well on my tablet, the youtube lag is just insane!! and the battery life isn't good either .. i get max 2.5h on screen time :(
[Nexus 7 Original Development] sgt. meow:
minooch.com/franciscofranco/Nexus7/4.2/zips/franco.Kernel-nightly-r47.zip

Here ya go, bud. You could have found it yourself; it was in the OP. But anyways.....
[Nexus 7 Original Development] DroidOnRoids:
Do I look like a cat to you, boy? Am I jumpin' around all nimbly bimbly from tree to tree?
[Nexus 7 Original Development] khaytsus:
Slow down on the roids.
[Nexus 7 Original Development] jlg19753:
Love that movie lol.

Sent from my Nexus 7
[Nexus 7 Original Development] rkuijpers:
Looks like it to me :D
[Nexus 7 Original Development] slybunda:
Need a link to this osmod
[Nexus 7 Original Development] gpzbc:
Check out post #6449 among many others.
[Nexus 7 Original Development] osm0sis:
http://d-h.st/users/osm0sis/osmod

Or if that's somehow not short enough or too hard to remember: http://v.ht/osmod ;)

Info on what's changed:

http://xdaforums.com/showpost.php?p=41649517&postcount=6124

http://xdaforums.com/showpost.php?p=41657506&postcount=6145

Flash my Kernel Emergency Reset Zip so you're running proper kernel defaults.

Then my only other recommended setting which isn't a default is TCP Congestion Avoidance to westwood.
[Nexus 7 Original Development] CreepyE:
Any chance this comes in a flash able zip
[Nexus 7 Original Development] fozzie:
Just put it in the backup folder of f.Ku and restore, or use something like Flash Image Gui from the Play store.
[Nexus 7 Original Development] nex86:
does the kernel work on the 3G model?
[Nexus 7 Original Development] tjamzt:
What are your kernel settings?
[Nexus 7 Original Development] GedBlake:
Default (ie., unchanged) settings with

r61osmod

.

Rgrds,

Ged.

---------- Post added at 04:15 PM ---------- Previous post was at 03:18 PM ----------

Yes.

Rgrds,

Ged.
[Nexus 7 Original Development] GedBlake:
Very nice find, [MENTION=332323]fozzie[/MENTION]...

Previously didn't know about Flash Image Gui... it's no exaggeration to say, I learn something every time I log onto XDA... and this time it's this;

[APP] Flash Image GUI - Flash Kernels and Recoveries from normal Android mode!

.

Just been tinkering around with different recoveries (CWM/TWRP).

... and this method of flashing seems to cover everything with regard to .IMG files... including

r61osmod

.

Very useful for somebody with a locked bootloader - for which FASTBOOT isn't an option.

Thanks, once again, fozzie.

Rgrds,

Ged.
[Nexus 7 Original Development] Irule88:
Maybe this is the wrong place to post, but I've been running PA for a few months now, and its been laggier with every update I swear. M kernel btw.

I decided to switch to PAC Rom and ive heard a lot about this osmod thing. Thing is, I only flashed M kernel before, and I dont really remember how I did it anymore. Can anyone explain to me what osmod is exactly, and how to install it?
[Nexus 7 Original Development] osm0sis:
Literally all answered 7 posts before yours. ;)
[Nexus 7 Original Development] Irule88:
Sorry bout that, I flipped through pages and decided that everyone seemed more in the know than me, just decided to ask.
[Nexus 7 Original Development] osm0sis:
Yeah there were a lot of new people showing up, so that's why I wrote it out and linked it again. :)
[Nexus 7 Original Development] Doo Doo:
Hey osmOsis

I installed your r61-osmod kernel & YouTube still stutters
[Nexus 7 Original Development] jlg19753:
On osmod r61 and 3 times now i noticed it heating up and i look and all 4 cores are stuck on at 1300 . A reboot fixes it but i have very few apps installed and no games, not anything that should be maxing out the cpu and holding it there. Rom Aokp mr1.

Any suggestions appreciated.

Sent from my Nexus 7
[Nexus 7 Original Development] FitAmp:
Could be the app used for setting min/max
[Nexus 7 Original Development] jlg19753:
Only use f.k.u app for kernel settings no others installed .

Sent from my Nexus 7
[Nexus 7 Original Development] xFuGiToiDx:
Use trickstermod and enable frequency lock and then disable it. Then check the CPU stats
[Nexus 7 Original Development] MaNFr3:
Noticed some heavy lags in home/app drawer after a long period of dee sleep with franco r61 osmod :( if i open an applicati on it runs perfectly. Have lags only on home

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 7 Original Development] why always me:
osmod is actually franco r61 with better cpu governor, hot plug, I/O parameters so it running much smother than original r61 and still battery friendly like the original one.

Go back few pages you'll see an instruction how to install an osmod version of r61.
[Nexus 7 Original Development] osm0sis:
You guys with issues, flash the Kernel Emergency Reset zip like I told you to. I can almost guarantee you've forgotten something that's screwing it up. I have literally zero problems on stock ROM, all defaults except for westwood TCP CAA.
[Nexus 7 Original Development] MaNFr3:
Osm0sis I've installed trickstermod just for take a look at your config. but I never did changes

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 7 Original Development] osm0sis:
Hmm, reboot? As far as I know, Android does slow down after a few days. :confused:

Also there's always ROM interference as a possibility, so maybe you should run the reset zip anyway.
[Nexus 7 Original Development] The Gingerbread Man:
It does make me wonder Os, I have same set up as you as you know and I have nothing wrong with my device either. Sometimes I think people just like making issues up or bringing up old bugs for fun. Not that I'm accusing anyone personally of lieing etc etc lol ;)
[Nexus 7 Original Development] MaNFr3:
Sure, seems legit. The tablet was on for 4 days, and I get slow down until 8/9h of deep sleep (stock rom). So is normal for android? a reboot resolve the issue but it's quite uncomfortable.
[Nexus 7 Original Development] jlg19753:
In my case the osmod r61 has run like a champ only the 3 occasions that the cpu got maxed out and stuck . I'm trying to hold off flashing the reset because the mod runs so good . I have cleared app data in the the f.k.u app again but i never touched anything after the first time install of osmod r61 . My guess it was an app that done it just figuring out which one.

Sent from my Nexus 7
[Nexus 7 Original Development] Doo Doo:
so is it flash your osmod kernel 1st then the kernel emergency reset zip or kernel emergency reset zip 1st then your osmod kernel?
[Nexus 7 Original Development] osm0sis:
Order doesn't matter.
[Nexus 7 Original Development] slybunda:
iv downloaded the .img file what do I do with it? do I just flash it using twrp recovery I have?
[Nexus 7 Original Development] fozzie:
Either put it in f.Ku kernel backup directory and restore it from within f.Ku or use Flash Image GUI from the play store (or if you're feeling brave, use dd from a terminal prompt!).
[Nexus 7 Original Development] slybunda:
will try the f.Ku method sounds easiest.

---------- Post added at 11:30 PM ---------- Previous post was at 11:20 PM ----------

ok flashed the kernel now. will see if its any better. so far iv found franco kernel to be worse on battery life than stock kernel. hopefully this osmod will be better than stock otherwise back to stock kernel.