yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] stevensoaj:
Alright, I realize this isn't a "how to get your init.d script working thread", but there are some scripting experts in here. I'm looking for some help trying to figure out why this script isn't working. And before someone else points it out, yes this is adapted from the 950iosettings script that the franco team has been hard at work on. Thanks again guys!

#!/system/bin/sh
# chmod -R 755 /system/etc/init.d

# wait for systemui and increase its priority
until [`pidof com.android.systemui`]; do
sleep 1;
done;
renice -17 `pidof com.android.systemui`;

# color settings
echo 1 > /sys/class/backlight/s6e8aa0/acl_set;
echo -6 > /sys/module/panel_s6e8aa0/parameters/contrast;
echo 0 > /sys/devices/platform/omapdss/manager0/gamma;
echo "-4 0 5" > /sys/class/misc/colorcontrol/v1_offset;
echo "1770000000 1810000000 2000000000" > /sys/class/misc/colorcontrol/multiplier;

#general queue tweaks
for i in /sys/block/*/queue; do
echo 512 > $i/nr_requests;
echo 384 > $i/read_ahead_kb;
echo 2 > $i/rq_affinity;
echo 0 > $i/nomerges;
echo 0 > $i/add_random;
echo 0 $i/rotational;
done;

# set tweaks as scheduler defaults
scheduler=reset;
while sleep 1; do
current=`cut -d\[ -f2 /sys/block/mmcblk0/queue/scheduler | cut -d\] -f1`;
if [ $scheduler != $current ]; then
scheduler=$current;
if [ $scheduler == "row" ]; then

# row tweaks
echo 100 > /sys/block/mmcblk0/queue/iosched/hp_read_quantum;
echo 75 > /sys/block/mmcblk0/queue/iosched/rp_read_quantum;
echo 5 > /sys/block/mmcblk0/queue/iosched/hp_swrite_quantum;
echo 4 > /sys/block/mmcblk0/queue/iosched/rp_swrite_quantum;
echo 4 > /sys/block/mmcblk0/queue/iosched/rp_write_quantum;
echo 3 > /sys/block/mmcblk0/queue/iosched/lp_read_quantum;
echo 12 > /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk0/queue/iosched/read_idle;
echo 25 > /sys/block/mmcblk0/queue/iosched/read_idle_freq;

elif [ $scheduler == "sioplus" ]; then

# sioplus tweaks
echo 3000 > /sys/block/mmcblk0/queue/iosched/sync_write_expire;
echo 5 > /sys/block/mmcblk0/queue/iosched/writes_starved;
echo 156 > /sys/block/mmcblk0/queue/nr_requests;

fi;
fi;
done&

I created it in Notepad2 with Unix Line Ending format. I had a very similar script working before I added the sioplus tweaks and the systemui priority parts, so I'm guessing the problem lies there.
[Samsung Galaxy Nexus] pmbabu:
-- deleted -- wrong post :(
[Samsung Galaxy Nexus] stevensoaj:
It's really the last line. The same last line that's in 950iosettings. Is that the cause of the problem?
[Samsung Galaxy Nexus] pkgnex:
Instead of:

until [`pidof com.android.systemui`]; do

Try:

until [ `pidof com.android.systemui` != "" ]; do

(spacing, and add the !=""
[Samsung Galaxy Nexus] stevensoaj:
That did the trick. Thanks a lot!
[Samsung Galaxy Nexus] pkgnex:
No problem.
[Samsung Galaxy Nexus] Langduscher:
Hey Francisco, when is the 4.3 kernel due?

:D:D:D:laugh:
[Samsung Galaxy Nexus] shawnaye:
Lol, what 4.3 are you talking about?
[Samsung Galaxy Nexus] Blackcrx:
Android OS 4.3 was confirmed today.

No offence, but with the Franco release schedule history.... 4.3 will take some time since his main focus is now on N4
[Samsung Galaxy Nexus] Langduscher:
eheh, I was just trolling guys :good:

But yes, a new Android version is expected to be revealed any minute now, and my guess is we'll be getting a whole lot of "when is it ready?" posts in the upcoming weeks :cowboy: but I was 1st :D
[Samsung Galaxy Nexus] osm0sis:
Weird. Both work fine here in the ramdisk and run manually in a sh. In fact, I found the opposite: the != "" doesn't work correctly with the lmk whitelist pid check where the simpler one does. :confused:

Edit: Just noticed the spacing, maybe that's it?
[Samsung Galaxy Nexus] shawnaye:
Lol, you must be working at Google then, are you Hugo Barra?

Been watching the Keynote for the past 2hours now, haven't heard a single word about 4.3, not even 4.2.3.
[Samsung Galaxy Nexus] JJsevol:
Does anyone with the Franco app know how to remove the new kernel notification? It's driving me nuts seeing it every time.
[Samsung Galaxy Nexus] parkson:
Top right corner. There's a button next to settings... You'll find option to disable (set manual)
[Samsung Galaxy Nexus] Blackcrx:
http://www.droid-life.com/2013/05/15/android-4-3-confirmed-ahead-of-io-via-developer-site/
[Samsung Galaxy Nexus] ChazzMatt:
visual proof from that link:
[Samsung Galaxy Nexus] pkgnex:
Probably was the spacing, then!

Os,

If you've found a better/best way to incorporate the LMK and systemui prioritizations (e.g. are you still using oom_adj for LMK, or going with renice for both?), could you post the code or link to it? The LMK whitelist script in your sig file hasn't changed, and the != "" was from what I think is still your most recently posted script for the systemui prioritization... but now you're saying it's sub-optimal. I'm getting confused (which doesn't take much these days!). Know you're busy... thank for getting to this when you can.
[Samsung Galaxy Nexus] osm0sis:
Nope. I edited all those posts here the other day so they should be different and without != "". As for niceness and lmk, those are completely different things, so oom_adj is still the best way to exclude a process from killing that I know of, though it would make sense if priority had some effect..

http://xdaforums.com/showpost.php?p=41379034&postcount=41586

Right now I'm wondering if increasing the niceness exacerbates the systemui memory leak that custom ROMs are seeing right now. And Fancy and AK have changed the priority to -17, so I guess we'll see if that'll help?

Edit: Hmm. Fancy just added my lmk whitelist script... And credited it to franciscofranco. :rolleyes::p
[Samsung Galaxy Nexus] xFuGiToiDx:
Finished testing fancy r25. But I think lippol's version of Franco r378 is still better. Fancy r25 was only snappy for a while and I had horrible lag when updating apps on play store when I hit the 8 hr uptime mark.
[Samsung Galaxy Nexus] mpokwsths:
On the contrary, I believe r25 is smoother and snappier than Franco's 378.

BUT, the schedulers in Fancy kernel still need work. They indeed lag a little.

Enhance the schedulers and we have THE best kernel for the GNex
[Samsung Galaxy Nexus] lightingcloud:
Seems like on f.ku I can't find anymore the option to set an I/O scheduler on boot... and it keeps deadline as defalut, which I don't like at all. Someone could help? Or I should add a line in the init.d script? It wasn't necessary before the last two/three update o_O
[Samsung Galaxy Nexus] osm0sis:
Try the usual: Reflash the latest nightly and clear f.Ku data+cache.
[Samsung Galaxy Nexus] Raijin:
There is a bug when you activate the new options like delete settings after update, etc. (Without updating kernel) shutdown and re-start the phone, the settings of Franco app are deleted.

I'm not very specific, need to do more debug.
[Samsung Galaxy Nexus] lightingcloud:
Complaining is much faster as it usually solves my problem. So today at boot everything was set as it was yesterday night before shutting down. And I did absolutely nothing. Oh, well. :confused:
[Samsung Galaxy Nexus] schumici:
When i click the link, it is working, but when i click the download button, it is not starting :(

Galaxy Nexus cihazımdan Tapatalk 2 ile gönderildi
[Samsung Galaxy Nexus] schumici:
Is there any mirror of lippol version?

Galaxy Nexus cihazımdan Tapatalk 2 ile gönderildi
[Samsung Galaxy Nexus] Bosio91:
Strange thing has happened to me multiple times... When I update any play store apps, in particular FKu and Falcon Pro among others, during the "Installing update" phase my device either freezes at the touch of one of the navigation bar buttons, or after a longer time than expected of "Installing update" it simply reboots. When it reboots, it doens't ask me for my PIN code (I don't know what you call that, hot boot?).

I'm on stock 4.2.2 with r378 lippol version, and osm0sis' init.d script.

Any ideas?

Thank you!
[Samsung Galaxy Nexus] osm0sis:
Scheduler?
[Samsung Galaxy Nexus] Bosio91:
Deadline. Will try row. Any other recommendations?

Thanks for the help osm0 :D
[Samsung Galaxy Nexus] osm0sis:
Weird Play Store reboots were a SuperSU-related issue for awhile there ("related" not "caused by" since it's actually a call to the debugging native su that Google uses during development that goes rogue).. But should be fixed in 1.25. If you're not using SuperSU it's possible the same native su call from Google Play Services is at fault. I'd also suggest cfq since it and deadline should be the most fair and fast. That said I still use row with no issues and negligible Play Store lag on download/install.
[Samsung Galaxy Nexus] Bosio91:
I am using Kush's Superuser, if that changes anything
[Samsung Galaxy Nexus] osm0sis:
It may if he hasn't written in the workaround to ignore the native su calls yet. Google's own su doesn't work anything like any of the public ones so the calls their debugging code makes result in things going off the rails.
[Samsung Galaxy Nexus] schumici:
Can anybody upload the r378-lippol version on another host? I can't download on dev-host :(

Galaxy Nexus cihazımdan Tapatalk 2 ile gönderildi
[Samsung Galaxy Nexus] osm0sis:
Dev-Host is having issues right now. When it's back please try a few test mods I made:

http://d-h.st/users/osm0sis/test2/

They have the boype niceness mod lippol had in his and a few other goodies I've been working on related to that and the mount options.

I've uploaded 4 versions. I'd like to know which one people find the fastest/smoothest.
[Samsung Galaxy Nexus] duduzinho15:
I like this your version, seems more faster!
[Samsung Galaxy Nexus] osm0sis:
No I've uploaded 4 versions. Tell me which is faster. :p
[Samsung Galaxy Nexus] whitedragonz83:
Haha... so many choices! <3
[Samsung Galaxy Nexus] Empty Hand:
Does it matter if I'm using your io script for testing these?
[Samsung Galaxy Nexus] osm0sis:
950io is only necessary on f.K tuna for deadline now. I'd prefer if people tested without any init.d scripts though, just so we know things are running as intended.
[Samsung Galaxy Nexus] Empty Hand:
Would it help if we all tested with the same scheduler? Perhaps row since the winning values are hard coded?
[Samsung Galaxy Nexus] Langduscher:
Hi osm0sis,

Care to explain the difference between the 4 or are we supposed to "blind test" & report back?

Cause usually I test for a couple if days to let the kernel "settle" (or is that a myth?)

Thanks

oh and a THANKS for your efforts :good:
[Samsung Galaxy Nexus] osm0sis:
Nah, I don't think it's that serious. Besides, we want it to work well with all the tweaked schedulers and it could skew things if we limit ourselves to one. :)

The differences are in the /sbin/fkbootscript.sh file, and are summed up in the different filenames. If you want to explore, feel free, otherwise blind is fine. ;)

I think the kernel settling over days is kind of a myth, I think you can get a good feel from as soon as it's settled down after the boot, and have a reasonable idea after a few hours of normal use. Battery may still take a couple cycles to normalize, but that could also be complete horse****. :p

---------- Post added at 01:20 PM ---------- Previous post was at 01:19 PM ----------

P.S. Created a getprio script last night for use in /system/xbin as a runnable script to check the niceness of a process. Makes up for Android not having "getpriority", and not displaying the niceness in "top" or "ps" like it would on mainstream Linux. More info on usage in my most recent post in my Odds and Ends thread. :D

http://xdaforums.com/showthread.php?p=40409361#post40409361

Edit: Oh snap! 4000 Thanks. :cool: Totally didn't think I'd pass my post count this soon. Thanks for the thanks, guys. xda is fun. :cowboy:
[Samsung Galaxy Nexus] duduzinho15:
Confusion :-$
[Samsung Galaxy Nexus] Langduscher:
I'll have to go in blindly as I have NO clue to what you just said :D

Trying no3 (longest string :laugh:) now.
[Samsung Galaxy Nexus] whitedragonz83:
Same. Longest feels awesome so far.
[Samsung Galaxy Nexus] pkgnex:
I've been having this same problem since the latest Play Store update. Install takes FOREVER, and sometimes hot-boots. Large file updates have taken several times to actually install correctly, and it's more than one app. I am also running Koush's SU (provided with my ROM).

Edit: Scheduler doesn't matter - I've had the same problem with Deadline, CFQ, and RoW.
[Samsung Galaxy Nexus] ExodusC:
I can confirm I also am getting the weird Play Store lockups if I touch my navigation buttons while installing.
[Samsung Galaxy Nexus] bunnahabhain:
+1

Galaxy Nexus / Tapatalk
[Samsung Galaxy Nexus] Langduscher:
And that's kernel related? Just curious.
[Samsung Galaxy Nexus] osm0sis:
Play Store lag is not and it's very old news.

---------- Post added at 04:49 PM ---------- Previous post was at 04:45 PM ----------

Here's what I have written down about it internally:

The usual Play Store install lag moans and groans. Write speed can play a role as we saw before we resolved our exacerbation of it from nomerges 2, but this is a universal problem right now. fatappel in the AK thread recommended going into Google Play Services with AutoStarts and enabling them all (they're not by default?) and said that worked for him. Kurre found some more info that it might be yet another lockscreen widget related issue.

http://xdaforums.com/showpost.php?p=38667142&postcount=39788

http://xdaforums.com/showpost.php?p=37734085&postcount=38978

http://xdaforums.com/showpost.php?p=39851821&postcount=23101

http://xdaforums.com/showpost.php?p=39888211&postcount=40717
[Samsung Galaxy Nexus] lightingcloud:
since most of my freezes happen when Beautiful Widget is updating, it is most likely... I'll try the services fix and will let you know.

EDIT: actually, the only disabled choice in Google Play Service was icing.impl.PowerConnectedReceiver, which is very unlikely to be the one causing problems...

Just to be sure, is there an app similar to autostarts but... free? I'm using Root Toolbox PRO but I'm not sure that I'm doing things correctly...
[Samsung Galaxy Nexus] Kurre:
you could try an app called DisableService. I have it installed but actually I haven't used it a lot, but it seems quite nice :)

Sent from my slimbeaned GNex :)
[Samsung Galaxy Nexus] abalam:
For those who like to run the test img., And prefer to do via CWM I made some flash.zip (s).

r378-fstab_only-osmod

r378-fstab_sdcard-osmod

r378-fstab_sysfs-sdcard-osmod

r378-fstab-sysfs-osmod

have fun!!
[Samsung Galaxy Nexus] osm0sis:
Everybody please remember to get all 4. I want you to tell me which is fastest/smoothest, and you can't do that if you only get the first one, like it appears most so far have done.

Edit: P.S. I think Dev-Host is still getting DDOS'd? Sucks. As if they ever did anything to anyone..
[Samsung Galaxy Nexus] abalam:
I'm also curious what is the fastest. If I had more time I tested them and an image of the quadrant score added every kernel.
[Samsung Galaxy Nexus] whitedragonz83:
Running the fstab sysfs sdcard one for a day. Coupled with Deadline tweaks and I feel a huge boost in UI response.
[Samsung Galaxy Nexus] Hupro1971:
GPU

Is it possible from the Franco Kernel App to overclock the GPU?
[Samsung Galaxy Nexus] jjhrrsn:
Its already over clocked
[Samsung Galaxy Nexus] EnricoTFYKD:
It's already overclocked to 512 MHz, hardcoded by default.
[Samsung Galaxy Nexus] mrdevil_25:
anyone got any test results yet from the 4 os variants?
[Samsung Galaxy Nexus] mrdevil_25:
should/would the tweaks have an effect on battery or just overall smoothness?
[Samsung Galaxy Nexus] shawnaye:
Battery is really insignificant if there's like a 5% increase or what not. After all these are all just minor tweaks.

So I'd say just watch out for overall smoothness first.
[Samsung Galaxy Nexus] mrdevil_25:
to switch from 1 variant to the other, we have to wipe/reset anything or just flash over any r378?
[Samsung Galaxy Nexus] abalam:
Just flash
[Samsung Galaxy Nexus] tshelby73:
Does this kernel work on Verizon galaxy nexus. Not seeing Franco for 4.2.2 in Verizon thread.
[Samsung Galaxy Nexus] solidspidey:
Yes sir
[Samsung Galaxy Nexus] tshelby73:
Just checking but this only has fast boot flash?
[Samsung Galaxy Nexus] abalam:
http://minooch.com/franciscofranco/Galaxy Nexus/JB/JB-4.2.2/

Last one on line you see zips/
[Samsung Galaxy Nexus] tshelby73:
Thanks can't believe I didn't see that the first time
[Samsung Galaxy Nexus] Langduscher:
Regarding osm0sis' kernel images: download, move to /sdcard/kernelbackups, then in f.Ku choose restore kernel.

Yes, as easy as it gets :good:

Otherwise, flash through fastboot: fastboot flash boot nameofbootimage.img
[Samsung Galaxy Nexus] abalam:
Haha :D
[Samsung Galaxy Nexus] madd0g:
What does the BatteryService service of the updater app do ? I've disabled the kernel checks.
[Samsung Galaxy Nexus] osm0sis:
Check in system monitor. Pretty cool function. You can disable it in the system monitor settings if you don't like it. No battery cost either way.
[Samsung Galaxy Nexus] madd0g:
Oh that what it's for, didn't notice the System monitor has it's own Settings, cheers. :]
[Samsung Galaxy Nexus] xFuGiToiDx:
Finished testing fstab only and had great smooth experience yesterday. Testing the fstab sdcard so far it feels more responsive and slight faster than fstab only..
[Samsung Galaxy Nexus] :
Using the third from th list since yesterday and seems smooth. I'll try it one more day and move on to the others. It's much better to observe a kernels behaviour more than a day to see its difference when switching. ;)
[Samsung Galaxy Nexus] Fenvarien:
+1

I tested all variants but the third seems to be the smoothest. :) :good:
[Samsung Galaxy Nexus] The Gingerbread Man:
Not just the Osmond kernels but it works with the Franco ones and stock ones and probably any kernel as .IMG Iv been flashing this way for literally months and months it's just easier :)

As for the latest round of beta testing goes I still haven't tried all builds yet but I still find it hard to choose a favorite so far but this round I felt an improvement over the last
[Samsung Galaxy Nexus] SahilC:
Wow, it's been a while since I've been on this thread!

You guys recommend 378 or the 'custom' ones you guys have been talking about?
[Samsung Galaxy Nexus] Raijin:
Use 378 while custom versions are being tested. :)
[Samsung Galaxy Nexus] SahilC:
Sounds good!
[Samsung Galaxy Nexus] Khrushy:
If you're not going to bother with playing around with the various test builds then Os' "boot-r378-fstab_only-osmod.img" is a pretty safe choice. It has the most significant improvements added but none of the further additions - the jury is still out on the other variations it seems (although I note sysfs+sdcard mod is getting some support in this thread).

That said - we'd love more feedback as to which builds people prefer, and why (or why not - that helps too). The why can be really useful for troubleshooting.
[Samsung Galaxy Nexus] :
Been a day and a half on the fstab_sysfs_sdcard and so far no hiccups whatsoever, tomorrow I'll be using a different one. I much prefer using a Kernel for two days before switching to another one so that I can compare it.
[Samsung Galaxy Nexus] Langduscher:
Tried all 4 now and my preference goes to the latter two, with a slight preference for no4 (fstab_sysfs).

No data to back it up though, just mortal user experience :D
[Samsung Galaxy Nexus] bat0nas:
Am I the only one not satisfied what default folders are created?

For instance we have folder for kernel backups, separate folder for power modes. Then the download directory.

Wouldn't it be much better if all those default folders were under one franco.Kernel folder in the SD card?

Why make a mess across all SD card?
[Samsung Galaxy Nexus] juntulis:
Well I tryed all kernels and with last of franco in antutu I got 8500+ :eek: lol. but why with this kernel I cant config "device specific options" like color multipliers, gamma, vibrator, gpu clock?
[Samsung Galaxy Nexus] abalam:
Which app do you use, FKU or trickstermod? But I think you using the iption in CM rom. In CM is operating display and vibrate function are disable this in normal because this option only works with the original CM kernel. Franco kernel does not support at that vibration intensive institution. Even with the original 378
[Samsung Galaxy Nexus] juntulis:
So what app to use to config thes settings?
[Samsung Galaxy Nexus] abalam:
In the previous post I gave you two apps.
[Samsung Galaxy Nexus] Langduscher:
No brainer: https://play.google.com/store/apps/details?id=com.franco.kernel
[Samsung Galaxy Nexus] aiinjylls:
I recently switched from Trickster to Franco and loving it. I'm a little confused... Trickster has an aggressive battery saving option (using one CPU for battery saving), but I don't see that with Franco. Am I missing something.

FYI, I'm using the Pro version - worth every penny

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] vbauer86:
with cyanogenmod rc2 i got sysui lag after couple of hours. I still dont understand that noone can solve this.
[Samsung Galaxy Nexus] lippol94:
Running CM and f. K. Since yesterday and I can't see any lag. Which version do you have? I/o scheduler? Post settings please :)

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] abalam:
Delete
[Samsung Galaxy Nexus] osm0sis:
I don't think those benchmarks mean much if anything. The wind likely changed directions for sysfs. :p

All I'm concerned with is feel since any benchmark is going to be a hair's difference or unchanged according to our internal testing.
[Samsung Galaxy Nexus] neo-X:
Hi guys, I usually keep up to date (and ive read backwards as well) but this last round of testing threw me off. What are these four files being thrown around? Is this related to the systemui process priority? Will this be done on the N7?

Thanks guys

Sent from my Nexus 7
[Samsung Galaxy Nexus] osm0sis:
http://d-h.st/users/osm0sis/test2/ ;)

systemui priority is improved to -18 in all of them. And yes, once we get the favorite here I'm going to take these improvements to the N7. That'll probably wait for The Gingerbread Man and I finalizing some new winning tunables though; I don't want to interfere with that, and it's far more important.
[Samsung Galaxy Nexus] abalam:
Shi# all the work for nothing haha. I have delete it :D
[Samsung Galaxy Nexus] osm0sis:
You didn't need to remove them. I was just saying benchmarks don't mean too much, especially when they're that close. Thanks for your work trying to tease out the differences. Much appreciated. :)
[Samsung Galaxy Nexus] :
Ok, time to test another kernel, the fstab_sysfs_sdcard had no problems with me. Been good on battery and no lags whatsoever.

Thats my battery life for today with heavy usage got 3hrs on screen. After I drain my battery I'll test another kernel it's much better for me that way. :)
[Samsung Galaxy Nexus] abalam:
Haha too late. I know benchmark is not everything. Some people swear by benchmark, like me. Be it go and unlearn. And now back to where this toppic is intended.

Whether you find it useful? Then I put it back.
[Samsung Galaxy Nexus] Ivan93tm:
hi guys, i just installed the kernel (i bought my galaxy nexus about 3 hours ago, haha) installed paranoid android rom v 3.50 of 14 may so please can someone help me to configure franco kernel app? =) thanks a lot =)
[Samsung Galaxy Nexus] osm0sis:
Wrong device forum? ;)
[Samsung Galaxy Nexus] Ivan93tm:
nope, i was thinking about my old died nexus one when i typed =( sorry... i meant Galaxy Nexus, really sorry... forgive me
[Samsung Galaxy Nexus] osm0sis:
Haha no problem, just making sure since we do have people come in and try to flash it on the wrong devices every now and then. Nothing much to configure in f.Ku, all the defaults are tried and true, maybe just mess around in Color Control. Welcome and have fun! :)
[Samsung Galaxy Nexus] Ivan93tm:
really really thanks =) color control works fine my color are brilliant and i noticed really improve quality with white color, ir really really clean =) gaming with this kernel is really fast and never noticed lag, nice kernel, i think i will keep this kernel for long time :good: