yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] sbdags:
Right I have fixed the script for you but what does this actually do?

run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p1");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p2");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p8");

run_program("/tmp/fsck.ext4", "-apfD", "/dev/block/mmcblk0p1");
run_program("/tmp/fsck.ext4", "-apfD", "/dev/block/mmcblk0p2");
run_program("/tmp/fsck.ext4", "-apfD", "/dev/block/mmcblk0p8");

run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p1");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p2");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p8");

run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p1");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p2");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p8");

It now never completes on my tab - I left it for 30 mins. Luckily it still booted so I do not recommend you run this tuning until we understand what it is supposed to be doing.
[Asus Transformer TF700] sbdags:
OK Update - now I kind of understand what you are doing with removing journaling I have updated your script for the tuning to the following. I'd advise you to use this and also use the log file in recovery which you can save to sdcard from advanced after a flash so you can see if you had any issues :) Note it can now take 5 to 15 mins for the fsck commands to run depending upon how bad your partitions are. This appeared to fix loads of problems on mine :)

ui_print("Tweaking ext4 filesystem - this can take up to 15 mins");
set_perm(0, 0, 0755, "/tmp/tune2fs.ext4");
set_perm(0, 0, 0755, "/tmp/fsck.ext4");

ui_print(" - Unmounting filesystems");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p1");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p2");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p8");

if
is_mounted("/system")
then
ui_print(" - System is mounted");
else
ui_print(" - System is unmounted");
endif;
if
is_mounted("/cache")
then
ui_print(" - Cache is mounted");
else
ui_print(" - Cache is unmounted");
endif;
if
is_mounted("/userdata")
then
ui_print(" - Data is mounted - no tuning allowed");
else
ui_print(" - Data is unmounted");

ui_print(" - /system fsck -apFD");
run_program("/tmp/fsck.ext4", "-apfD", "/dev/block/mmcblk0p1");
ui_print(" - /cache fsck -apFD");
run_program("/tmp/fsck.ext4", "-apfD", "/dev/block/mmcblk0p2");
ui_print(" - /data fsck -apFD");
run_program("/tmp/fsck.ext4", "-apfD", "/dev/block/mmcblk0p8");

ui_print(" - /system tune2fs with journaling removed");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p1");
ui_print(" - /cache tune2fs with journaling removed");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p2");
ui_print(" - /data tune2fs with journaling removed");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p8");

ui_print(" - /system fsck -Dfy");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p1");
ui_print(" - /cache fsck -Dfy");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p2");
ui_print(" - /data fsck -Dfy");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p8");
endif;

Now the other issue you have is that if the user flashes your data2sd addon references to /userdata aka /dev/block/mmcblk0p8 are redundant as /userdata has now moved to /dev/block/mmcblk1p2

I work around this in my aroma as I can dictate from a user choice where /userdata is but you can't so you need to be aware of that as well.
[Asus Transformer TF700] Hundsbuah:
wow thanks i always thought why its so fast with checking the filesystem but i have forgot it and never checked it again. i just want to remove journaling and set some mounting options for more speed. and as you know i want to check the filesystem first. thank you very much for the help!!! - currently i have no time, but i think in monday ill give it a try at my tab! thx again!
[Asus Transformer TF700] sbdags:
I've updated it into my kernal installer which I will release later today. Have a look at the script I use with that ;)
[Asus Transformer TF700] sbdags:
Updated script. Note however fsck takes an extreme amount of time the first time it is run. Users report never completes. One of my tabs took over an hour first time and 5 mins subsequently.

ui_print(" - Unmounting filesystems");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p1");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p2");
run_program("/sbin/busybox", "umount", "/dev/block/mmcblk0p8");

if
is_mounted("/system")
then
ui_print(" - System is mounted - skipping tuning");
else
ui_print(" - System is unmounted");
if
is_mounted("/cache")
then
ui_print(" - Cache is mounted - skipping tuning");
else
ui_print(" - Cache is unmounted");
if
is_mounted("/sdcard")
then
ui_print(" - Data is mounted - skipping tuning");
else
ui_print(" - Data is unmounted");

ui_print(" - /system fsck -pD");
run_program("/tmp/fsck.ext4", "-pD", "/dev/block/mmcblk0p1");
ui_print(" - /cache fsck -pD");
run_program("/tmp/fsck.ext4", "-pD", "/dev/block/mmcblk0p2");
ui_print(" - /data fsck -pD");
run_program("/tmp/fsck.ext4", "-pD", "/dev/block/mmcblk0p8");

ui_print(" - /system tune2fs with journaling removed");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "5", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p1");
ui_print(" - /cache tune2fs with journaling removed");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "5", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p2");
ui_print(" - /data tune2fs with journaling removed");
run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "5", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p8");
endif;
endif;
endif;
[Asus Transformer TF700] Hundsbuah:
yes that can be. it depends on how many errors are found / have to be fixed.
[Asus Transformer TF700] sbdags:
Exactly when I checked the logs I had lots - by lots I mean thousands! :eek:

Now when I run it it picks up about 5 or 6 inodes.
[Asus Transformer TF700] tyfoxx:
Hi All, For some reason, I have been experiencing issues with v3.2.0, , In that; I am unable to boot... a long cycle of boot loops and restarts.

I'm using Nova Launcher premium, CROMi 4.7.0 and the latest Blue and Jazz theme v2.3.

I have no issues with the other kernels.

if anyone else is experience the same of similar and found a resolution.

Please advise

tyfoxx
[Asus Transformer TF700] :
Are you using a sdcard in extfat ?
[Asus Transformer TF700] tyfoxx:
No---I am not,No data2Sd either.
[Asus Transformer TF700] Hundsbuah:
Ill revert the latest changes and just do the reboot to recovery fix. Hope this kernel will be more stable

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Asus Transformer TF700] workdowg:
[MENTION=4931250]Hundsbuah[/MENTION] - Side note. The dual-boot kernel moreD_cn compiled using your source boots to recovery. Is it because it is missing your tweaks? Take a look if you want - http://xdaforums.com/showpost.php?p=44030060&postcount=724
[Asus Transformer TF700] Hundsbuah:
what exactly is his problem? i didnt get it :(
[Asus Transformer TF700] workdowg:
I think it was because the rootfs stuff wasn't working and he thought it was something he did wrong. He wanted some advice too maybe, which I saw you gave. Thank you.

I have it booting Arch and getting decent Quadrant scores in Android - 6700.
[Asus Transformer TF700] Hundsbuah:
if s.o has random reboots with 3.2.0 can you please test if you still have reboots when you using 520MHZ GPU stock settings? It seems that i have only random reboots when using GPU 700MHZ i.e. Maybe the voltage is too low for 700MHZ GPU
[Asus Transformer TF700] Pretoriano80:
I'm using the GPU@700Mhz in balanced mode (so everyday use) and i didn't experienced random reboots yet but i noticed that the device is getting really hot even if it's only used for browsing or reading, so i'm not sure that GPU could handle even higher voltage (consider that i UV the CPU voltage by -50mV on all frequencies).

Another thing that I noticed is that Data2SD mode is highly unstable on 3.2.0 and i had to give up on using it after 3 attempts because every time i ended up with a random reboot (mostly when using high I/0 tasks) followed by a bootloop. Only way to recover from that was formatting the data partition on the microSD (using EXT2 here) with GParted.
[Asus Transformer TF700] Hundsbuah:
ok thanks.

i think ill undo all the latest patches and just fix the reboot to recovery bug. because the 3.1.0 kernel was realy stable for my opinion - what do you think?
[Asus Transformer TF700] Pretoriano80:
3.1.0 was rock solid and even faster imho.
[Asus Transformer TF700] TitanUranus:
I think the 3.1 was the most stable I used - no need to re-invent the wheel when you already have something that works. That's not to say it isn't worth trying out new stuff too, I'm always up for testing a new kernel and new features/tweaks. Perhaps have 3.1-stable release and a 3.2 one for testing all those new things that only experienced users should try.
[Asus Transformer TF700] Pretoriano80:
+1 on this and maybe you could use 3.3.0 for stable release, your call mate.
[Asus Transformer TF700] LEGOracer69:
What's the step by step instruction for data2sd? I want to wipe everything and install CROMi-X + This kernel + Data2SD + Maybe ARCH Linux.

Should i Install CROMi-X, than patch or kernel first? How many partitions should I make for 32gb card? 1. FAT32 2.EXT4 3.SWAP ??? Is there swap option?
[Asus Transformer TF700] Hundsbuah:
you dont need a swap partition. 1st fat32, 2nd ext2/4. you can install the data2sd version of my kernel with sbdags kernel installer, or you can download my kernel from here, install it, and then install the data2sd patch. you dont have to reboot between kernel install and data2sd pach install.
[Asus Transformer TF700] tijsva:
Im currently playing around with your kernel Hundsbuah, for now it performs very good. Im only trying to lower the voltage for the cpu, and used to work with Trickster MOD, is that also usable for your kernel?

Also, is there a way to adjust the GPU voltage, since lowering the cpu's vcore is nice, but lowering the gpu would be very handy as well!
[Asus Transformer TF700] Pretoriano80:
Trickster works just fine with this kernel and i also using it. As for the GPU voltage, the answer is no, you can't adjust it the same way you do with the CPU.
[Asus Transformer TF700] TitanUranus:
You must have memory problems. We answered these questions for you yesterday.
[Asus Transformer TF700] tijsva:
I was wondering if Hundsbuahs kernel was any different compared to Max's kernel. For what I can imagine gpu frequency's are linked and corresponding to a voltagetable, and these voltages might be "average" so that lots of tablets are compatible with it. But like every chip, no chip is identical when looking to its overclock capability's, so voltages can possibly be reduced.

Thanks for your reply anyhow :)
[Asus Transformer TF700] TitanUranus:
Well, I did say hunds kernel works best with his app, and gives you the easiest control over CPU and GPU frequencies. Really, the only way to be sure what best suits your needs is to test each different kernel. Hope you find what you want, though for now CPU frequencies are absolutely locked to a given voltage in all kernels, and I don't think this will change. For the average user like myself, changing those settings would be both complicated and dangerous, and require compiling your own kernel.

Sorry if I was rude, not feeling too good today.
[Asus Transformer TF700] sbdags:
Last night I semi bricked where my tab basically corrupted data and system. Formatting didn't help unitl I had redone an fsck -fvyD on it.

So what caused it?

Fsync off?

Fsck not completing properly when I ran it first time

or data journaling off via

run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p1");

run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p2");

run_program("/tmp/tune2fs.ext4", "-O", "^has_journal", "-c", "1", "-i", "1d", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p8");

What's the most likely candidate?
[Asus Transformer TF700] _that:
If you run fsck on partitions sequentially, it can't break both at once. Killing a running fsck *may* corrupt the filesystem.

And formatting must always restore it because it rewrites a completely new filesystem.

Generally I'd always recommend running fsck from a real terminal via adb, not from a script in the recovery - in interactive mode it will ask you for confirmation for any "dangerous" repair steps. But I've never had fsck corrupt any of my filesystems in the 10 years of Linux as my desktop OS.

On many normal desktop PC Linux distributions, fsck runs at each boot without "-f"orce, so it will be very fast if everything was shut down cleanly before, and it will repair things after an unexpected reboot. I did have unexpected reboots every few months (mostly the NVidia driver hanging, or simple power outages), but I never lost data. Of course I also never disabled the journal, it's there for a reason.
[Asus Transformer TF700] faustus1005:
Ever since mine froze on /data with it the tablet just hasn't been right even after formatting it. Out of curiosity I formatted it (twrp 2.5) and ran fsck from adb.... even with a fresh format without flashing anything mine has LOADS of errors and ends up locking up again. What gives? Hoping this info might help a bi.
[Asus Transformer TF700] sbdags:
Yes and that's why I wonder if disabling the journal might have caused it. What happened was I was flashing my new test rom and it worked fine. This is after an fsck -pD, data journal off as above and fsync disabled. Then I did some changes to android.policy.jar and flashed that as a test. Unfortunately that caused the ROM to just sit at the animation for about 15 mins so I was forced to restart. This then caused it to get stuck at the bootloader screen and then force rebooting again to get into recovery is where all the issues started. Could not restore - failed to find /data, could not format, etc.

So I ran fsck -fvyD on system then data and this got me a set of partitions I could now wipe both. I then tried to flash cormi-x 4.7 but it would not even complete due to locking up in TWRP continually as it tried to finish and go back to recovery. FInally another fsck and wipe plus restore worked and everything has been fine since.
[Asus Transformer TF700] _that:
Are you sure that the partitions were unmounted before running fsck?
[Asus Transformer TF700] sbdags:
Most definitely!!
[Asus Transformer TF700] TitanUranus:
For people who have errors/problems I can heartily reccomend installing an official Asus firmware using the update method, my tablet was plagued with problems that formatting and wiping would not fix untill I finally had it properly bricked. Once I'd fixed it using NVFlash, the firmware I was left with was so old I updated using official firmware from the Asus site extracted and copied onto my microSD, this took a while and completely rebuilt the whole structure of the device and seemed to fix all my problems. I have since done this once again when I felt the tablet was becoming buggy (I flash an awful lot of roms).

It might also be worth noting that if I boot linux (regardless of whatever firmware) it ALWAYS says that the mmcblk0p8 was not cleanly unmounted, and this causes it to force a scan which often finds the odd million or two errors.
[Asus Transformer TF700] ubefuct:
with data2sd mod cpu maxes out at 1500. anyone know a work around? PImp my rom as mentioned earlier in thread did not help. (kernel 3.2.0 recovery fixed w/ data2sd mod). If started without sd cpu works as normal
[Asus Transformer TF700] Hundsbuah:
Can you Post a last_kmsg file?

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Asus Transformer TF700] ubefuct:
last_kmsg and a screenshot of trickster

Thank you and love the cpu/gpu app
[Asus Transformer TF700] Hundsbuah:
hm everything looks fine. you have used my app to increase the allowed upper limit?

can you please open a su terminal and post the results of the following:

cat /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
cat /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
cat /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
cat /sys/module/cpu_tegra/parameters/pwr_cap_limit_4

cat /sys/module/cpu_tegra/parameters/boot_finished
[Asus Transformer TF700] ubefuct:
It reports back with all my cores @ 1700000 which is what I have it set for,

and boot_finished reports 0
[Asus Transformer TF700] Hundsbuah:
can you take a look if cpu2.sh (located in /system/etc/) contains this line

echo 1 > /sys/module/cpu_tegra/parameters/boot_finished

this line must exist. can you please try following:

open a su terminal and execute following line again:

echo 1 > /sys/module/cpu_tegra/parameters/boot_finished

if the line does not exist in the cpu2.sh, you have to add it. that was what was missing
[Asus Transformer TF700] ubefuct:
The line is there in cpu2.sh

after " echo 1 > /sys/module/cpu_tegra/parameters/boot_finished " in terminal as su cpu <1500000 works :good: but is lost at reboot
[Asus Transformer TF700] Hundsbuah:
that is really strange.

can you do following in a su terminal:

chmod 777 /system/etc/cpu2.sh

and then restart and look if its working
[Asus Transformer TF700] ubefuct:
export PATH=/data/local/bin:$PATH

u0_a140@android:/ $ export PATH=/data/local/bin:$PATH

u0_a140@android:/ $ su

root@android:/ # echo 1 > /sys/module/cpu_tegra/parameters/boot_finished

root@android:/ # chmod 777 /system/etc/cpu2.sh

Unable to chmod /system/etc/cpu2.sh: Read-only file system

10|root@android:/ #

:confused:
[Asus Transformer TF700] Hundsbuah:
Do you have root Explorer installed? U can mount with r/w and long press at the cpu2.sh and change permissions to all

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Asus Transformer TF700] ubefuct:
It says it has full permissions already, so dunno why terminal says read only. If booted without sd card all works, not sure why the 1500000 limit with booting off/with sd. Atleast I can benchmark the sd mod after hitting up the su echo 1 > /sys/module/cpu_tegra/parameters/boot_finished.

edit: Also on data2sd mod certain states of the processor refuse to be used. 1600000 good example. Think I'll ditch the sd for now as I like the cpu/gpu app, and everything seems fine without it in
[Asus Transformer TF700] Hundsbuah:
but that is not a good solution :)

does s.o has the same problem?
[Asus Transformer TF700] ubefuct:
I was having all sorts of quirks with data2sd so I flashed _thats to double check and all cpu steps worked. Then I reflashed yours and still had the limit with data2sd. That's fine, I don't mind ditching data2sd for the cpu/gpu app :good: I still get good scores.

Without the sd in with your kernel all works good.

some of the quirks(with data2sd); core@1600000 was impossible, had to su echo 1 to boot_finished to use >1500000 and a couple of lower frequencies, occasionally would lock to using just one core until reset, upon starting switching to performance would leave "turning on performance" bar in middle of screen until switching back to balanced after which would work as normal, and a couple quirks with permissions.

edit:

not sure what is meant by s.o

This week my tablet has been wiped more times than my @$$.:eek:
[Asus Transformer TF700] LetMeKnow:
I will test and report back to you after work today.. :)

Edit: I just setup and run Data2SD. It is running fine with all the frequencies that I have set it up. My max frequency on my performance mode is 1.8GHz and it registers with that frequency. Even with a reboot, I used your app to read the frequency, it is still set in place. I have tested all three different modes with different frequencies and they seem to stick with those setup. I just want to let you know... Hope that it helps. Please let me know if you want a further test with this setup. BTW, my current setting is Cromi X 4.7 and Hund's kernel 3.2 beta...
[Asus Transformer TF700] sbdags:
S.O. = Some One ;)
[Asus Transformer TF700] ubefuct:
the app keeps the setting, but atleast in my case if you look at anything reporting what fequencies are beeing used (like trickster mod) It states 1500000. If you look at my screenshot a couple posts back you'll see [MENTION=5301607]170[/MENTION]0000 with performance mode and performance governor cpu peeks 1500000
[Asus Transformer TF700] LetMeKnow:
I will try to use Trickster app and report back when I am done.. :)
[Asus Transformer TF700] LetMeKnow:
This is the screen shot with Trickster app.
[Asus Transformer TF700] ubefuct:
:confused: perhaps it needs a factory wipe? I dunno

just tried formatting davilk/cache/&system with fresh install cdromi still 1500000 only thing i haven't wiped yet is data
[Asus Transformer TF700] LetMeKnow:
I see your idle state frequency is a lot lower than mine. I don'tknow why but it is different..:) One more thing when I used Trickster app, it is not a real time update of your setting. In my case, I rebooted my device and switched to performance mode before openning the app for it to register the frequency of the performance mode. I hope that it helps and good luck.. :fingers-crossed:
[Asus Transformer TF700] ubefuct:
can i add the line "echo 1 > /sys/module/cpu_tegra/parameters/boot_finished" somewhere?

I know it's already in cpu2.sh but seems not to work in my case. After a couple more fresh clean installs it still plagues me with 1500000, but my other quirks have vanished. This limit gets removed after typing " echo 1 > /sys/module/cpu_tegra/parameters/boot_finished " in a su terminal (= all frequencies now including 1600000 which would refuse in my other trials). Again this is just with data2sd on this kernel (without sd works flawless)

screenshot max set [MENTION=5301607]170[/MENTION]0000 with both performance governor and mode
[Asus Transformer TF700] LetMeKnow:
Go to your init.d folder and add that line at the end of one of the files existing in that folder and save it. Reboot your tab to see if it loads that command for you..:)

Edit: BTW, I am running Data2SD right now..
[Asus Transformer TF700] ubefuct:
black screen freeze at start of boot animation/ boot loops:( reflaashed cdromi to fix.

I wouldn't have even noticed the 1500000 'ghost'limit had I not checked the temp. It gets very warm when set at 1700000 but 'ghost'limited at 1500000. I can't be the only one...
[Asus Transformer TF700] LetMeKnow:
I hope that Hund has a solution for you. Data2SD seems to work on my tablet. The last thing that I have in mind is to back up your current setup and do a factory reset. You can try to run the Data2SD again to see if it works out for you. Good luck..:)
[Asus Transformer TF700] Zogars:
I upgrade the kernel to data2sd version and I get a Sod all the time!!

Whith normal version all are ok.
[Asus Transformer TF700] ubefuct:
Update

so I made a new script and put it in the init.d folder with the others named 99zbootfinished. Tab starts with 1500000 limit still :confused: using rom tool box in the scripter settings I used same script and set to run as su at boot with notifications turned on. Rebooted and now success :victory:

[MENTION=4931250]Hundsbuah[/MENTION] Any chance on adding a min freq. to different presets in your app? Like setting the 51mhz as min for power saver and have lets say 475mhz for performance mode?