yashsingh1/xdaforums huggingface dataset:
[G Tablet Android Development] mmracing:
I think I'll wait for VEGAn beta 5 for the lag fix. There seems to be some flaky things going on with this patch... like programs not being unusable. I know what stanglx is saying, development is hard to follow when you aren't doing the developing. :)
[G Tablet Android Development] eric.a.bardu:
The kernelpatch works well on my vegan beta 4! Thanks a lot...
[G Tablet Android Development] vsc:
At this point little difference between the two kernels with respect to what comes from Viewsonic.

Clearly the first patch which is in both rcgabriel and my version of the kernel addresses most of problem that I initially found in Nvidia's supplied sources, where the summary is well documented in rcgabriel's earlier post. Subsequent patches appear to address corner cases which are less likely to occur.

From the subsequent patches I found one that I found interesting and applied it. In fact poking around for the issues related to breaking apps, I found one or two other patches which could be applied. But there is no smoking gun and I haven't heard anyone with ongoing issues at this point.

At some point Viewsonic will release an updated kernel. I for one don't want to be in the kernel support business for Viewsonic. My hope is that they get a functional and stable kernel released, perhaps based upon finding from this forum.
[G Tablet Android Development] lamlam01:
Installed @vsc kernel on TnT 3.1.2 last night around 10pm - woke up this morning at 8am; no lag. I left the wifi on and did not baby the tablet in any way; just used it normally, including using the power on/off button. Quadrant 2100-2500.
[G Tablet Android Development] rcgabriel:
Just a quick note - I updated my Thread Summary post and the two update.zip files for Vegan b4 and TNTLite 3.1.x that I had posted previously to use a new kernel build that fixes the installation issues with certain apps (Angry Birds, others that try to install themselves to SD Card).

If you had issues with the previous kernel updates because they screwed up Angry Birds and other apps, go ahead and give these a try.
[G Tablet Android Development] jerdog:
So with this being a CPU scaling issue, has anyone tried adjusting in the kernel config file to allow for different governors? Does it require drivers or is it just a matter of turning it on? Does nVidia have any source for different governors for the Tegra2?

I am new to kernel dev, but I have a knack for troubleshooting - and I put in post #118 of the thread - http://xdaforums.com/showpost.php?p=10140712&postcount=118 that shows some of the stuff I found and was wondering about....
[G Tablet Android Development] vsc:
And for TnTLite V3.1.x here is the same, using rcgabriel's configuration. Former patches included, which means this kernel includes,

http://nv-tegra.nvidia.com/gitweb/?...it;h=555d0c0e5b9a86b5e291216d59406709b34480d6

http://nv-tegra.nvidia.com/gitweb/?...it;h=01a0b8146665a17dd063b4b8e2fe80e5bd795c22

http://nv-tegra.nvidia.com/gitweb/?...it;h=24026696dcd728be545c07fcd3b4bd7e1483c553

And if you do a "uname -a" you will get,

"Linux localhost 2.6.32.9-V0.2-dirty #1 SMP PREEMPT Wed Dec 29 11:48:58 CST 2010 armv7l GNU/Linux"
[G Tablet Android Development] thebadfrog:
To everyone that worked on this.....thanks
[G Tablet Android Development] rcgabriel:
PS to all - I recommend wiping cache when you install a new kernel, or flash anything in CWM for that matter. Just a minor piece of advice. It is possible that some of the Market glitching people reported before is related to failure to wipe cache after flashing a new kernel.
[G Tablet Android Development] rswindle:
Will this lose all my angry birds progress? My wife will kill me if I lose all that again.
[G Tablet Android Development] rcgabriel:
Nope. Wiping cache is non-destructive to app data. BTW, I highly recommend using Titanium Backup to backup all your apps every week or two in addition to the occasional Clockwork Mod backup.

I have restored my app data for Angry Birds from Titanium Backup on several occasions. :)
[G Tablet Android Development] jmdearras:
Install help, please

Having returned one gtab after getting "Magic Number Mismatch", I am very cautious, now.

Do I install this update with clockworkmod v08? do I mount/dismount anything before installing the .zip? Do I clear the cache before or after the .zip?

Thanks a bunch!

I also have a droid incredible, the whole process seems more mature on that platform! :)
[G Tablet Android Development] rcgabriel:
The droid incredible has been around for quite a while now, the G Tablet has been around for 6 weeks or so, and we've had source code for less than a week, so yeah, it is absolutely much less mature. It's also the first consumer Tegra 2 device out there, and everything about the Tegra 2 platform is just maturing now.

As for installing it, yes, you can flash with ClockworkMod 0.8, that's what I'm using here. No, I didn't mount/dismount anything before flashing. My update.zip files only touch your boot partition (where the kernel is stored), not your system or user partitions. I cleared cache after flashing the zip, but it shouldn't really matter, I would think.

If you are very concerned about flashing stuff, I'd highly suggest waiting for new releases of Vegan ROM and TNT Lite that include kernels with these fixes in them. These are just quick builds to fix some issues that were very annoying. :)
[G Tablet Android Development] jmdearras:
Thanks. I'm not terribly afraid of flashing, just want to be sure I use the right tools and steps. I got the magic number mismatch after following a clockwork wiki page that suggested I use the latest clockworkmod. I found after I crashed the magic number that clockworkmod gets confused with a microsd card installed, and uses the microsd for the files card when running a script from the internal SD card. I had junk on the microsd card I had not deleted :(

Anyway, thanks!

Jim
[G Tablet Android Development] rothnic:
BTW, magic value mismatch is entirely fixable with little effort. I know that a nvflash back to stock will fix it.
[G Tablet Android Development] jimcpl:
So, are you all communicating these findings to VS?

Jim
[G Tablet Android Development] raggededge:
So if I download this, it includes the latest stable patch for the lag on wake? Sorry, it's confusing trying to figure out what's the latest.

TnT Lite supplement version 3.1.2 Link: http://www.mediafire.com/?v2nx45qywcjwqrs
[G Tablet Android Development] rothnic:
No, I think roebeet is planning on not including modified kernels in TnT lite.
[G Tablet Android Development] raggededge:
OK, so VSC's post #206 in this thread has the correct link at the bottom then?

Thanks!
[G Tablet Android Development] ketty_yijun:
where? the same here? http://xdaforums.com/showpost.php?p=10138407&postcount=112
[G Tablet Android Development] rcgabriel:
Yes, if you are running TNT Lite, then vsc's kernel updater from post 206 will work fine. See my summary thread for more info on your options in terms of kernel updaters in this thread: http://xdaforums.com/showpost.php?p=10166099&postcount=195
[G Tablet Android Development] rcgabriel:
Yes, I uploaded my latest kernel updater to post 112. See my summary post, it links to the posts that contain the latest kernel updaters: http://xdaforums.com/showpost.php?p=10166099&postcount=195
[G Tablet Android Development] anlog:
@rcgabriel

I'm showing 2.6.32.9-00001-gce20c7f-dirty #7 for vegan b4 patch 2. Is that the correct build string?

I can't thank you (and vsc and the others) enough for your help in fixing this.
[G Tablet Android Development] rcgabriel:
That looks right to me. And you're definitely welcome, I got my head into this project because the lag issues were annoying me so I feel like I mostly scratched my own itch here. But very glad it was helpful to others too. :)
[G Tablet Android Development] anlog:
Without a doubt, this patch is by far the single most important modification ever done for this device. It literally makes the device usable.
[G Tablet Android Development] jmdearras:
NVFlash seems to require a 32 bit version of Windows, I only have x64.

The kernal patch loaded fine, runs great!
[G Tablet Android Development] jimcpl:
Hi,

I was wondering: is it conclusive that the values in /system/....are indicative of the lag? And, if so, which one?

Also, which stock TNT versions are affected by this problem?

Thanks,

Jim
[G Tablet Android Development] rothnic:
Nvflash works fine for me in windows 7 64 bit. There are some guides around for setting it up, I'll try to find later.
[G Tablet Android Development] rothnic:
Could you post the solution in the bottom of you OP with the 3 patches mentioned earlier in the thread? And possible some type of explanation of anything you learned. Would be a great reference, plus i have pointed VS to this thread.
[G Tablet Android Development] clemsyn:
Thanks, our files were the same, it was an error on my part due to compiling. Will look at it later :)
[G Tablet Android Development] rcgabriel:
Done, posted links to the relevant update.zip posts, and a list of the patches we found, and a summary of what we learned into the first post.
[G Tablet Android Development] vsc:
I enabled CIFS and NTFS w/ write support in V0.2.1 of the kernel for TnTLite 3.1.x.

CifsManager can mount a share and using the following a NTFS formatted drive can be mounted.

"mount -o umask=000 -t ntfs /dev/block/sda1 /mnt/usbdisk"

Note that for CifsManager by default it creates "/mnt/cifs" with permissions such that normal applications cannot access the share. Adding "umask=0755" to the options field changes the mount such that a normal app can see the files.

With this change I'm able to see files directly in RockPlayer, etc.

With this version of the kernel with "uname -a" you will see,

"Linux localhost 2.6.32.9-V0.2.1-dirty #4 SMP PREEMPT Wed Dec 29 17:54:26 CST 2010 armv7l GNU/Linux"

Note: While I enabled NTFS write support I don't trust writing to NTFS drives with Linux. No issue with reading.

Edit: Note that this kernel includes CIFS support in the kernel, thus there is no kernel module (e.g. cifs.ko) required. If there is a concern for space (in RAM) we can break this out into a module....

Edit2: Added option to CifsManager mount entry.
[G Tablet Android Development] Coldfirex:
Sorry to be dense, but if we are already running TNTLite 3.1.X, how do we apply this patch to resolve the lag issue?
[G Tablet Android Development] kozmo2k4:
Apply the zip in CWM recovery, wipe cache and reboot (it's always recommended to backup in recovery before you apply zip, just as a precaution). And yes, it does fixthe lag, I'm happy to report (running 3.1.2, getting ready to apply 3.1.3 in a few minutes).
[G Tablet Android Development] Coldfirex:
Thanks!

I have been upgrading without using Clockwork mod or a sdcard (so far at least). Can it be applied without these 2?
[G Tablet Android Development] Neoprimal:
Thanks for all the work you've put into this fix. Honestly, the lead engineer(s) at Malata or Tap n' Tap or really whoever the hell is responsible for putting out the official software should be re-schooled by some of you. Thanks Thanks Thanks.

Now I just want to be absolutely clear, the TnT 3.1.2 patch - SHOULD work for stock 3389, yes? Since it's based on it? (Not sure about that part, I haven't really kept track of TnT Lite stuff). I don't want to assume. At the end of the day I went back to stock 3389 so I just want to be 100% certain I don't bork my system with code written for something else.

Thanks again.
[G Tablet Android Development] VicHammer:
wow, first problem I've had. I installed the kernel patch via Clockwork and I got the "Magic Number" error. Doesn't seem all that magic to me. I have tried reinstalling and wiping data and cache again, nothing works. Even restored the back-up I made (yep, I'm a good boy!) and no joy, same error.

I did search and found a post where it said that it's an easy fix... but not how to fix it. HELP!
[G Tablet Android Development] anlog:
Will this syntax mount read-only (not sure if its the default in android)? If not, maybe include the "ro" option to play it safe.
[G Tablet Android Development] vsc:
See below with respect to which mount is used, but /system/xbin/mount defaults to read-write. Adding "-r" sets the mount to read-only.

Note that "/system/xbin/mount" is not the same as "/system/bin/mount". The xbin (busybox) version is more versatile and it is what I'm using. Perhaps we should fix the path in the ramdisk filesystem, such that /system/xbin comes before /system/bin.
[G Tablet Android Development] clemsyn:
OK..I think I fixed the SD install without requiring to unmount internal SD..will test with angry birds :)

Update: ITS WORKING..I'll upload..

This kernel contains the lag fix and Angry Birds fix (without unmounting SD card) or any other program that installs in SDcard automatically. Quitting in Angry Birds is also no issue. Also incorporated a few enhancements in the kernel. Just put clempatch.zip in your Internal SD and install. Please test..Enjoy :)
[G Tablet Android Development] roebeet:
That's correct. Among other things, there is just too much development going on right now, plus I know the TnT devs should be aware of these bugs too.

I might link to a stable custom kernel, once we have one in place. But I don't plan to add it to TnT Lite.
[G Tablet Android Development] gotwillk:
so this is for vegan b4 and it replaces veganb4-kernel-patch.zip posted in an earlier post?
[G Tablet Android Development] woneill1701:
Thanks to all for this - unbelievable job!

I assume this is a given, but I have to ask: is someone going to let our ViewSonic friend know that you have fixed a major bug in their product? (So they can incorporate the fix for everybody else?)
[G Tablet Android Development] clemsyn:
I tested it on Vegan b4, I made a few enhancements in the kernel too..
[G Tablet Android Development] rob_z11:
Yes I completely agree with the above statement. I still think that all of the vegan and tnt roms have made this tablet worthy investment and alternate to ipad.
[G Tablet Android Development] clemsyn:
OK, more patches done..Will upload. Haven't tried this on TNT, only on Vegan but feel free to do so :)
[G Tablet Android Development] anlog:
How does this one differ from vsc or rcgabriel's kernels? Or are they all pretty much interchangeable?
[G Tablet Android Development] gotwillk:
whats different in this one?
[G Tablet Android Development] clemsyn:
Made a few changes in the kernel eg. Disabled high memory to speed up kernel, a few yaffs enhancements, asec install fix or internal SD. A few patches patches applied from nvdia. Enabled on-demand as default...etc
[G Tablet Android Development] gotwillk:
are there still issues with calendar syncing? or does this kernel fix that too?
[G Tablet Android Development] evolseven:
I'm not an incredibly active member here, but I know my way around the linux kernel to a limited degree. Anyway, went to put in tun support so that I could get VPN Connections going and found that there was an issue building the module with the kernel and patches provided by viewsonic (it actually causes problems with quite a few different modules, but it looks like most support is built into the kernel, which was an option, but I personally prefer modules in cases like tun support that not everyone will need).

I did end up fixing this using the vegan b4 patch 2 kernel as a guide (I applied the patch specified in post 112). Anyone else having this problem may want to look here and apply this patch as well.

hxxp://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=commitdiff;h=6c09f09d44690d341d970559b64779bef8b9236b

I wont provide the binary for this as it looks like the kernel above may be a superior kernel, but still probably a good patch to include in any future builds so that we can connect to cisco based vpn devices with a Group ID/Pass and Username/Pass.
[G Tablet Android Development] larsky:
Works but has issues

Applied the clemsyn patch and seems to be running great all for except some sd card issues.

Seems the internal sd is being recognized as external.

*yeah, this is my first post on xda forum.*
[G Tablet Android Development] gasch1:
I am actually desperately hoping for a solution to the VPN issue. In my case, I am not trying to use OpenVPN, but the simple PPTP VPN connection that comes in Froyo. I setup a connection using no encryption and when try I connect, what I see in the system log is:

mtpd Creating PPPoX socket

mtpd Socket() Address family not supported by protocol

I am assuming that this is also related to something missing in the kernel, but alas I am not familiar enough with Linux kernels to be able to find it myself. So, as always, I very much appreciate the XDA assistance!
[G Tablet Android Development] lordgodgeneral:
Running TNT Lite 3.1.3 and tried both. Vsc's works great, no issues, on rcgabriel's I got a FC from settings whenever I tried to get into them, but otherwise worked good.
[G Tablet Android Development] VicHammer:
I am running rcgabriels and get FC's when I try to change sound settings in any ap. Email, Setting, Gmail.. FC's. Anyone else?
[G Tablet Android Development] rcgabriel:
Hmmm, I've tested my Vegan beta4 updater extensively and a bunch of people are using it with Vegan without issue. So not sure what the problem would be, but I could definitely have screwed something up with packaging it up.

I recommend using vsc's TNT Lite boot flasher if you are having issues with mine, the kernel is essentially identical, and he has tested his boot image with TNT Lite.
[G Tablet Android Development] VicHammer:
I will try that sir, thank you.

:Edit: actually, I see his is for TnT and I am running Vegan. It would appear his is having slow down issues as well so it would defeat my purpose to install it. I'll wait patiently for a new one for Vegan, thanks!!
[G Tablet Android Development] stanglx:
I agree with your approach. We should be staying away from modified Kernels with OS names like TNT, etc. When we have a new unofficial Kernel it should be a completely new project with a new name...

What I would recommend though for issues that are resolved which have not been provided by VS/Google,etc., that patches are provided for those specific problems that are confirmed fixed and can be applied to Core Projects (projects which are derivatives of vendor provided OSes such as TNT Light)... This gives the user a choice of whether or not to run an unofficial patch and allows those who are not comfortable to keep with the core project. Sensor Fix, SDCard Fix, Lag Fix, New features like mounting NTFS, etc. are examples where patches can be provided and applied to just about all the Core Project OSes (TNTLight, Vegan, ZPad, etc.) - some with no change some with minor changes.

Generally this needs to be an agreement with anyone who comes up with a Kernel fix... They should provide a fully modified Kernel but also a patch that can be applied to core projects. Subsequent fix packs could be released by the developer/group of developers (with agreement) grouping these unofficial fixes for the various Core Projects.

All good work but we need a little better organization together.

Thoughts, feedback?
[G Tablet Android Development] vsc:
An early version I released didn't actually include anything, thus didn't fix the lag issue. I'll go back and delete those attachments to minimize confusion.

The last kernel I released V0.2.1 includes support for CIFS and NTFS, thus at a level provides a means to mount Windows network drives, as well as a NTFS formatted physical drive. The prior release V0.2 includes the patches found on Navidia's site which targets the lag issue, as well as dealing with files on the sdcard (e.g. as used by software such as AB).

Right now the only difference between rcgabriel and what I posted (in general) is that they were packaged with the ramdisk for Vegan and TnTLite respectively.
[G Tablet Android Development] rcgabriel:
Oh, okay, I misunderstood.

If you are running Vegan, I am reasonably certain that what you're describing isn't caused by my kernel. I don't really see how the patches we made could be causing those issues, and nobody else has reported them. Not saying the issues aren't happening, just guessing that they are related to other things - data corruption from Clockwork Mod glitching, etc.

Might try restoring from your last Clockwork Mod backup, re-flashing the kernel and wiping cache, see if the problem recurs or was a one-off.
[G Tablet Android Development] VicHammer:
Cool, I will look for a newer posting of your kernel.
[G Tablet Android Development] Cobalt2012:
Borked my gTablet!!!

I now get the Magic Value Mismatch error!!! :mad: :mad: :mad:
[G Tablet Android Development] rcgabriel:
Lordgodgeneral - thanks for the feedback, this could be something with the ramdisk image I used in that updater (I actually used the boot ramdisk image from vsc's first updater - the kernel is fine, since it's identical to the one in my Vegan b4 updater).

Anyway, I've changed my summary post and the first post to recommend clearly that people with TNT Lite use vsc's updater and people running Vegan beta 4 use my updater, since those two have been the most heavily tested, and removed the links to my TNT Lite updater.
[G Tablet Android Development] rcgabriel:
Cobalt - that has nothing to do with the kernels nor the patch itself. Unfortunately, it's a bug in ClockworkMod that seems to cause that occasionally when flashing anything. Search the forums, you have to re-nvflash the G Tablet to fix the issue.

See this thread, for example: http://xdaforums.com/showthread.php?t=860493

Alas, our updater ZIP files are way to simple to cause any problems like that themselves.
[G Tablet Android Development] lamlam01:
Thanks to all the devs that fixed the lag issue - it's so strange to have a tablet that just 'works' now. In just a few short weeks, we now have 3 stable ROMs to choose from. I'm going to test drive the ZPAD 3.0 today; this is the only one I have not tried and looking forward to it.
[G Tablet Android Development] VicHammer:
It very well may not be. I screwed up big time and updated CWM with ROM manager and borked my whole system with a "Magic mismatch" error yesterday. I had to re-install EVERYTHING. It just started doing this with all those other installs as well. I thought this might be the first place to start, after thinking about it you are right sir, probably not the cause. I will look elsewhere. Thanks again!
[G Tablet Android Development] jimcpl:
Hi,

I know that this is belated, but I didn't get a response to the above, esp. the 1st question.

The reason I'm still interested is that I've been working on a small app to monitor this. I think the answer is "cpuinfo_cur_freq", which is read only for root, which took me awhile to figure out how to read.

If someone can confirm that name, I'll post my app once I get it working completely.

Thanks,

Jim
[G Tablet Android Development] rcgabriel:
The files with meaningful data, I believe are:

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq

If they are showing 216000 no matter what you have set as the minfreq, then you're lagged out. Check and compare to the cpuinfo_min_freq file. Obviously, you'll have to actually set the scaling minimum frequency to something higher than 216000 for this to definitively identify the "lagged" state.

Vegan ROM has already integrated this patch into their kernel though, and I expect our friends upstream at Viewsonic will ship a fixed kernel in their next update too, so hopefully soon enough lag-on-wake will be a thing of the past.
[G Tablet Android Development] jmdearras:
This must be why the market cpu freq monitors don't work. Could we put a symlink from one cpu to the path the single proc systems use?

Jim
[G Tablet Android Development] jimcpl:
Hi,

Thanks for the info. Given that, I'm going to modify my apparently to monitor multiple locations. I'll post it after that.

Thanks,

Jim
[G Tablet Android Development] vsc:
If you do, use cpu0 as the kernel tries to keep cpu1 off as much as possible unless the work load requires firing it up (e.g. playing video, etc).