yashsingh1/xdaforums huggingface dataset:
[G Tablet Android Development] bdjohns1:
Hi - quick question. I'm a little new to the GTab, but I was wondering if this kernel has iptables support built in (or if it could be added to future builds).

The reason that I ask is that I'd like to be able to get my tablet online at work, but doing so means I need to traverse an authenticating proxy. There's a guy who's cooked up a proxy application to make everything work, but it requires iptables support.

Thanks!
[G Tablet Android Development] pershoot:
from quick glance that is all framework changes. nothing to do with the kernel.
[G Tablet Android Development] pershoot:
iptables/netfilter support are included.
[G Tablet Android Development] bdjohns1:
Thanks very much. I'll give it a spin.
[G Tablet Android Development] jmdearras:
Vegan B5.2? I thought B5.1 was current/last?
[G Tablet Android Development] tekrhino:
There's a 5.2??

LINK UP PLEASE!
[G Tablet Android Development] wicked_beav:
Does this work with VEGAn?
[G Tablet Android Development] jmdearras:
Yes, better than the kernel that comes with Vegan.
[G Tablet Android Development] ketty_yijun:
sorry, my typo. whoever wants to try Multitouch rotation on Google Maps 5, please go to http://xdaforums.com/showthread.php?t=936545 and talk over there. credit goes to jwischka who found the trick and thank you all.
[G Tablet Android Development] pershoot:
g2/gtab/zpad - 2.6.32.28 - froyo/gingerbread - http://droidbasement.com/db-blog ; RM updated
[G Tablet Android Development] stanglx:
Thanks pershoot... Loaded up a few hours ago and everything is working nice... On a very positive note it seems the wake up issue I had has gone away... Typically after about 5 minutes if I tried to wake it up it would not and just reboot... now it looks like its actually going to sleep... Of course the real test is overnight. I will let you know how it goes...

Thank again!!!
[G Tablet Android Development] kampf:
I'm definitely interested to hear how your overnight test goes. I don't think I've been able to get mine to wake up from an overnight on-charger session once in 10 days with four different ROMs.
[G Tablet Android Development] stiphy:
First, thanks for all your hard work Pershoot!

I too can't get mine to wake from sleep. Unfortunately upgrading to this Kernel still didn't solve the issue. We've been working on this here: http://xdaforums.com/showthread.php?p=11086805#post11086805 for the last week or so. I've done some logging and attached it on this thread (using L2sd and also personally using ddms).

What I do know is that even when it won't "wake up" from sleep it is eating battery. So the problem isn't that the CPU/unit is just turned off, the problem is that it won't wake up. Unfortunately I am not getting much out of logging.

I am willing to help in any way possible. I have the Android SDK installed and can attach my device if need be etc. I'm a software developer (over 10 years of experience, but in the Windows world) so I can figure things out pretty easily. Just let me know and I'm more than willing to help!

Sean
[G Tablet Android Development] pershoot:
do this.

nandroid.

wipe everything.

flash tnt lite 4.2.1.

once in disable dialer via autostarts if you have the app and anything else you don't need starting up (while you're in there).. if you don't have the app, i strongly recommend it. it is awesome. it is ~96 cents.

reboot to recovery and flash the kernel. go back in, and launch autostarts, and make sure the things you have disabled (including dialer) are still disabled (as a precautionary measure).

now observe.

remember, you just need to tap (but press in) the power button. long hold will shut it down cold while sleeping (this is hardwired).

if you tap (wait a second) and if it does not turn on, tap it again (don't hold).

make sure you are not low on battery as that could cause wierd effects (not necessarily with the hardware, but with android itself in combination with this hardware; it would throw off your testing) during this period of observation.
[G Tablet Android Development] stanglx:
Actually I did almost what you said... I had done a complete wipe even formated my system partition before reloading Vegan... then installing your Kernel.. then restoring from Titanium... So far I have had multiple wake on successful after multiple hours of non-use all day... Tonights the real test.

I will try out the autostarts app you said also.. interesting find...

Will report back..
[G Tablet Android Development] pershoot:
Vegan is known to have some issue with it, which is why I suggested tnt lite.
[G Tablet Android Development] pershoot:
g2/gtab/zpad - refreshed - gingerbread/froyo - http://droidbasement.com/db-blog
[G Tablet Android Development] stiphy:
Thanks pershoot,

Logging of exactly what I did:

1) Took full backup (Titanium, copied to PC)

2) Boot to CWM7

3) Format system

4) Format Data

5) Format cache

6) Format sdcard

7) Wipe user settings/cache/davlik cache (prolly not necessary after format)

8) Copy tnt-lite 4.2, 4.21 supplement and your latest kernal (from today) to sd card from PC (mounted SD card in CWM)

9) Flashed tnt-lite 4.2, 4.21 supplement

10) Wipe user settings/cache/davlik cache

10) Rebooted into tnt-lite 4.21

11) Connected to wifi

12) Fixed market, reboot

13) Installed autostarts from market

14) Disabled dialer, bluetooth share, maps using autostarts

15) Reboot to CWM

16) Flash your latest Kernel

17) Reboot to tnt-lite 4.21

18) launch autostarts, everything I disabled is still disabled

19) Tapped (not held) power button

20) Waited 30 seconds

21) Tapped (not held) power button...nothing

22) waited 10 seconds

23) Tapped (not held) power button...still nothing

24) waited 10 more seconds

25) Tapped (not held) power button...still nothing

26) Held power button to reset.

Battery life was 87% so this wasn't an issue.

Any more thoughts, I'm beginning to think I've got a hardware problem on my hands...

Thanks again,

Sean
[G Tablet Android Development] pershoot:
Ill enable more debugging in the kernel to see if we can pinpoint what is ocurring.
[G Tablet Android Development] stanglx:
Well.... I want to report GOOD NEWS! I went the entire night and the device came out of sleep successfully!!! The battery was 55% when I put it to sleep last night at 10pm and today at 8am the battery was at 33% - woke up with no issues... No performance issues, WIFI no issues...

Here are the steps I took:

Since I had loaded many kernels and various roms I figured I should do a reformat..

So the order I took when I finally got fed up with this damn sleep issue (where ever it says rebooted DONT use the reboot function of Vegan - its not properly coded and does a force reboot without properly flushing the cache - use power off instead):

Formatted Data, Cache and System Partitions using CWM (NOT BOOT)

Clear D. Cache

Installed Vegan Rom

Cleared Data and Cache partitions

Rebooted into system

Let system stabilize

Rebooted into CWM

Cleared Data, Cache, and D. Cache

Loaded Pershoot's Kernel

Cleared Data, Cache and D. Cache

Rebooted into system

Let System stabilize

Rebooted into system

Let System stabilize

Did Market Fix

Rebooted into system

Let System stabilize

Loaded Titanium Market

Laoded up all 129 apps

Played various games, read WSJ, Read Yahoo Mail, etc. etc.

Put to sleep.

Woke up and now I am here....

I was almost convinced that it was hardware..
[G Tablet Android Development] stanglx:
I tried TNT Light and had the exact issues...

For the refresh - what was changed - the change log is a little cryptic? Do you recommend a reflash.

I am SUPER happy that this damn wake up issue disappeared - I am attributing to the new Kernel simply because I had done the the whole format/reload thing and still had the issue. It wasnt until I loaded up yesterday's kernel that the issue finally went away... THANKS!
[G Tablet Android Development] pershoot:
Reflash, yea.

It is reccomended to stay on current whenever possible.
[G Tablet Android Development] jmdearras:
As far as wake stability in Vegan, I still find Pershoots 1/9/2011 Kernel release the most stable. Never had sleep issues with it. I think he changed the WiFi after than, and maybe that causes sleep crashes? Just a wild guess.

I am running the latest, for VPN, and so far, it's behaved pretty well, not enough miles on it, yet, to be sure.

Jim
[G Tablet Android Development] pershoot:
1/9 is very old.

you are really missing out, if you choose to stay on that.

your vpn also will not work on 1/9.
[G Tablet Android Development] pershoot:
next rls ill look in to tweaking debounce and ill see about adding more debugging to track these one off issues with power, etc.
[G Tablet Android Development] stiphy:
Thanks pershoot, hopefully we'll get to the bottom of the power issues!

Let me know if you need me to do anything. I guess the upside is my unit faithfully fails to wake up after the screen turns off for 30 seconds to a minute so its easy to reproduce the problem.

Sean
[G Tablet Android Development] pershoot:
revert your firmware for the wifi. they are labeled fw_*.bin in /system/lib/hw/wlan (2 files). you can pull them from the tnt lite rom. flash the latest 0122 kernel. stay on tnt lite for testing.

now observe.
[G Tablet Android Development] jmdearras:
1/09/2011. No I don't run it daily, but when I start to suspect hardware in sleep issues, I reflash that version to prove the hardware's OK. I am running your latest. :D
[G Tablet Android Development] pershoot:
yea 1/9. coffee still hitting me, hehe.
[G Tablet Android Development] jmdearras:
Anyplace you can put those files for me to test on Vegan? I don't run TNTlite
[G Tablet Android Development] pershoot:
they are in vegan too.
[G Tablet Android Development] jmdearras:
I know some of my wake issues come from the soft keys on the right. sometimes, they are active with the screen off, and they are flagged for wake in the vegan ROM. when active, if pressed quickly, they wake the tablet, but if you happen to pick up your tablet by that side, you risk powering it down without knowing it.

Jim
[G Tablet Android Development] pershoot:
Doesn't happen on tnt.
[G Tablet Android Development] jmdearras:
Yes, but I like Vegan!:D
[G Tablet Android Development] stiphy:
pershoot,

I wasn't quite sure what the best way would be to revert the .bin files but here's what I did:

1) Extract your kernel .zip

2) Replace fw_bcm4329.bin and fw_bcm4329_apsta.bin in your kernel .zip file with the one from tnt lite 4.2

3) Rezipped the kernel .zip file up with the reverted .bin files, place file on sd card of device

4) ReBooted CWM7

5) Wiped data/factory rest, cache, davlik cache

6) Formatted System

7) Installed TNT Lite 4.2, 4.21

8) Wiped data/factory reset, cache, davlik cache

9) Rebooted into TNT Lite 4.21

10) Checked versions of fw_*.bin in iFileManager to make sure they were the tntlite 4.2 versions

11) Fixed market, installed and ran autostarts to kill dialer

12) Rebooted CWM, installed modified kernel.zip with the reverted fw_*.bin files

13) Rebooted into TNT Lite 4.21, verified versions of fw_*.bin in iFilemanager to make sure they were teh tntlite 4.2 versions

14) Verified Dialer was still stopped in autostarts.

15) Tapped (not held) power button to turn off.

16) Wait 30 seconds

17) Tapped (not held) power button...it came on! Tapped (not held) power button to turn back off.

18) Waited 60 seconds

19) Tapped (not held) power button...it came on! Tapped (not held) power button to turn back off.

20) Waited 10 minutes

21) Tapped (not held) power button...nothing :(

22) Waited 10 seconds

23) Tapped (not held) power button....nothing still

24) Held power button to reset.

I was getting hopeful when it came on after 60 seconds but unfortunately there is still an issue.

If I did something incorrectly in my revert (I have a feeling I went about reverting in a round about fashion) let me know.

Thanks,

Sean
[G Tablet Android Development] pershoot:
Do u have wifi set to never sleep?

I was made aware of some bug where if it wasn't, it would cause some strange wake issues.
[G Tablet Android Development] kampf:
Interestingly I think mine was set to Never Sleep. "think", because it's nearly impossible to tell what item is selected.

We'll see how it goes this evening/tomorrow.
[G Tablet Android Development] stiphy:
I always made sure I had this set in my previous testing (mostly with Vegan). The last 2 tests did not have this set because by default this is not set in tnt lite 4.2 (the steps I posted was EVERYTHING I did for these tests exactly as i did them).

My tablet is still in the last configuration I mentioned, TNT Lite 4.21 with your kernel but the TNTL fw_* files. I just set this setting. After about 2 minutes the device still wouldn't wake up. I rebooted thinking the setting may not have taken, verified it was still set but again after about 2 minutes it wouldn't wake up.

Sean
[G Tablet Android Development] pershoot:
do you have a last_kmsg in /proc ?
[G Tablet Android Development] pershoot:
Kodak, yea u can flash and reap the benefits of countless hours of work :)
[G Tablet Android Development] NMCBR600:
All the work the developers are doing is great. Each update opens up new potential in the gtab.
[G Tablet Android Development] kodakeos:
cool thanks!
[G Tablet Android Development] pershoot:
Ill probly give an update tonight. Want to get the ciphers in for crypto and another patch. Then we can go from there and build up/across.
[G Tablet Android Development] sixvoltsystem:
I have to agree with you, if it wasn't for the kind and hard working folks here, I think Viewsonic would be in really deep doo doo.
[G Tablet Android Development] pershoot:
How is this working out thus far? Any issues?

Speed ok? Responsive? Etc.?
[G Tablet Android Development] NMCBR600:
Angry Birds and several other apps were 'uninstalled' after installing this kernel. TB could not restore them.
[G Tablet Android Development] pershoot:
Known issue.

Will be sorted 2night.
[G Tablet Android Development] pershoot:
aside from this, any other issues before i roll up a proper dated release tonight?
[G Tablet Android Development] clemsyn:
Is vpn mppe still experimental in 2.6.32.27?
[G Tablet Android Development] rushless:
Probably best to alert folks to this on the first page, so they can decide if they want to update or not. That can impact a lot of apps. Thanks.
[G Tablet Android Development] pershoot:
im unsure..
[G Tablet Android Development] pershoot:
done.

pulled. proper update coming shortly.
[G Tablet Android Development] brainyjd:
vpn working with this kernel

I was able to connect to my Cisco VPN ipsec with shared key and it is connecting and working correctly after this kernel was flashed and tun.ko loaded. There was a few extra steps required that I posted in the gtab vpn post. I can repost in here if everyone wants me to.
[G Tablet Android Development] pershoot:
gtab - 2.6.32.27 - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] napoleon solo:
Guess I'm the first to comment on the latest update...so far so good. Installed over VEGAn 5.1. No issues whatsoever. Very fast, no lags, video is great. Outstanding work, pershoot...and thank you
[G Tablet Android Development] samepic:
Do I need to add one of the ko files as well?

Pershoot:

In addition to the kernel, do I need to add one of the ko files as stated in your blog?
[G Tablet Android Development] pershoot:
Only if u want to use that particular functionality.
[G Tablet Android Development] roebeet:
a big THANKS, btw

Will probably test this out with TnT Lite 4.00 today and link to it as well once I release that. I don't want to add custom kernels directly, but this is just one extra step if someone wants to alter their kernel.

I love how you've made the kernel script mod agnostic - that is AWESOME. Basically, all a user needs to do is run this over their current build and mkbootimg grabs your current ramdisk to build the boot.img (if I'm reading this right).
[G Tablet Android Development] webby_s:
Just wanted to stop by and say thanks for the kernal, I installed the original that killed some apps then installed the modified version that fixed that issue. I have to say this is awesome because on my VEGAn b5.1 I was always getting reboots and the lag-on-wake issue STILL and now I am not!!!!!! So thanks so much... I was almost going to give up on VEGAn too. Now it is running awesome!
[G Tablet Android Development] ketty_yijun:
for veganb 5.1, which kernel should i apply? froyo or gingerbread?
[G Tablet Android Development] mdwalker@yahoo.com:
froyo

Use Froyo.
[G Tablet Android Development] jmdearras:
I used the thread in this section to setup my Linux laptop to compile kernels, with your kernel as the demo. I built it from your git, and the zimage was maybe 100k larger than your last release. I loaded it, and it runs fine. Is your repository different from the last release?

Thanks for all your work, you have really made this tablet useful to me.

Jim
[G Tablet Android Development] stiphy:
There was no last_kmsg in proc. If I cat kmsg from adb shell when I press the power button I get the following:

<4>[ 1198.254756] PMU Resume Irq. In 0, 0 --> F4_Deal(0)-->PressRelease -->delat

ime(0) --><--F4_Deal(0) >>Out.

<6>[ 1198.628785] request_suspend_state: sleep (0->3) at 1194081896479 (2011-02-

05 02:01:36.709834230 UTC)

<4>[ 1199.647037] stop_drawing_early_suspend: timeout waiting for userspace to s

top drawing

<4>[ 1199.654962] SO340010: so340010_kbd_early_suspend() IN

<4>[ 1199.660970] SO340010: so340010_kbd_early_suspend() OUT

<6>[ 1199.666309] notify_daemon: wait for nvrm_daemon

<6>[ 1199.666344] nvrm_notifier_show: returning with 'PM_DISPLAY_OFF'

<4>[ 1199.666379] PM_SCREEN_IS_OFF set to 1

<6>[ 1199.732161] nvrm_notifier_show: blocking

<6>[ 1229.079491] PM: Syncing filesystems ... done.

<6>[ 1229.469736] tegra_pm_notifier: start processing event=3

<6>[ 1229.469818] nvrm_notifier_show: returning with 'PM_SUSPEND_PREPARE'

<6>[ 1229.470155] notify_daemon: wait for nvrm_daemon

Then the USB disconnects and I lose adb shell. However I can get it to wake up after that as long as I do it quickly (in other words there's not a correlation between usb disconnecting and it not waking up).

Let me know if there is anything else I can do that would be helpful.

Thanks,

Sean
[G Tablet Android Development] comfort69:
I flashed the zip file but I did not have cifs so I obviously missed a step and I am sure it has to do with the separate kernel modules file.

Is there a tutorial for this anywhere?

Can I use rootexplorer?

Do I just upload the modules I want or upload them all?

Is there a way to easily install this as a zip file in recovery like the first file?

Thanks
[G Tablet Android Development] stiphy:
Flash them through CWM 7 just like you do a ROM. Just put the zip file on the device under SDCard, boot CWM7 and choose install .zip from SDcard. Navigate to the .zip and install. Reboot and you are golden!

Sean
[G Tablet Android Development] jmdearras:
Mixed Version?

Pershoot,

What is needed to build or hopefully just modify your latest kernel to use the WiFi from the 1/09/11 version, i.e. the old WiFi driver/firmware for the gtab. I'm starting to get my feet wet in GTab Dev.

I want to try that combination for a while.

Thanks,

Jim
[G Tablet Android Development] pershoot:
It is not possible to use the shipped wifi driver at this stage.
[G Tablet Android Development] jmdearras:
What has changed? I had it mostly working, connected and working, just no indicators and the on/off controls didn't work.

Jim
[G Tablet Android Development] pershoot:
Not possible.

The shipped (bcm4329.ko) cannot load due to massive dep changes as of the kernel's current state and it being statically compiled.
[G Tablet Android Development] comfort69:
I did the first file using recovery... But I am now referring to the separate download file with the kernal modules.
[G Tablet Android Development] jmdearras:
Still working on the sleep issue. Since the log is wiped on reboot, would it help to use NVFlash to dump the system partition or other one after it fails to wake normally, but before you force a reboot? Would the log be there?
[G Tablet Android Development] stanglx:
Wanted to report my sleep issue has not shown itself for many days now...
[G Tablet Android Development] jmdearras:
What kernel and OS?
[G Tablet Android Development] stanglx:
Vegan and latest pershoot kernal

Read previous post on sequence I used.
[G Tablet Android Development] terrypchan:
Using clockworkmod 2.5.1.3 and pershoot's kernel

Does anyone have a definitive answer on whether or not it is okay to flash pershoot's kernel when using clockworkmod 2.5.1.3 (2010.12.11) ?

I read through the 40 pages of this thread and the only info I could find was in post #295 and #296, and the answer is not clear.

I ask because all my clockworkmod system backups are made under 2.5.1.3 and yes, I've tried installing the older clockworkmod (belkit-0.8) and that cwm will NOT correctly restore system backups from a newer cwm like 2.5.1.3.

So I'd rather not have to install cwm belkit-0.8 just to use pershoot's kernel.

I'm using VEGAn 5.1b system rom on my gtab with clemsyn's latest kernel and cwm 2.5.1.3 with no problems, but I wanted to try pershoot's kernel. Anyone have an answer? Thanks in advance!

Update:

I thought I should update this post with an answer to my own question. Yes Clockworkmod 2.5.1.3 (2010.12.11) works fine with the latest gtab kernel from pershoot. I simply wiped the cache partition (may not actually be necessary) and then used cwm to install pershoot's kernel over the clemsyn kernel that I was previously using with VEGAn 5.1b rom. It all went smoothly and I rebooted into pershoot's kernel. I seem to have better battery life now vs the clemsyn kernel.
[G Tablet Android Development] pershoot:
g2(gingerbread)/gtab|zpad(froyo/gingerbread) - 2.6.32.28 - http://droidbasement.com/db-blog ; RM updated