yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] acraigl:
I agree it's a feature. What I'm saying is that there is a difference between being on the dock and actually charging. The data is there. And I've goine deep -- all the way in the Matrix. :) I can check via the command line for a state value in a directory, specifically 'cat /sys/class/switch/dock/state'. If it returns 12, then I'm docked.

I've done some things with Tasker to deal with this, but ideally, I want it to daydream when docked. There is no way I have found (yet) to keep it daydreaming when the OS itself does not know it's been docked. The best I can do is keep the screen on (disable sleep). Of course doing that disables daydream.

But you're right. I could easily set it to sleep between say, midnight and 6am, allowing all my sync times to remain open. I'll do that now. But my complaint still stands. Says me. :)
[Asus Transformer TF700] _that:
Maybe you have to go even deeper - right down to the source code that determines if it daydreams or goes to standby. :)
[Asus Transformer TF700] nevertells2:
Plug it in to start charging, then turn it off. It will stay turned off after that. Every Android tablet I have owned displays this type of behavior, so I doubt seriously if you're going to find a way to disable it.
[Asus Transformer TF700] sbdags:
No fix for this. If the device is off and you connect power it powers on. TF201 did it, TF300 did it, TF700 does it and TF701 does it.....
[Asus Transformer TF700] acraigl:
Inspiring but beyond my abilities (or my time to develop them). If anything crosses you mind on this subject, lets chat. In the meantime it is what I started out saying... a pet peeve. Everything else works great on the ROM as far as I'm concerned.
[Asus Transformer TF700] pixbuf:
Yes! I never noticed that. Thanks!
[Asus Transformer TF700] lj50036:
No there is no way to make it stay off if its already off when you plug it into power or even a PC ..

I am sure this function is part of the bootloader...

The solution to this is to plug it in before you power it off ...

Thx Josh
[Asus Transformer TF700] _that:
My guess is that this is a function of the embedded controller firmware.
[Asus Transformer TF700] berndblb:
What I don't get is: Why would you care that it turns on if connected to power????

Battery won't drain, screen turns off after a few minutes....

What's the problem?
[Asus Transformer TF700] acraigl:
So many nooks and crannies :)
[Asus Transformer TF700] acraigl:
And this is why I like these forums :)

The very act of suggesting I have an issue has (with the suggestions here) gotten me to think about the problem in a new way. After sleeping on it, I came up with a pretty good workaround.

I can already determine when I'm docked by reading the file value above. (I still don't know why the OS doesn't use it natively, but if it did I would not be writing this post.) I created a new profile that checks for the variable %DockState value of 12. This was new, as before I was keying off of AC connected, but as we established, this was not a great solution due to the behavior of the dock discharging. The sequence goes something like this:

If %dockstate = 12

1. set screen timeout to * (basically never)

2. wait 5 minutes

3. launch daydream

4. Go to 2

Else

1. set screen timeout to 2 minutes

EndIf

I have some other stuff happening, but that's the gist. So, I get the advantage of charge/discharge, without the tablet going to sleep, but only while on the dock. Daydream enables every 5 minutes. Downside is that is not based on inactivity, so there's a chance I could be interacting with the tab and daydream goes on. A tap will, of course, dismiss it, but I may look into ways of resetting the timer of the screen is being touched.

Thanks for the challenge guys. It helped!
[Asus Transformer TF700] lmmohr4:
Sir?

Jeez, don't call him Sir, he's tough enough to live with!
[Asus Transformer TF700] norkle:
Migrate CROMBi-KK on apps2sd/data2sd to internal with F2FS

I posted here a little while back about my CROMBi-KK install which is currently on rom2sd/data2sd (using both) with F2FS on /data, and migrating it back to internal.

http://xdaforums.com/showthread.php?p=53709696

My problem is in trying to also use F2FS on internal.

Here's what I tried first:

1. Backed up nvflash (AndroidRoot.mobi method worked a treat). Re-installed TWRP 2.7.1.1

2. TWRP 2.7.1.1 nandroid backups of current CROMi-X internal and CROMBi-KK rom2sd/data2sd

3. Reboot recovery

4. Restored from CROMBi-KK backup of /system, /data and /boot

5. Wipe cache+dalvik

6. Reboot

This didn't work - sat on CROMBi-KK boot animation forever, presumably should've left /boot intact.

2nd attempt:

1. TWRP restore CROMi-X of /system, /data and /boot. Previous internal and rom2sd/data2sd installs working again

2. TWRP advanced wipe /data - change filesystem to F2FS

3. TWRP restore CROMBi-KK /system and /data only

But recovery reports it is running make_ext4fs on /data during restore, so /data F2FS doesn't stick. I'm trying some other combinations, but I'm guessing the standard functions are all going to do make_ext4fs on /data whatever I do.

Is there any way to format (internal) /data to F2FS and restore a nandroid backup to it, without it re-formatting it back to ext4? [MENTION=518363]sbdags[/MENTION] I noticed _that posted to you earlier in the forums about adb push'ing something for f2fs, but I couldn't see enough details in the forum to understand exactly what you each meant.

Is there anything I'm doing wrong, or do I have to find another way to migrate to f2fs?
[Asus Transformer TF700] berndblb:
I just have to ask: You did flash the Asus bootloader back after getting your nvflash blobs, yes?

TWRP got too smart. It checks on what file system the nandroid was created and formats the target partition accordingly. So with 2.7.1.1 you cannot restore an ext4 nandroid to f2fs partition or vice versa.

You can try earlier versions like 2.7.0, I think the full f2fs support only started with 2.7.1.1, but don't quote me on that.

But seriously - with all the time you have invested already, wouldn't it be easier to go the old fashioned way and just copy your data over?
[Asus Transformer TF700] lj50036:
I recall _that and sbdags taking about how it was a known bug in TWRP 2.7.1.1

I will ask them and one of us will get back to everyone ...

Thx Josh
[Asus Transformer TF700] norkle:
Good question, hadn't even thought about that.

AndroidRoot flashes a custom bootloader as part of its process. I take it you're suggesting I need to flash it back. How?

Does restoring /boot from TWRP backup flash the bootloader?

---------- Post added at 02:07 PM ---------- Previous post was at 02:04 PM ----------

Would appreciate that. I know when I first asked, everyone thought I could just restore the nandroid onto the F2FS partition.
[Asus Transformer TF700] berndblb:
It's a modded bootloader more than a year old.... I'm not sure how it plays with a KK rom and kernel....

Yeah, I definitely would flash the BL again, and no, a restore will not do that.

Easiest way is to flash the BL/TWRP package from sbdag's CROMi-X OP in recovery.

Flash it, then reboot.

Then fastboot flash TWRP 2.7.1.1 again. The recovery in that package is still 2.6.1 so you have to update it after the BL flash.

Edit: You did run CROMBi-KK as rom2sd, didn't you? Interesting that the mobi team bootloader handled it.... But I have no idea which bootloader they modded how...
[Asus Transformer TF700] norkle:
Thank you so much for your help. Downloading bootloader/twrp now. So flash bootloader/twrp from recovery, reboot to recovery and flash new twrp, reboot to recovery again and restore from nandroid? My bad - your post already mentioned the steps.

*** Just checked the bootloader version left after nvflash procedure. At fastboot it reports bootloader version WW 10.6.1.14.4, which was pretty much what I had previously. Do I really need to change it?

*** I have US_epad-user-10.4.4.25.zip. Although I was previously using the older bootloader version, is there an advantage to using this newer version?

Regarding my original plan of rom2sd/data2sd+F2FS -> internal with /data on ext4, will a twrp restore of fsf2 rom2sd to internal work? I mean, will there likely be problems relating to running on ext4 when it was previously F2FS?
[Asus Transformer TF700] berndblb:
Quite a few users seemed to have issues with the .4 bootloader and KK... Your choice

Waht? What's that? Looks like a Asus firmware zip???

I'm not sure I get your question. If your data partition on the rom2sd installation was f2fs and you format your internal to f2fs, you can easily restore the f2fs rom2sd /data to internal /data.

It's if you took the nandroid when /data was formatted to ext4 and then you try to restore it to a f2fs formatted /data that TWRP 2.7.1.1 interferes by formatting the target /data to ext4.

And no, the rom doesn't care if /data is ext4 or f2fs. You just have to out-fox TWRP ;)

And that's exactly why I stay away from this stuff. Just thinking about it ties my brain into a knot. This is strictly for people who like math riddles :silly::laugh::cyclops:
[Asus Transformer TF700] norkle:
Sorry, I was in blob confusion. It is an Asus firmware zip. I was thinking it was only the bootloader when I posted. Have gone with the .10 bootloader and updated TWRP back up to 2.7.1.1.

---------- Post added at 03:32 PM ---------- Previous post was at 03:28 PM ----------

Well, that's confusing. Because my backup was from data2sd with F2FS, but when I restore it to /data (internal) it is format'ing /data to ext4. So what you're saying is that my process _should_ keep the F2FS filesystem on data? It was previously suggested to me that TWRP would lay the restore back down on whatever filesystem was existing on the target.

---------- Post added at 03:34 PM ---------- Previous post was at 03:32 PM ----------

I'm trying to do the first base. Good to know the ROM doesn't mind if the FS magically changes from ext4 to f2fs or vice versa.
[Asus Transformer TF700] berndblb:
Yup, that's my understanding of this issue.. But I've been wrong before.. Hehehehe

Let me ask you this: When you took that nandroid of your rom2sd installation: Did you flash rom2sd1.zip first????
[Asus Transformer TF700] norkle:
Yup. rom2sd1 AND data2sd1. Then the TWRP backup.
[Asus Transformer TF700] berndblb:
There we go....

Data2sd and rom2sd are two different pair of shoes! Do not put them on the same foot or wear one of each! LMAO

You can run one but not both at the same time off the same SD card.

Ok, let's take it slowly:

TWRP on it's own can only act on the internal partitions. Nobody outside of the CROMi-X/CROMbi-KK circus has ever heard about rom2sd/data2sd. We are the only one's crazy enough to do that stuff. So TWRP isn't exactly build for it.

rom2sd1.zip is a hack that tricks TWRP into acting on the external partitions on the card as if they were internal. Really ingenious. Only _that could come up with something like that. ;)

With me so far?

So, whenever you want TWRP to act on the external partitions (make a nandroid or wipe) you have to flash rom2sd1.zip first to point TWRP towards the external partitions.

Except if you install any of sbdag's/lj's/_that's roms.

sbdags in his infinite wisdom build that functionality into the Aroma installer. If you choose to install the rom "as rom2sd" the installer does exacly what rom2sd1.zip does: orient TWRP towards the external partitions so it can install to them. (It does more than that, but that's beyond my pay grade...)

As soon as you reboot, TWRP is back to "normal" = oriented towards the internal partitions.

Data2SD is a different scenario. You can either run only one rom (installed to internal) but with it's /data partition on a fast microSD as in : Data to SD or data2sd

OR

Run two roms, one on the microSD with it's proper /system and /data partitions on the card, the other on internal with it's own /system and /data partitions on the internal SD = Rom to SD or rom2sd.

So in your case, my guess is: Your data2sd.zip flash canceled the rom2sd1.zip flash and you took a nandroid of your internal installation (/data is ext4) and then tried to restore it to internal where you had formatted /data to f2fs in the meantime.

Here's what you do: flash rom2sd1.zip only, then take a nandroid of your external installation.

Reboot

Enter TWRP and format /data to f2fs, then restore the nandroid.

It'll work.

I need a beer!
[Asus Transformer TF700] norkle:
Again, big thanks. I certainly had that messed up. Will go back over that and try to understand the whole data2sd/rom2sd thing again. In the meantime, will do the twrp backup you suggested and go from there.
[Asus Transformer TF700] berndblb:
No problem. I think it was about time to repeat this. The last time sbdags explained this riddle was around post # 1500 or so... :laugh:

I actually edited my post for clarity (hopefully), so you may want to read it again.
[Asus Transformer TF700] norkle:
Really appreciate the help setting me straight. I'm good with your explanation, had always been hazy with data2sd/rom2sd. Seems like no matter how much I read up on everything I do, it's only when doing it that you learn.

Making the TWRP backup now after running rom2sd1.zip. Will try restore again tomorrow and post results here.
[Asus Transformer TF700] berndblb:
You're going to make me wait 'til tomorrow to know if I was right??????

:laugh::silly::cyclops::eek:
[Asus Transformer TF700] wnerw:
I've been following this thread for a few days. When I saw benchmark from latest build... F*CK! I mean - WOW! Holy sh*t! Can't stop swearing, such a nice rom to appear for my tablet.... Sbdags, man, you're great!

One question to you though - would it be hard for me to rebase it on PAC-ROM core? I mean I'd try to do it myself, as I'm far more interested in installing pac rather than cm, but all this work you put into CROMBi-kk that I would miss on pac... I know it's a stupid question, but maybe it's easy as 1-2-3, or maybe it's just the same amount of work and time you put into kk build.
[Asus Transformer TF700] workdowg:
Joined the 9000 club!

_thatv8, ART enabled, both GPU rendering options checked on install and Performance mode profile. Also dock battery drain yet to be seen.... :good:
[Asus Transformer TF700] sbdags:
Have a chat with [MENTION=5123642]lj50036[/MENTION] - if you guys get me a base build for PAC then I'm willing to cromify it and we could have CROMi-PAC or PACROMi-kk lol
[Asus Transformer TF700] erisi:
Benchmark related configuration

Would you please post the settings you used to get such amazing benchmark results? I am getting approx. half of the IO score you are showing with journaling turned off and fsync turned on.

Thanks!
[Asus Transformer TF700] sbdags:
Turn fsync off for a start, journaling off, thatv8 oc kernel, GPU tweaks on, performance mode, go.
[Asus Transformer TF700] Ghorin:
This this morning I did a format (it took more than 2 hours) and then install and got 6775 score in quadrant. I have following options :

- that v8

- fsync off

- journaling on

- GPU tweaks off

- performance mode on

When I see the difference with people getting 8500, i'm very far from them. What are the options I'm missing that are explaining that gap ? Right now I see only journaling and ROM2SD. I'm fine to test "no journaling" but not rom2sd (not enough time to study and implement it). Thanks for your advices
[Asus Transformer TF700] acraigl:
I'm running off internal and still getting 9000+. Turn off journaling and enable the GPU tweaks in the installer. Also, enable ART (Developer Options > Select runtime) instead of Dalvick. Note that Xposed must not be installed for this setting to stick.

Let us know if you see improvement.
[Asus Transformer TF700] Mackis:
Do you have journaling enabled and fsync on?
[Asus Transformer TF700] Adso3000:
Touchpad can't be disabled & SD card unexpectedly removed whenever it goes to sleep

Seems awesome as is and though not getting the 9000 or so seen by others with ART etc I'm getting around 8300 on Quadrant and Rom2SD. :victory:

I'm pleased if it wasn't for 2 huge problems.

Keyboard not working right. So far I've noticed the Touchpad enable/disable button doesn't work at all, which makes typing half-impossible. Absolute deal breaker for me. I can't even type more than one line here now before the damn curser moves becomes I can't disable the touchpad.

Same problem as with CMB regarding the Dock SD card getting "unexpectedly removed" every damn time the tablet goes to sleep , which is why I stopped using CMB in the first place.

So disappointing, as everything seems to be ace, but then just ruined by the dock/keyboard issues. Got the moving curser like 5 times just typing this short text. :mad:
[Asus Transformer TF700] brightjh01:
i know it said to do a full wipe. but after doing a full backup to a sdcard. i flash like i would an update to CM11 snapshot M4. the CROMi-KK being This ROM is based from CM11 AOSP sources. and sofar its work fine. just an fyi.
[Asus Transformer TF700] Ghorin:
I get 8936 on quadrant with your options. I'm impressed.

Question : what is the risk of using those options ?

- data corruption (fsync off and journaling off) ? i can deal with that, I have no data that I can't loose on my tab

- heat (GPU tweaks, CPU tweaks) ? may it disminish the lifespan of my tab ?

- other risk ?

- some applications not working with ART ? i'll learn how to not use them (and use other) :)
[Asus Transformer TF700] butcherbird:
Ergonomics.

Lift the heel and palm of your hands when typing. I am not saying that to be a smart ass - I had to re-learn proper typing techniques, too. haha.

That will solve your touchpad issue and help you type faster.
[Asus Transformer TF700] workdowg:
disabled and off
[Asus Transformer TF700] acraigl:
Yes :)
[Asus Transformer TF700] Ghorin:
Well I'll stay with those tweaks for the moment and I'll see how the tab is working. Thanks anyway for your answers :)
[Asus Transformer TF700] Adso3000:
It's only part of the problem and disconnecting the dock SD card is still a deal breaker. The keyboard buttons all have to be functional (even in CMB is actually works).

Comming up with that silly Steve Jobs like response [to the Iphone 4 dropping signal]: "Well, just don't put your finger there". Besides it strains your arms more if holding your hands constantly floating above. Poor programming is poor programming - period. It is a bit of a smart ass answer, but I know you mean well, so... ;)

On a side note; just about every review I've ever read back in the day stated the poor placement issue with the touchpad, how stupidly oversensitive it is (eg. my Lenovo Yoga 2 Pro can detect any amount of palm or thumb base and disregard it as NOT being a finger). Mostly setting up this slow POS tablet to work for the missus.

I know proper typing, even had it in school, I just prefer not straining my hands while still being able to casually type a bit. BTW "Mavis Bacon teaches typing" is a cool program, especially for speed. Does require a PC though. My only issue with it is it's based on US keyboard and I'm using a Danish one.

So am I really the only one with the SD card constantly disconnecting whenever it goes to sleep or the screen goes off? Same with the touchpad button? If such major things don't work and even I discover it in 5 minutes, makes me wonder how much else doesn't work that I just haven't discovered yet. :rolleyes:
[Asus Transformer TF700] pmgnet:
Switching once on ROM2SD?

Not that I'll want to or need to... but just curious. Once ROM2SD is working with CM11 on internal, will there be some method to choose which to boot?

Just pop out the sdcard?
[Asus Transformer TF700] bluewr:
Help, I updated teamwin to that version through the older version.

Rebooted to recovery mode, told it to do a format, but it kept on formating tilll it ran out of battery.

Now after recharging, it just boot to the teamwin start screen, turn off, and the Teamwin start screen again.

Holding pow+vol down just goes back to the same boot loop.
[Asus Transformer TF700] vampyric_blood:
Also on this note, under the quick settings options, you can actually set a toggle button for them on the pull down menu. Its the closest way to have it like you did with the stock ROM.
[Asus Transformer TF700] acraigl:
Yes, great tip. Makes that profile change very convenient.
[Asus Transformer TF700] acraigl:
Grrr. Spoke to soon. The screen timeout seems to be limited regardless when running on battery (not charging). Maybe I need to find a 'keep awake' app or something. There may actually be some timing conflct between daydream and screen timeout.
[Asus Transformer TF700] norkle:
Teasing you :)

First 2 attempts have failed. You were quite right about the bootloader and backup. But I restored both my internal backup and checked both internal and rom2sd were working again. Then took another backup of the rom2sd install (remembering to only 'install' rom2sd1.zip before). Then rebooted, and performed the restore. The restore correctly formatted /data to f2fs this time. But after reboot'ing (and removing micro SD so it doesn't try to boot the rom2sd install), the system just hangs on boot animation.

Have tried a second restore in case that fleshed out something, but same problem. Am now doing another internal restore, and then will try the restore from the rom2sd install again. Otherwise I may have to admit defeat and decide whether I go back to the dual boot, and just give up and clean wipe CROMBi-KK to internal.

One thing I'm unsure about in the restore is whether to restore all 3 partitions: /system, /data and /boot. I should restore all 3?
[Asus Transformer TF700] May.P:
Huehehuehuheu... I'm from Brazil, was just trying to be polite... :)
[Asus Transformer TF700] lj50036:
Just to add my 2 cents :D

ROM2SD implies DATA2SD

If you run rom2sd then your data is going to be on your extsdcard ... :)

Thx Josh
[Asus Transformer TF700] sbdags:
rom2sd=data2sd+system2sd :)
[Asus Transformer TF700] berndblb:
There may be problems with the kernel, ramdisk, fstab if you restore system and boot from external to internal - I really have no idea. That's a question for the experts.

Why don't you just flash CROMBi-KK to internal and then restore only /data from the external nandroid?

Should give you an identical installation.
[Asus Transformer TF700] ricardjs:
[MENTION=1784706]sbdags [/MENTION]

I asked you a couple of times already, but maybe you didn't notice the posts, did the last logcat I posted help in anyway?

Thanks.