yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] x3maniac:
i came up with a script to rotate the screen, and also rotates the touch screen parameters. you guys can give it a try.

#!/bin/bash

rangex=( 0 9640 )
rangey=( 0 7220 )
torotate=( 9 10 )

xrandrout="$(xrandr)"

case $xrandrout in
*800x1280* ) cal=( ${rangex[@]} ${rangey[@]} ); rotate=0;;
*1280x800* ) cal=( ${rangey[@]} ${rangex[@]} ); rotate=1;;
esac

xrandr -o $(( rotate * 3 ))
for input in ${torotate[@]}; do
xinput set-prop $input "Evdev Axes Swap" $rotate
xinput set-prop $input "Evdev Axis Inversion" 0, $rotate
xinput set-prop $input "Evdev Axis Calibration" ${cal[@]}
done
[Eee Pad Transformer Android Development] mage_slayer2:
Even with kernel_sup installed my wifi still doesn't work.

Sbk2
[Eee Pad Transformer Android Development] TomTcom:
Did you extract the kernel sup before or after installing the kernel? I don't know if that made a difference but I did the kernel sup before installing the kernel image.
[Eee Pad Transformer Android Development] thantos:
Verify that you extracted the file in the root directory not the home directory. Best way to check is if you have a lib folder in the home folder you did it wrong
[Eee Pad Transformer Android Development] mage_slayer2:
I know that it is in the root folder I tried extracting it before kernel install and after.
[Eee Pad Transformer Android Development] TomTcom:
Did you update the Tegra drivers as well? Just trying to think of other ideas. I had wifi before installing it because I used the wget method but it's worth a shot if you haven't done that yet.

---------- Post added at 11:07 PM ---------- Previous post was at 10:18 PM ----------

Ok, I saved the rotate script as rotate.sh. Executed in terminal as root using . rotate.sh.

After it executed, while still in the dock, my screen rotated automatically 90 degrees to the right. While still in the dock I tried all directions of rotation with no change. Visually on the screen, the Conky widget was cut off however the task bar looked good. I appear to have lost basic touch screen functions like tapping on the start button.

I then removed it from the dock. No changes, all the same as above.

The terminal window flashed a lot of repeats of the command prompt. I was able to Control D to break the script in terminal and exit normally however the screen stayed in the 90 degree rotated view.

I hit the power button and was presented with the Logout options. I used the keyboard to navigate to reboot. Reboot restored everything back to normal.
[Eee Pad Transformer Android Development] thantos:
This probably need not be said.. but restart?
[Eee Pad Transformer Android Development] Mn5612:
For me, the kernel_sup archive didnt extract properly so the modules (wifi etc) weren't where they needed to be and I ended up just moving them to the correct folders with the terminal
[Eee Pad Transformer Android Development] TomTcom:
....Ignore please ......
[Eee Pad Transformer Android Development] mage_slayer2:
I will try again today

dont know what i did different but its workin now?!?!?!?
[Eee Pad Transformer Android Development] mage_slayer2:
has anyone tried to edit the dualboot.cfg for a larger partition?? if so what did u do for sizes

32gig tf101

now with the new linux my apt-get errors out during reading package lists
[Eee Pad Transformer Android Development] x3maniac:
did you resize the partion 1st time you boot into it? using

resize2fs /dev/mmcblk0p8
[Eee Pad Transformer Android Development] Kingzak34:
I think he was asking if we can set more than 6GB for ubuntu / recovery partition ?

( Anyway, I'm asking this now :) )
[Eee Pad Transformer Android Development] TomTcom:
Check the very first post under useful posts and the link tells you which config file to edit for the partitions.
[Eee Pad Transformer Android Development] mage_slayer2:
I got the partition re-sized to 10gig but my apt-get is now erroring out during reading package lists has anyone else had this problem?
[Eee Pad Transformer Android Development] TomTcom:
I don't have the 32gig but do you have to run sudo resize2fs /dev/mmcblk0p8 after changing the partition size? X3maniac probably knows..
[Eee Pad Transformer Android Development] mage_slayer2:
it was easy to do do u have a 32gig i have 10gig for ubuntu and 20 for android if you want this set up pm me and i can help

---------- Post added at 09:09 AM ---------- Previous post was at 09:07 AM ----------

my partition is ok its is running apt-get in terminal that is the issue

---------- Post added at 09:12 AM ---------- Previous post was at 09:09 AM ----------

partition is not the issue here i just wanted to know what others set their partition to
[Eee Pad Transformer Android Development] Kingzak34:
Thanks :), I missed it :roll:
[Eee Pad Transformer Android Development] Jhinta:
That was because nvdia made a error, console was only working on 1 . should be 0 . that's why there was 1 but if your console is oke leave it as is ( should be fixed already )

Verstuurd van mijn HTC One X met Tapatalk
[Eee Pad Transformer Android Development] thantos:
Strange.. I tried to get unity to work and some have broken my touchpad.. won't respond anymore despite reinstalling the driver and editing the xorg.conf..

Wonder why.
[Eee Pad Transformer Android Development] Aminpro:
I want to flash just the ubuntu image without having to reformat the entire space but the error showed up:

Nvflash started

[resume mode]

unknown command: folder\tubuntu_v042\images\ubuntu.img

Now I have to reinstall the entire thing if I've done something wrong on Ubuntu.

Maybe there is a manual command on this please?

---------- Post added at 07:23 PM ---------- Previous post was at 06:49 PM ----------

I've install the nvidia drivers but now I'm stuck when rebooting.

I'm in the command prompt asking for user and password.

Tried to use "startx" but it returns fatal error:

no screens found

(EE)

Trying to reinstall and appending the section manually since I can't access the GUI right now, still a fail. I guess I will have to reflash the entire thing again huh?
[Eee Pad Transformer Android Development] Serkenar:
Have you installed the updated 0.4.6 binary? Installing rootfs image should work fine

You must install 3.1 kernel for tegra drivers to work. Refer to the initial post for links and instructions.
[Eee Pad Transformer Android Development] Kingzak34:
Just a question for x3maniac, are you planning to release a new ubuntu.img updated ?

Just for know, I'm not asking ETA ;)

BTW, is anybody played xmoto without problem ? ( I cant launch it, dont know why )

Ho yea, x3maniac, if you are using Wuala, send me an MP I've gift for you :)
[Eee Pad Transformer Android Development] Aminpro:
Alright, I've tried to just flash the new kernel but it ended in a kernel Panic

not Syncing: Fatal exception in interrupt.

Am I supposed to flash the kernal first before installing the nvidia driver?
[Eee Pad Transformer Android Development] x3maniac:
news update:

i'm working very hard to get the sound working. i had sound working once before but i don't know how i got it... =( until i get the sound working i wont be updating the image or kernel.

ps: i ordered a keyboard from amazon nov 9th and still didn't ship. i filed a claim in so i'm waiting on that. i ended up ordering a keyboard/dock from ebay =P so that should be in soon.
[Eee Pad Transformer Android Development] TomTcom:
Awesome, I've been hard core on the gun too. I saw in the boot log a reference to an error loading fm34 with a null return. Fm34 is what we use on the android side which you could reinit with ioctl. But that doesn't work in inux. The lsmod isn't showing any sound modules either and etc modules shows the wm9803 spdif loading but doesn't return when you mod probe uname -r | grep snd or lsmod.

Also the kernel directory for uname -r doesn't have a modules/sound folder. The older 2.3.6 or 2.3.8 had one but when I insmod that module it fails most likely because it isn't compiled for that kernel.

Still researching...

**Update** I guess the FM34 is only the DSP and not the WM8903 chip itself, I saw a teardown and think I understand it a bit more. I'll focus again on WM8903 and not FM34.
[Eee Pad Transformer Android Development] Gary13579:
Can someone that is running 3.1.10 and the r16.2 version of tegra drivers try running glmark2-es2 and es2gears on their tablet in Ubuntu? Please paste the output of these programs, including the FPS you get.

I am working on getting Arch Linux booting natively. I've compiled Jhinta's kernel, but it does not work as expected with r16.2 drivers. Running es2gears will spam stderr with "Couldn't open /sys/bus/nvhost/devices/host1x/syncpt/22/max". es2gears only gets 60 FPS, when it should be able to pull 400+. I don't believe Jhinta's (and hence OPs, as his is a fork of that) kernel are fully compatible with the r16.2 drivers.

If this issue exists on your guys' Ubuntu install as well, then it definitely means it's kernel compatibility issue and I will start working on merging Jhinta's work with the r16.2 kernel tag by nvidia.
[Eee Pad Transformer Android Development] Mn5612:
I get the same result in ubuntu
[Eee Pad Transformer Android Development] Serkenar:
Yes, you have to flash kernel before installing tegra drivers. Furthermore, you have to re-install them after flashing an upgraded kernel.

As for kernel panic, I'm note sure, but have you installed the respective kernel modules ("kernel supplement" in the OP)?
[Eee Pad Transformer Android Development] Mn5612:
x3maniac, would you mind posting the /lib/modules/3.1.10-6-ac100 files that need to be added to the initrd? Just so that I can add them myself, its starting to bug me :P

Thanks!
[Eee Pad Transformer Android Development] Kingzak34:
Use last kernel with modules given and you wont have problem anymore
[Eee Pad Transformer Android Development] Mn5612:
That's what I'm using, problem's still there
[Eee Pad Transformer Android Development] Kingzak34:
So you've done something wrong, cause it works flawlessly.

Try to reflash needed kernel and place module at right place ;)

---------- Post added at 02:08 PM ---------- Previous post was at 01:49 PM ----------

BTW, do you think, that flash another android kernel is safe ? Or we cant to do so ?

( Using Tubuntu with TWR )

EDIT : It's fine I just made a mistake when flshing :)
[Eee Pad Transformer Android Development] x3maniac:
The native visual ID for all EGL fbconfigs seems to be returned as 0. This is bug acknowledged by NVidia.

eglGetConfigAttrib(ed, &config, EGL_NATIVE_VISUAL_ID, &id); //id = 0

so most GLES apps will not work as there appears to be no visual with that ID.

Example of change needed in es2tri.c and eglut_x11.c from the mesa-utils-extra package

- visInfo = XGetVisualInfo(x_dpy, VisualIDMask, &visTemplate, &num_visuals); + visInfo = XGetVisualInfo(x_dpy, VisualNoMask, &visTemplate, &num_visuals);

Some vertex and fragment shaders may show compile errors with the L4T driver. Mercifully, the error messages are usually informative enough to help fix the problem.

Example of change needed in es2gears.c from the mesa-utils-extra package

static const char fragment_shader[] =
+ "#ifdef GL_ES\n"
+ "precision mediump float\n;"
+ "#endif\n"
"varying vec4 Color;\n"

It is vital that none of the Mesa library equivalents of libGLESv2.so, libGLESv1_CM.so or libEGL.so are loaded by your target application at runtime. Doing this will make the application fail around the context creation step.

A good way to check is to run:

ldd ./name_of_gles_app | grep GL

All entries on the list should point to files in /usr/lib/nvidia-tegra.

check the folder /dev/snd/* there should be stuff in there. that is how you know sound modules are loaded. tegra_soc is built into the kernel and it is not a module. i tried compiling to module but it doesn't compile(as per jhinta).

running:

aplay -l

this will give you a list of drivers loaded and can be used. i'm currently playing around with /etc/asound.conf and alsamixer to see which combination i need to get it to work.

check my github. i have a blank initrd you can clone
[Eee Pad Transformer Android Development] Aminpro:
I've followed the instructions to install the kernel word by word but this is the 4th time I got the Kernel Panic.

Maybe I did something wrong?

The suppliment file was extracted using wget and gone into the /lib etc. [root]

Flashed using the x3maniac option, replaced the linux3 and renamed it to xlinux.img

Selected the recovery partition since I'm on Android/Ubuntu option.

All the steps I've taken seems good but....
[Eee Pad Transformer Android Development] Serkenar:
I can only suggest that installing tegra drivers on a not 3.1.10 kernel broke something. I don't know how to fix this, but re-installing lubuntu using Flash RootFS Image option in Flash section of Tubuntu should help:

0. Flash 2.6.38 chromium kernel

1. Install the rootfs

2. Install x3maniac's kernel supplements

3. Flash x3maniac's 3.1.10 kernel image

4. Install tegra drivers, mtrack driver, etc.
[Eee Pad Transformer Android Development] x3maniac:
sbk1 or sbk2? if sbk1 there is this manual method to upload the kernel. somewhere in this thread.
[Eee Pad Transformer Android Development] Aminpro:
The Linux booted and got me into the Busybox (initramfs)

I guess I will have to make a fresh reflash.

The last step I did was

1. Install fresh Android/Ubuntu

2. Boot into Ubuntu

3. Install kernel supps

4. Enter APX

5. Flash x3maniac

6. Kernel Panic

Am I doing something wrong here? Perhaps I am using a different ubuntu.img that I am supposed to?

I am using this one : Lubuntu V1.1-rc1 (12.10)

and : *updated kernel 12/10/2012*

kernel image - 3.1.10-g6e2783c

kernel supplement - kernel_sup.tar.gz

Flashing options was set to

3.1.10x3maniac Kernel

Recovery Partition

Running Tubuntu v0.4.6beta binary.

Running on SBK 2.
[Eee Pad Transformer Android Development] x3maniac:
can you try to boot up with everything unpluged? usb/ dock / sdcard..
[Eee Pad Transformer Android Development] Aminpro:
The kernel panic was gone but I was put into the BusyBox (initramfs)

I can confirm that as soon as I plug in my USB, there goes the kernel panic.

I am going to try this again with a fresh one and unplugging everything after flashing the new kernel to see if that works.

---------- Post added at 07:19 PM ---------- Previous post was at 06:24 PM ----------

Well, tried removing all stuff when rebooting with the new kernel(Fresh android/ubuntu). Stuck on the BusyBox.
[Eee Pad Transformer Android Development] x3maniac:
re download the kernel. seems like it's a bad download. i'm gonna try to make a md5 for future uploads
[Eee Pad Transformer Android Development] Aminpro:
I've downloaded the kernel so many times.

is it the supplement is the bad one or the xlinux.img?

If it's the supp, wget the supp 4 times and still all ended in a kernel panic.

Was thinking on using a MicroSD but I can't seem to mount my SD card properly.

I will continue to retry everything fresh, the tubuntu.exe and all of them fresh.

Download the Kernel and try to see if it works.
[Eee Pad Transformer Android Development] Gary13579:
Yes, I found that information somewhere before. I don't believe it's the same issue. According to lilstevie (who I believe is more competent than the both of us combined :P), it's caused by a slight compatibility difference in the kernel/driver ABI. glmark2 and es2gears work fine, without falling back to software rendering, it's just a matter of all of the errors and how capped it is in speed due to them.

I'm also hoping this is why Chromium doesn't use any GPU acceleration. Checking about:gpu in Chrome, everything is being done in software. Either Chrome doesn't support GLES acceleration for anything, or it's because of ABI compatibility between driver/kernel. I believe Chrome DOES support GLES, as the latest ARM Chromebook has to use GLES because it's Exynos. Having an accelerated Chrome is actually my main goal with all of this work -- full software rendering on CPU is quite slow, not to mention a battery hog.

Cheers, that is what I feared. I might try downgrading drivers in the mean time. Merging the kernel patches with nvidia's latest release will probably be difficult.
[Eee Pad Transformer Android Development] Mn5612:
Sounds good, let me know if you need a tester for the ubuntu side. I'm running mine as a loopmount, so even if it broke my system it would only take a few minutes to restore from a backup
[Eee Pad Transformer Android Development] Aminpro:
I give up. 6th time but still getting the kernel problem. It's useless without Chrome to be able to load a page.

I'll come back later when there's a new kernel preferable without having to put in the supplements.

I appreciate your work and you guy's help but it's not working for me and I can't seem to find the problem.
[Eee Pad Transformer Android Development] x3maniac:
for now you can just use firefox instead of chrome.

sudo apt-get install firefox -y

in lxterminal
[Eee Pad Transformer Android Development] Aminpro:
Silly me. I did not think of installing another browser because I thought it was a "global" problem.

Thanks ^^ Really appreciate your help and effort!
[Eee Pad Transformer Android Development] ReQuanto:
friends, please tell me - may i install tubuntu to my tf101g sbk v3?
[Eee Pad Transformer Android Development] x3maniac:
i don't own one. so i really don't know.
[Eee Pad Transformer Android Development] x3maniac:
ok so i got around to starting my own kernel. directly forked from nvidia. added some stuff to support our board. fixed some compile issues. but it's getting late now. it does fully compile now but framebuffer doesn't work. i'll look into fixing that soon.

it's suppose to fix the usb hotplug issue. and other stuff too.. i don't know until i can get it up i can't really test.

if anyone is interested it uploading to my github

-don
[Eee Pad Transformer Android Development] natostanco:
I don't know, this tool says apx is disconnected, yet I can fully use olife tool within a vm on the same machine, so...??
[Eee Pad Transformer Android Development] thantos:
@x3maniac: Thats awesome! look forward to your kernel! Hopefully we can get full opengl working with this!
[Eee Pad Transformer Android Development] Aminpro:
Looking forward ^^
[Eee Pad Transformer Android Development] thantos:
Has anyone got unity to run on this baby??
[Eee Pad Transformer Android Development] Kingzak34:
If you use net install you can get it, with Tubuntu img I didnt success to have it ;)

Or With Lilstevie img
[Eee Pad Transformer Android Development] x3maniac:
ok. i might have a reply for this. since i have been looking at the source code and trying to compile my own kernel from l4t source seem like your right about the compatibility difference. Jhintas kernel was compile while r15 was out. r15 only supports up to abi 11. and 12.04 i believe is abi 11. while 12.10 is abi 13. which requires r16.2 but since our kernels don't support r16.2. i can be wrong but that how it seems
[Eee Pad Transformer Android Development] TomTcom:
I did notice for sound that dmesg reports a failure to init fm34 on i2c. I've been on the hunt still.
[Eee Pad Transformer Android Development] x3maniac:
fm34 has to do with voice input

Rdnetto told me that in alsamixer you have to select your sound card then edit the options. I have not tried this yet
[Eee Pad Transformer Android Development] TomTcom:
I've tried alsa 6 ways to Sunday. It recognizes the card but playback does not allow a volume increase and this is with many combinations of mutes/unmutes and dacr and dacl settings recommended in other threads. I'll keep trying though.

If fm34 is voice only then why does a reinit of ioctl on fm34 in some builds of android fix the sound not working? That's happened on team eos builds prompting the kat audio app by timduru.
[Eee Pad Transformer Android Development] x3maniac:
ok, so i'm making some progress. very slowly but some progress. jhinta's kernel is from nvidia base r15 alpha (2/23/2012). i'm patching invidutally to see when the kernel breaks. so far i'm up to (3/05/2012) and the kernel still working. boots and also fixes alot of dmesg we get like iw_?? compains. that's almost over 200 commits.. and i'm still going at it. hopefully i'll be able to reach r16 soon which is about 700 commits away =(
[Eee Pad Transformer Android Development] Jhinta:
lol :cyclops: you just made my day
[Eee Pad Transformer Android Development] Serkenar:
omg, that's a great deal of work! I appreciate all the effort you put into it. Thank you! (and lots of respect :) )
[Eee Pad Transformer Android Development] x3maniac:
patches are up to 3/07/2012 now. alot of things have been fixed i think including suspend. i havn't had a chance to check it fully.... umm i also cheated a bit and cherry picked some of the sound fixes too. the sound patches are more towards patch date 5/20.

please need some beta testers

suppliment file

http://novaspirit.com/tubuntu/kernel_sup_3-7-12.tar.gz

kernel file

kernel.tar.gz

happy hacking!
[Eee Pad Transformer Android Development] TomTcom:
404 Page not found on the sup 3-07
[Eee Pad Transformer Android Development] Gary13579:
Yeah, modules link is 404. I really appreciate you doing this, I was dreading having to patch the kernel myself. I'll try out the kernel as soon as the link is fixed on Arch Linux.
[Eee Pad Transformer Android Development] x3maniac:
fixed typo sorry
[Eee Pad Transformer Android Development] x3maniac:
how is alarm on tf101? i made a image for arch but i don't have a dock so couldn't do anything. all it did was boot =P
[Eee Pad Transformer Android Development] TomTcom:
I'm all loaded up. Have to go to work though. If nothing breaks at work I'll post how things are going with it. Thanks x3maniac, much appreciated as always!
[Eee Pad Transformer Android Development] Gary13579:
It works well. I haven't found much that is severely broken that isn't universal (like the driver/kernel issues you're working on). mtrack from the AUR has some issues, but overall works pretty well. evdev occasionally stops work for everything but the window manager, which is annoying to reproduce/debug. I'm using a very lightweight setup, though. openbox with a few gtk apps and Chrome. I haven't even started to attempt to get audio working because I rarely use it.

The main issue is actually that I am running it off of a class 2 microSD card, so apps randomly lock up waiting for disk IO. But that's mostly my own fault :P. I don't want to install it on the main Android partition.

Repacked your kernel release with my own bootimg.cfg and it works great so far.
[Eee Pad Transformer Android Development] x3maniac:
this kernel might fix the issue with your sdcard... i found a patch to keep the sdcard alive... it used to goto sleep after a certain time to save power.. works for android everionment but for linux it doesn't so ti was patch to not goto sleep. let me know how to works
[Eee Pad Transformer Android Development] Gary13579:
More importantly, hardware accelerated compositing now works :DDDDD In Chrome, everything except canvas and CSS animations are done in hardware (CSS animations are disabled by default, and the canvas issue is actually upstream issue in Chrome itself). The result is a much, much smoother experience.

Thanks again. This makes Arch so much more usable to me.
[Eee Pad Transformer Android Development] TomTcom:
So far the basics all work just fine.

I tried sound and didn't have any luck. I opened the sound files, tried speaker-test, and check settings in alsamixer. Please let me know if I can test something and give you output to help out.

Bluetooth appears to register appropriately and in dmesg but doesn't recognize some of the common bluetooh devices I have right by me.

I was able to go nearly 2 hours waking up the screen from a longer period of time so it looks like the suspend is working better. Thanks for that by the way! I had to reboot to install the touchpad stuff.

Please tell me what else you need.

For me at least, the brightness controls work on the dock. Sweet!