yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] JoinTheRealms:
Ok just got a 32gb class 10 micro sd card in the mail. Ive partitioned it with 4gb of swap using gparted on the tablet, used gparted to run "swapon" the new partition, and it seems to have cleared up the issue with locking up under load (even under quite ram heavy situations)

You could do this also with a swap file on internal emmc or a usb stick but a class 10 sdcard will give you the best benefit from swap.
[Asus Transformer TF700] xFaultx:
For those of us who are not as fluid with Linux, can you please make a quick guide on how to go about doing this?

Also, is there any alternate kernel I can use or that anyone has had success with? In the android side, often times when the screen has been off for a while, it wont wake up after i press the power button, so I have to restart
[Asus Transformer TF700] JoinTheRealms:
Yes if your ok using android 4.1 you can use rabits kernel. This shouldn't have any issues at all, but its android 4.1 only and unsupported. ll soon have a fix for most of these bugs. Ill write up a guide in the dev thread once its working.

As for swap its real easy. I downloaded gparted on ubuntu (on tablet) and repartitioned my 32 sdcard with 4 gb of "linux-swap" and the rest "ext4". You can test if this has worked by opening terminal and running "swapon /dev/mmcblkXpX"(mmcblk0pX is the storage device and pX is the partition number. You will find this information in gparted.) from here "system monitor" should show the swap is being used. Note 4gb is much more than you will need. 1gb of swap will be fine.

You can make this permanent by adding "swapon /dev/mmcblk1p1"(e.g this is my one, yours could be different.) to /etc/rc.local (sudo gedit /etc/rc.local to edit the file. Make sure "exit10" is the last thing in the file.)
[Asus Transformer TF700] JoinTheRealms:
Ive also seem to have fixed the dodgy audio quality with alsa mixer, might be subliminal but seems better than android at-least from headphones/ better bass range.(im looking into a way of disabling int speaker when headphones are detected. For now you can run sudo alsamixer -c1 and manually disable "Int Spk" ). I can upload my alsa-state file if required. Im not sure if alsa-restore is working properly so it might need to be replaced each boot.

Might have directory booting nearly working from Jaybobs ramdisk/ kexec kernel and his rootfs. Nearly got xbmc-13 to build, just working through a couple of build errors :) im only on my 30th hour without sleep....
[Asus Transformer TF700] rivera151:
Kudos [MENTION=408485]work[/MENTION]dawg. First time I can get a dual-boot setup running on my tf700. It's impressively fast on this hardware. All I really need is libreoffice running and it runs so smooth, and I will probably try installing eclipse knowing there's a good chance of failure. But just being able to run LO is good enough, since the android version is in some kind of limbo ATM.

Wifi works. Sound works. Docking and undocking seems flawless. Youtube via chromium works very, very well, so it seems HW acceleration via html5 is working nicely. Of course, no flashplayer, and probably never will be.

I tried to suspend and resume by trying to write 1 to boot_finished as you indicated several pages ago, but sleep always locks the tablet, and it really sucks to try to enter a password on resuming to then write 1 to boot_finished. I tried messing with the power settings, but it doesn't seem to override locking the laptop on suspend. Any ideas how to disable pw on wakeup? I'm not to familiar with lxde, so that may be the main factor here.

Incredible job. Kudos.
[Asus Transformer TF700] JoinTheRealms:
Im pretty sure eclipse works, haven't tried it myself though. Btw we do have working flash.so from the chromebook(ive linked it so many times im gonna just have too point you too pg 13 on the tf300t xubuntu port.:)) On our device flash isnt working for youtube though, it does work for the tf300t, so i think the issue lies in dpi or something. Might be able to find a new version of chromium os flash if i looked harder..

echo 1 > /sys/class/cpu_tegra/parameters/boot_finished just unlocks hunds overclocks, it actually unstable for me on linux use with caution. As yet ive not found a working method of suspending the device, moreD_cn wrote a daemon which fixed it for him, but i couldn't get it to work. You can find it in the dev thread. echo mem > /sys/power/state will attempt to initiate suspend ;)
[Asus Transformer TF700] xFaultx:
Another issue ive been having is that ill find the tablet, while docked (i dont know if that matters), but itll also have burned through significant battery. Oce again, i need to reboot. Ill try out rabits kernel see if that fixes it.
[Asus Transformer TF700] JoinTheRealms:
That a known issue, its not related to the dualboot. Rather stock firmware i believe. I havnt really noticed it, my tablets on charge most the time.
[Asus Transformer TF700] lethang90b:
Can it install on Cr X 5.0.2 ? I tried to install many time,but it stuck at 90 % in installing sreen.
[Asus Transformer TF700] workdowg:
It can take up to an hour to decompress the rootfs. Be patient. I really need to put that in the op...
[Asus Transformer TF700] rivera151:
I did. Works well.
[Asus Transformer TF700] yoda-sama:
Are you having any better docked battery life on CROMi-X 5.0.2?
[Asus Transformer TF700] workdowg:
Still have the dock battery drain issue. It seems even the power down then plug the tab into the dock trick doesn't help anymore either... Overnight with wifi off 72/86 --> 82/30 in the morning....

Sent from my ASUS Transformer Pad TF700t - CROMi-X 5.0.2 DEODEX -_that5
[Asus Transformer TF700] yoda-sama:
That's so frustrating, since it worked so VERY well under Android 4.1. I never had to worry about battery life, which allowed me to have the tablet handy at all times. Now I have to leave it off or plugged in when it is not in active use, which makes it far less useful.
[Asus Transformer TF700] workdowg:
Maybe I'm not being clear.. I still can use the tab/dock like always during my day, but now it only lasts that long. Letting it just sit seems to be an issue. Just my observation. I'm going to let it drain to 10% and drain the dock all the way and see if that helps. It has on other devices I have.

Sent from my ASUS Transformer Pad TF700t - CROMi-X 5.0.2 DEODEX -_that4
[Asus Transformer TF700] lethang90b:
Thanks. I got it. But i don't know how active screen keyboard on Lubuntu? Does it work on lubuntu...? Thank you
[Asus Transformer TF700] workdowg:
It should come right up when you click somewhere that you can enter text. If not check the main menu, it is called onboard. I'll check later today when I get home.
[Asus Transformer TF700] JoinTheRealms:
Ive wrote a script for managing gpu/cpu overclocks as well as cpu cores online. It also allows to save these settings each boot. But atm im having a small issue applying settings at boot, ill post it here soon anyway as its still quite helpful

[MENTION=3971563]workdowg[/MENTION] Does arch use an rc.local file? if not whats archs alternative? id like to modify it so it works on all distros
[Asus Transformer TF700] workdowg:
I can make a systemd unit for it. I'll get right on it when I get home.
[Asus Transformer TF700] JoinTheRealms:
Its probably something silly im doing but seemingly random, i keep losing su permissions on the ubuntu user account and have to re-make a whole new rootfs lol, i case anyone else has this issue. make a new rootfs and enable superuser login by

sudo passwd root

*add a unix password*

then modify /etc/lightdm/lightdm.conf and add

"greeter-show-manual-login=true"

then restart or run sudo service lightdm restart

This will allow you to fix the permissions if it happens again.
[Asus Transformer TF700] _that:
Of course you could also root your rootfs by loop-mounting it in Android. :)
[Asus Transformer TF700] workdowg:
unknown... we will have to ask around...

Sent from my ASUS Transformer Pad TF700t - CROMi-X 4.7.0 ODEX
[Asus Transformer TF700] JoinTheRealms:
lol i spent longer than extracting the rootfs takes trying to figure out how to chroot my rootfs, so i took the lazy option(but im glad its possible!),

can someone tell me the specific requirements of the rootfs's were using? im interested at trying to get ubuntu 13.04 working, can we use lets say a rootfs from the nexus 7 or tf101 and add the required modules/ drivers ?
[Asus Transformer TF700] Ananasnonym:
Why do we need one kernel for both OS?

Wouldn't it be easier for kernel-management if we dual-boot by flashing the desired (stable and up-to-date OS) kernel instead of maintaining one hybrid kernel?

On the TF101 this worked wonderfully. Am I missing some important differences between TF101 and TF700?
[Asus Transformer TF700] JoinTheRealms:
Very few tf700s have access to nvflash,(i may be wrong) meaning we can't modify the the recovery partition to allow it to boot a linux kernel (i believe there is a size restriction)

Id be keen on removing android altogether and just booting ubuntu, once we have suspend to ram working
[Asus Transformer TF700] _that:
The recovery partition already does boot a Linux kernel. The question is if you want to lose your recovery to GNU/Linux.

Another option would be kexec.

I personally prefer running my Linux programs directly on Android kernel in a shell - for graphical programs this would require some X-on-Surfaceflinger implementation. Maybe I'm going to try a vnc-based solution, which is not so fast, but would be already available.
[Asus Transformer TF700] JoinTheRealms:
I thought the recovery partition wasn't big enough for a full blown linux kernel?, on the tf101 we had applications that automated the process of rebuilding the partitions with nvflash, we would lose recovery but you could use "OLiFE" (one of said applications) to temporarily re-flash a recovery. This would be my personal favorite way.

The kexec looks as interesting as it is confusing lol, i read somewhere someone was working on dualboot kexec for the tf700 but i don't think they released it.

As for a chroot-vnc solution, zacthespacks app(linux installer) works suprisingly well, it would be good to be able to use our native rootfs with chroot-vnc not sure if its possible. http://sourceforge.net/p/linuxonandroid/wiki/Building Guides/
[Asus Transformer TF700] _that:
The recovery partition has the same size as the main kernel partition - 8 MB.

It works even without chroot - we can symlink /lib, /usr and some other directories directly to the GNU/Linux counterparts. Only /etc may need to be merged.
[Asus Transformer TF700] moreD_cn:
Hey everyone! I finally got some time for the forum...

In fact I'm working on kexec kernel and have successfully compiled one. Now the kernel for android (on boot partition) works great without SOD, but more works are stiil needed for linux kernel. The android kernel can boot into linux but X failed to start. I'm testing my kexec-enabled kernel for android and modifying booting scripts to support kexec. If anything goes right I may post my installer in a few days...

have to go back to my dorm now....
[Asus Transformer TF700] JoinTheRealms:
very much looking forward to this, cant wait.

Slightly OT but im having a bit of trouble getting a ubuntu 13.04 rootfs up and running, my problem is wifi is working when i chroot the image but when a reboot into it naively wfii isn't working. I guess chroot just tunnels wifi from the host. Will continue to investigate
[Asus Transformer TF700] workdowg:
I'm still thinking it's a driver issue. I tried to compile _that's kernel (his patches on the new source) again today. Got it to realize I was cross compiling but still came up with ungoogleable (I am coining that) errors. Such as - make error (2).... Any who, I also got asked about wifi drivers and the default answers were no. May be it got missed by moreD_cn? Good night.
[Asus Transformer TF700] JoinTheRealms:
Thats cool. I don't have anything to do, so ill give it a try at compiling, My knowledge is still foggy about how the dualboot plays into the kernel, but if i get a zimage ill post it here.
[Asus Transformer TF700] moreD_cn:
try cp /system/vendor/firmware and /data/misc/wifi in android system partition to your rootfs?
[Asus Transformer TF700] JoinTheRealms:
Thanks! will give it a try, still having big issues with the rootfs, not quite sure what's changed between 13.04 and 12.10 graphics wise but what ever it is, its not agreeing with the tf700 :( atleast with ubuntu-desktop seems fixable though.
[Asus Transformer TF700] moreD_cn:
It seems that there's only one wifi driver for tf700t and it was compiled into kernel. But now I can't remember if I've set firmware and nvram path to a wrong place... it's my fault..

To cross-compile a kernel you just need to set bash variables: ARCH=arm and CROSS_COMPILE=(your compiler path with proper suffix). Then you can use make xconfig to modify kernel configurations and make zImage to build a kernel image. maybe you can post your log to let us see what's wrong?
[Asus Transformer TF700] JoinTheRealms:
While your here.... :) im also new to kernel compiling, i cloned your sources and im gonna just try compile it, what defconfig should i be using? im guessing tegra3_android_defconfig? looking in make menuconfig it shows that the wifi drivers are to be compiled as modules should this be built into the kernel instead as above?
[Asus Transformer TF700] moreD_cn:
Now I have two repos, one for android and the other for linux... so which one are you using? In android repo I have already put my config file in the right place so no defconfig is needed.
[Asus Transformer TF700] workdowg:
I have the build environment right. .. I'll have to do more this weekend... I'll get back to you on that.
[Asus Transformer TF700] JoinTheRealms:
Oh i see, i just used tf700t_defconfig and it compiled successfully, ill retry with the .config .Also i just tried to suspend ubuntu and it got stuck in the usual suspend loop im using your 4.2 kernel, is there something else i have to do to get it to work?
[Asus Transformer TF700] JoinTheRealms:
here it is https://www.dropbox.com/s/hkqhog4gjqw0lef/overclock.tar.gz Extract it to /home and run it with sudo sh /home/overclock/oc.sh . Im not 100% sure that gpu clocks are being set as I dont think there's a way to display real time gpu frequency but i followed hundsbuahs instructions, so it should be:)

As of yet its not applying the settings at boot in ubuntu, but ill fix it tomrrow. Also note that it backs up your current rc.local and replaces it, if you have an rc.local setup please modify /home/overclock/rc.local with your configureation
[Asus Transformer TF700] monecani:
First of all thanks a lot for your work!! It's amazing!

Now I'm running CROMi-X 5.0.2 and Lubuntu, but I'm going to install CROMi-X 5.0.3 and I would like to install Ubuntu instead of Lubuntu..

Installing CROMi will it delete Lubuntu?

I'd like to install Ubuntu 13.04, can someone help me? Because I found only the rootfs of the 12.10 version.
[MENTION=4582979]JoinTheRealms[/MENTION], you have CROMi and Ubuntu 13.04 in dualboot.. can you help me to do the same?
[Asus Transformer TF700] JoinTheRealms:
Yip just use the update manager and update 12.10s packages (about 200mb dl) reboot and then you should get a prompt asking if you want to update to 13.04 you can do this safely. note you will have too add sudo lightdm to your rc.local file to automatically boot into a gui.
[Asus Transformer TF700] monecani:
Thanks mate!
[Asus Transformer TF700] JoinTheRealms:
Just like to share, Im using Plasma-Desktop (kde) with opengl-es enabled kwin and so far its fantastic. In case anyone wants to give it a try, you can get kwin-gles sudo apt-get install kde-window-manager-gles. Seems to be much smoother than compiz/ mutter etc.
[Asus Transformer TF700] JoinTheRealms:
looks like linux for tegra 17 is on the way;) http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=log;h=refs/tags/tegra-l4t-r17.1
[Asus Transformer TF700] saugstauber:
What does this mean for us? :D
[Asus Transformer TF700] JoinTheRealms:
Mainly stability and performance improvements, there were quite a few known bugs at the time of releasing 16.3 that they didnt have time too address. im guessing the release is to support tegra4 if so it still could be a while away
[Asus Transformer TF700] moreD_cn:
Hey everyone, I'm back! :laugh: at military trainning base even using mobile phone was banned...but now i've finished it!

I've looked through the thread and was excited to find much improvement in various rootfs. So how are other things going now? I mean a multirom or root-bind booting? Sorry i'm struggling with my calculus and did not read carefully...:(
[Asus Transformer TF700] JoinTheRealms:
Great to have you back!

Ive got nothing much as of yet :( have exams until the end of next week, then ill be back into it. i haven't attempted multirom yet, im thinking of implementing my own version, similar to the one used on the tf300t arch port still got a bit to learn before then though. Speaking of that [MENTION=3971563]workdowg[/MENTION] have you had a look though that arch port? the developer has some really great work last time i used it (for example 1080p videos worked from the stock player) Ill replace the zImage and modules so we can have a play :)

Root-bind isnt working yet, but we should be just be able to use the tf101's initrd (ive attempted this in a kexec scenario but the mount points were wrong, and it fell back to initramfs console. I think the tf101s mmcblk0p7 partition is mounted at /data so that might need to be changed) Their init script is very complicated and quite hard to understand.

I think i had directory boot working (rather than from an image) but annoyingly got wiped :( according to rabits this was an issue with "mountall". I just ran a new initrd if /data/linux was found. Hopefully can find a more *elegant* solution
[Asus Transformer TF700] workdowg:
I'm still alive, just busy. I'll be back on rootfs mods soon...
[Asus Transformer TF700] JoinTheRealms:
I wonder what multiboot concoctions we can create with the help of nvflash :) Im guessing it shouldnt be that hard to make this work on our device http://xdaforums.com/showthread.php?t=1995157
[Asus Transformer TF700] workdowg:
I'm all set! nvflash ready now... Lets bring on multi-boot!
[Asus Transformer TF700] superpacof:
Is there a way to use this dual-boot script with Cromi-X 5 and keep Data2SD. I don't see an option for it in the installer (only Cromi-X 3.x). I used the option for Cromi-X 4 (regular since there is no data2sd option for it) and lost the data2sd functionnality on the android side. Am I missing something?
[Asus Transformer TF700] edward_h:
Hello. Long-time Linux user here with great interest in this topic. I've finally configured my Android side of things that make this tablet nice to use rather than a large paper weight, and now I'm trying to patiently wait until the dual-boot supports Android 4.3. I've actually read through most of this thread and just still have some lingering uncertainties.

I was hoping in the mean-time that one of the developers could clear up a couple of questions or (mis-)understandings that I have.

First: As I understand it, the ideal way to accomplish the dual-boot is to have an Android kernel compiled with kexec() support, correct? Then there is an init script that catches the Android boot process and asks whether to continue with Android or "launch" into another kernel.

Second: If this is the case, is it also correct that I understand that the dual-booted Linux side of things is completely independent from Android? IIRC the early versions of dual-boot shared a kernel, but with kexec this is no longer the case, right? Ultimately what I'm asking is: if I install Ubuntu 13.04 (eventually when 4.3 is supported) and do a 'sudo apt-get update; sudo apt-get upgrade' that includes a kernel security update, it's not going to bork things...correct? What about upgrades on the Android side...I'm guessing that the new kernel just needs kexec, again?

Third: (Once a 4.3 kernel supports this) I can install the Linux system entirely to my dock SD card if I wanted, correct? It'd be fantastic to only have to take this device with the dock when I travel, and have access to essentially two devices, one of which would be a "real" work machine.

I promise I won't ask anymore questions now ;)

Thanks!
[Asus Transformer TF700] JoinTheRealms:
You understand correctly :)

The kexec kernel is independent from the android/linux(hybrid) kernel (in fact as it is now, the hybrid kernel does the kexec calls so during the init menus you can choose between a kexec kernel or continuing to boot with the hybrid kernel). Although with the kexec method there are separate kernels, the linux kernel is 99.9% the same as the android kernel.

The problem with the kexec method atm is its not really being put to its proper use. Ideally you should be able to call the kexec kernel from android and be able to boot straight into the os of your choice(and this doesn't have too be linux, its possible you could use this to boot from stock 4.2 android into cm10 for example.) As it is now the kexec's initrd relies on input from the previous init menus

Next week im gonna start finally working on a new method, borrowing a few things from the tf300t's arch effort hopefully. Where during the boot process while the asus splash screen is visible if the user presses vol up it will take them to a menu where they can choose between the distro of their choice and boot their individual kexec kernels. If no input is detected then it boots straight into android, with no init or fbcon stuff.

Also yes, you can install 13.04 and the latest updates and nothing is broken(only issue is lightdm does not start automatically so you will need to do this with rc.local)

Btw when you say android 4.3 you mean cm10.2 right? I think its just a matter of replacing the ramdisk in the installer.zip but i have zero understanding on how that mysterious aroma installer works... I will attempt to get cm10.2 working at some point;)
[Asus Transformer TF700] edward_h:
Excellent. Thanks for the detailed explanation. The Linux-side updates were actually my biggest uncertainty, but small errors are not a problem. It seems that every 6 months I have at least one release-upgrade go bad, so what's one more?

Yes, by 4.3 I mean CM10.2 (Pacman actually). This ROM is so nice that there's now way I'd downgrade, no matter how awesome full-blown Linux would be.

Thanks again for all your work. Can't wait to try it!
[Asus Transformer TF700] tnjfitzy:
One silly stupid question... I don't want to brick my device or anything like that.

To install it says to copy the rootfs file to microsd.. by those words, does it mean I have to have an SDcard in the dock to install it??

And I am running cromi 5.0.2 will I have to do anything else special to make this work ??

Sorry for the ignorance.. I just like to make sure I am doing things correctly before actually doing it.
[Asus Transformer TF700] JoinTheRealms:
its fine, no the .lzma file can be placed in /data/media (i think it could be placed on an sd card though) Don't worry about bricking, it wont brick your device. This process is essentially just extracting the rootfs(linux fiile system) packing it into a virtual image and flashing a kernel, hence the only partition we touch on internal emmc is boot and if you have a bad flash (very unlikely) recovery will always be accessible (although since nvflash is now available you should make use of it.)
[Asus Transformer TF700] tnjfitzy:
Thanks for the reply.

I followed the steps but I get stuck at the screen straight after how many Gbs I want to use. It says something about not being able to find the rootfs .lzma file.. I have copied it to

SDcard/data/media. And

Sdcard/data/media/linux and root of Sdcard.

And it still can't find them.

Sorry for my noobish ways

Thank You

Where exactly is it meant go ti
[Asus Transformer TF700] yoda-sama:
I think I missed something, do we have a new method for nvflash?
[Asus Transformer TF700] _that:
Head over to the dev section and read the thread about Flatline.