yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Q&A, Help & Troubleshooting] marcos.lennis:
Ive got my MT4G for 2 weeks now and love it. For being out only 2 months it has great Dev support compared to the N1 when it first came out (trust me I had one til recently).

Thanks to ALL the Devs working really hard on this phone. YOU GUYS ROCK!!!
[G Tablet Accessories] insight3fl:
Thanks again to all the Devs that have made our tablet usable. As you know, docks are being imported (I believe you will have one soon) and apparently only the zpad rom supports the ethernet port. Are you going to be able to get this support into the TnT and other custom Roms?

Thanks
[G Tablet Accessories] rothnic:
I am planning on working on it. There is no doubt it should be possible to get it working, just a question how hard.
[G Tablet Accessories] it2steve:
Of course, we don't doubt your ability :)

I'm assuming the docks made it ok?
[G Tablet Accessories] roebeet:
Haven't gotten it (yet). Snow probably slowed things down, I expect.
[G Tablet Accessories] gunsjoe:
I came home to find the stand at my door. USB works fine with the power adapter and it is slightly weighted to help itself stay still.

Haven't tried to use HDMI. Ethernet would be good for the network folks who want to eventually want to sniff traffic and other such stuff. So +1

Typed this out on a keyboard plugged into the usb of the stand, so handy to just doc and have a keyboard. I am on TNT 2.4 so no mouse :(
[G Tablet Accessories] roebeet:
I couldn't get Ethernet to work reliably without a conf change (DNS was borked). I added a fix in 3.1.3 that should correct it, at least as per my tests so far.

HDMI and USB seem to work A-OK OOTB.
[G Tablet Accessories] jimcpl:
roebeet,

For those of us who are running stock, what was the conf change that you needed to do for DNS (assume root and terminal are available)?

Thanks!

Jim
[G Tablet Accessories] roebeet:
The problematic file is this one:

/system/etc/dhcpcd/dhcpcd.conf

You just need to add this entry, to it:

interface eth0
# dhcpcd-run-hooks uses these options.
option subnet_mask, routers, domain_name_servers

This seems to tell the device how to assign DNS servers to the interface. This is in TnT Lite 3.1.3+ and also VEGAN b5+.
[G Tablet Accessories] Metal_in_Silk:
I can see this file using z4root, but what app do I use for editing it?

Still running stock rom at this point.

*N/m, googled it. Thx!
[G Tablet Accessories] Metal_in_Silk:
This is for the n00bs (like me) who want to stay with stock rom for a while and need to do this fix for wired ethernet with the malata dock. I needed it because at my job the wireless is turned off due to sensitive client info.

You need to install three apps:

z4root to root your tab

root explorer to copy a file

astro to edit that file

Turn off wireless.

Root your tab using z4root. The temp root wouldn't work for me, I had to do the permanent root to get the option to mount as rw in root explorer. Ymmv.

Navigate to /system/etc/dhcpcd/dhcpcd.conf with root explorer. Copy that file, navigate back to sdcard2 and paste the file onto your microsd card.

Make a backup copy of that original file somewhere, I put my backup in a folder on my netbook.

Open the file on the sdcard2 with astro, choose file editor and add the lines that roebeet posted above. Make sure you type it exactly, including spaces, etc. Save your changes. Exit astro.

Open root explorer again. Copy the edited file on your sdcard2 and navigate back to /system/etc/dhcpcd/dhcpcd.conf

Make sure you've clicked "mount rw" in the upper left corner of root explorer.

Paste the edited file in that directory. It will overwrite the original file. Click "mount ro".

Exit back to classic home (I shut down my tab at this point).

Connect your gtab to the dock, plug your charger into dock and connect your ethernet cable. Boot your gtab while connected to the dock. You may have to reboot once more but this fix works perfectly.

For some reason stock browser didn't pick up the connection but Maxthon and xScope Pro did. Stock browser may have just needed refreshing or something but it was late and I was tired so didn't bother with it.

Hope this helps someone else get it done a little quicker than I did :D
[G Tablet Accessories] slsmag:
Why are you exiting Root Explorer and opening Astro?

Just use Root Explorer to navigate to the directory and:

- change the permissions to r/w

- long press on dhcpcd.conf

- select EDIT FILE and make the addiition

- save it and change the permissions back to r/o

- michael

ohhh... just occured to me that maybe there's a 'lite' or free version of Root Explorer that doesn't include the ability to EDIT files!
[G Tablet Accessories] Metal_in_Silk:
Yes, using the free version I didn't see an option to edit.
[G Tablet Accessories] Metal_in_Silk:
Added note:

If you upgrade to build 4349, you will have to redo this fix for ethernet support. While VS states the upgrade adds dock support, it apparently is not for the Malata dock w/Ethernet.
[G Tablet Accessories] wasserkapf:
This seems to work, as checking the connections using the busybox ifconfig command shows an eth0 connection. But both the browser and my Weather Widget Live Wallpaper can't find an internet connection. The Settings page has no way of telling it to use the LAN connection for internet connectivity.

So, it may "work", but it seems to be useless.
[G Tablet Accessories] Metal_in_Silk:
All of my browsers work with this fix. I'm posting from work using the dock now.

Weather widget doesn't work tho.
[G Tablet Accessories] pgonza02:
Hi,

I tried this fix on CM7 but it did not work.

Any ideas?

Thanks.
[G Tablet Accessories] Metal_in_Silk:
Wish I could help but no idea. Different rom, different kernel. Not sure who the dev is for CM7 but I'd try asking him if possible.

I've used it on stock 3588, 4349, and now Roebeet's Brilliant Corners (already included in this rom). Works on all those with all browsers I've tried so far. However, I cannot d/l from market via ethernet tho I can browse and select, apps are d/l as soon as it picks up a wireless connection.

Some apps work perfectly with it and some insist on a wireless connection.
[G Tablet Accessories] pgonza02:
It must be a simple missing setting on the configuration. The file is there and it did not have the ethernet section, it had USB and WiFi.

I'll keep digging.

Thanks.
[G Tablet Accessories] Metal_in_Silk:
That's the way the file is on stock rom as well. For some reason VS couldn't fathom anyone ever needing an ethernet connection, apparently.
[G Tablet Accessories] virtuwill:
Running Vegan-Tab Gingeredition RC1, and the fix didn't help me, not even after several reboots while it was sitting on the dock.
[G Tablet Accessories] pgonza02:
I am on CM7 and same thing.

Actually, having the new entry in the file made Pandora crash.
[G Tablet Accessories] aldo.caruso:
Dock with VegaN Gingerbread rom

Just wanted to share my experience. I have recently flashed the VegaN Gingerbread rom and tested that Ethernet and HDMI ports do not work. I use the dock USB to connect a keyboard and it works.

Will it work with a different rom?
[G Tablet Accessories] pgonza02:
I am on CM7.0.3 and HDMI does work. Been trying to get Ethernet to work, but my latest problem is with DNS.

You can see a discussion I've been having about this starting here:

http://xdaforums.com/showpost.php?p=13503561&postcount=862
[G Tablet Accessories] gschndlr:
Ethernet without dock?

Has anyone taken apart their dock yet? I wanted to know if the ethernet port is sourced from the USB port or if there are dedicated ethernet pins on the gtab dock connector.

A while back I saw that someone had tried to get a connector to match the docking port so they could make an HDMI cable without needing the dock. I don't know if they had any success but I wonder if this could this be done for ethernet?
[G Tablet Accessories] wasserkapf:
It was forum member it2steve, who sells a line of tablet accessories.:

http://xdaforums.com/showthread.php?t=865038&page=29

The latest v1.4 HDMI cables support ethernet, but I don't know if Android (Linux) supports this yet. Also, the ports would need to be 1.4 version.
[G Tablet Accessories] scyld:
EDIT 2: After playing with my tab and connection registration, I finally got it to work.

It took many hours, but it was worth it. I also learned a TON about the g Tab in the process.

EDIT: So I got Brilliant Corners on here. The stock browser simply doesn't want to work with my network connection. So far I've been trying to use this with a wired university connection, which requires me to register any new computer once through a login and registration screen before it allows me internet access. I don't know if this is the problem.

I possibly could just register its MAC address... but I can't retrieve it, since Settings crashes whenever I attempt to.

--------------------------

FIRST, please note: I know that this support community is giving their help and their expertise to update and maintain mods out of their generosity. For this I'm thankful, and I'm in no way frustrated at them. I'm just frustrated in general, so please don't take my frustration personally at all. Again, I'm grateful for the support this community gives the device.

That said:

I knew an Android device would be complicated... but I didn't know it would be THIS complicated, if not impossible, to make the ethernet port on the docking station work, to use a 3G modem dongle, etc.

I wish I hadn't gotten this tablet, or any other Android device, but now that I have it...

Now, I just want to use my tablet with all the ports on the dock: the HDMI port, the ethernet port, and the USB port. It looks like this might be too much to ask.

In addition to the above, I want to use the hacked Netflix app.

I am using CM7. Even after changing dhcpcd.conf, the ethernet port simply doesn't work, as others have experienced.

I was thinking about upgrading to Brilliant Corners, but my head was spinning at the instructions for going from a 1.1 ROM to a 1.2 ROM...

If I feel too squeamish to install BC, is there any other 1.1 ROM I can install which can use all the ports on the dock after simple modification of system files and can use the Netflix app?

Thanks
[G Tablet Accessories] Linuxslate:
Ethernet is working fine for me on the Dock using a Static IP (That's what we have at work).

Viewsonic G-tablet, Release CM 7.0.3

Edit: This seems to work only after you have previously connected to a WiFi network since boot, but once you have connected, this works with WiFi off.

Edit 2: Above seems to do with arp. Even when eth0 is up, it does not seem to get an arp entry unless sometime since boot, WiFi was up and connected. I do not feel like entering ARP stuff manually, and that is not something we should have to do. We are rapidly approaching the limits of my Linux/Networking knowledge here. I'd like to get this working since a user may need to connect to a wired network when no WiFi is available.

2 commands as root:

busybox ifconfig eth0 x.x.x.x

route add default gw x.x.x.y dev eth0

Where x.x.x.x is your assigned IP address, and x.x.x.y is the default gateway.

I did nothing for DNS. The 8.8.8.8 and 8.8.4.4 were already in /etc/resolv.conf

If you are on a DHCP network, I would try:

busybox ifconfig eth0

Look at the IP address that results, and then do:

route add default qw x.x.x.y dev eth0

Where x.x.x.y is the assigned IP with the last number changed to a 0 or (possibly a 254, or 1 or... should be the router's IP if you know it. ).

i.e. if your IP is 192.168.1.27, I would issue

route add default qw 192.168.1.0 dev eth0

I get an error about no network connection the first time I open the browser, but it seems to surf fine.
[G Tablet Accessories] pgonza02:
You da man :) That worked. Only thing is that it's 'gw', not 'qw' working for me now.

Now if we could only get the GW address from the WiFi one...if there is one. That might now work actually...just thinking out loud.
[G Tablet Accessories] Linuxslate:
Oh qreat. I'll have to fix that guickly. Sorry about the qoof.

:D
[G Tablet Accessories] pgonza02:
Awesome, but I think there is an issue when it goes to sleep.
[G Tablet Accessories] aldo.caruso:
Thanks!! Could you please explain for us noob how to execute these steps!!!???
[G Tablet Accessories] pgonza02:
My situation exactly. At work I'm on a 5th floor above all public WiFi and only wired available. I got the dock partially to get connected here.
[G Tablet Accessories] pgonza02:
It doesn't seem to work if I don't get connected to WiFi first.

I'm at work right now and have tried both with DHCP and hard-coded IP and no luck.

I can ping addresses but no name resolution.
[G Tablet Accessories] Linuxslate:
OK, I am at home now where my wired network will give me an address via DHCP.

I'm using the G-Tablet in the dock, WiFi is off, to post this. I have a USB keyboard connected to the dock.

All I did this time was:

busybox ifconfig eth0 up

dhcpcd eth0

(That's dhcpcd, not dhcpd).

The G-Tablet had been running all day, and connected to several Wireless networks, so I have not tried from a cold boot.

Something else I have discovered. Sometimes when I put the G-Tablet in the dock, it seems to start charging, but that is it. No Ethernet, and a USB keyboard plugged into the dock does not work. If I plug the USB keyboard into the Tablet itself, the dock seems to "Wake up". The Ethernet lights come on, and I can move the keyboard to the USB port on the dock.

I'm going to reboot now, and see what it takes to get it working again.
[G Tablet Accessories] pgonza02:
Just tried it.

1.Power off

2.Connect to dock

3. Power on.

4. Turn off WiFi

5.In terminal:

ifconfig eth0 up

dhcpcd eth0

6. Tested several apps...all good.

7. Reboot

8. Open browser, no connectivity.

9. In terminal:

ifconfig

only shows lo adapter

ifconfig eth0 up

dhcpcd eth0

ping www.google.com

unknown host

ping 74.125.93.103 (Google's address from my PC)

proper response

route add default gw 192.168.1.1 dev eth0

10. Open browser, go to www.Google.com, NO.

11. Open browser, go to 74.125.93.103, works fine.

12. Turn on WiFi.

13. Open browser, all is good.

14. Turn off WiFi.

15. Open browser, all is good.

From all this, it seems to me that there is still a problem reaching the DNS servers. Either the applications are hard-coded to look through the WiFi device or...I'm not sure :)
[G Tablet Accessories] Linuxslate:
WiFi has never been on this boot, and I am posting this.

Try these 3 commands:

(Root of course)

netcfg eth0 dhcp

dhcpcd eth0

setprop net.dns1 192.168.1.1

(Replace the IP address with your router address or DNS server (may be the same depending on how the DHCP is setup on the router).

Another way to find the IP address to use in above:

Do the first 2 steps above, then do:

getprop |grep net.eth0.dns1

This will show you the IP to use. In otherwords, net.dns1 needs to be set to the same value as net.eth0.dns1
[G Tablet Accessories] pgonza02:
Worked, just need to get it into a gscript. I have been having some problems running gscripts, they just say "stderr:" and nothing happens. Any ideas?

Thanks.
[G Tablet Accessories] Linuxslate:
I haven't tried making a gscript. Obviously, this would be very helpfull.

It should be possible to write a script to automatically do the getprop, and then setprop to athe same value.

We'd need 2 scripts - One for Static, and one for DHCP.

More importantly, we need to get Android to realize that there is a network connection so that Gmail, etc. Work.

Some ROMS for the Chinese tablets do have an Ethernet section, so that code is out there. We can make it work for now, but what we really need is what the OP suggested -- The Dev's need to support it.
[G Tablet Accessories] pgonza02:
For now I don't mind having the script and editing it to have the correct gw address.

I must be missing something at the beginning of it. I justr entered the commands but it does not work.

One more thing I noticed is that it seems that if the tablet goes to sleep, eth0 stops working. I need to get more details on this.
[G Tablet Accessories] Linuxslate:
Could someone please try this:

Use gscript or Put the following in a script, located in /data

Make it executable

Run it as root

netcfg eth0 dhcp
dhcpcd eth0
DNS1 = `getprop net.eth0.dns1`
DNS2 = `getprop net.eth0.dns2`
setprop net.dns1 $DNS1
setprop net.dns2 $DNS2

The " ` " characters are back quotes (usually found above the Tab Key on a PC, same key as tilde.

This should work on any Ethernet that is using DHCP - no user interaction, and

should work even of WiFi has never been on.

Here is my current script for a static IP address. IP addresses have been altered to protect the guilty.

Again, this can be put in a gscript.

busybox ifconfig eth0 192.168.128.100
route add default gw 192.168.128.1
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4

Obviously, Replace all IP addresses with appropriate ones for your network. The Google public DNS servers are shown, so they should work if left literal, but you may want to use the DNS values given to you by the network administrator. Again, should work without having to first connect to a WiFi network.

Both still have the problem of apps that check for a connection thinking there is none. Still working on that.
[G Tablet Accessories] pgonza02:
Will try it as soon as I get home from work.

Didn't bring the dock with me today.

Thanks.
[G Tablet Accessories] pgonza02:
Tried from complete off.

The DNS1 = ...part does not work, it gives:

DNS1: not found

But, if instead of using the variables (I think that was your intention), I manually run:

getprop net.eth0.dns1

and put the result in setprop net.dns1, it works fine.

I still cannot get gscript to work.

Can I just save them to a file and change the permissions to all EXEC? Does the file need to have a special extension?

Please excuse the ignorance, been a long time since I left college and I have been absorbed by Windows. I'm a developer so I'm fairly technical but I'm missing the "nitty gritty" details. I also have quite a bit of networking experience so I can understand the concepts, just need to learn the commands.

Thanks.
[G Tablet Accessories] scyld:
Feel free to patronize the noob here.

I was playing around with my dock's ethernet port after I haven't used it in a while again, and when I used the "ifconfig" command, the eth0 device isn't listed. Also, on the dock itself, only the green light is flashing. The amber light is not on at all.

Yes, /system/etc/dhcpcd/dhcpcd.conf has the following as the last entry:

interface eth0
# dhcpcd-run-hooks uses these options.
option subnet_mask, routers, domain_name_servers

Should I take this to mean that the ethernet port is broken?
[G Tablet Accessories] pgonza02:
Until you actually bring the ethernet port "up", it will not be listed on ifconfig.

Also remember that the tablet has to be off when you put it on the dock.

These are the commands I use, they need to be run as superuser, by typing su:

For DHCP:

netcfg eth0 dhcp

setprop net.dns1 192.168.1.1 <- This is the IP of your router or DHCP server

For static address:

ifconfig eth0 192.168.1.233 netmask 255.255.255.0 <- The 233 is an arbitrary free address

ip route add default via 192.168.1.1 <- This is the IP of your router or default gateway

setprop net.dns1 8.8.8.8 <- Google's DNS 1

setprop net.dns2 8.8.4.4 <- Google's DNS 2

Let me know if that helps.

BTW, I have also tested this with a USB to ethernet adapter connected directly to the tablet and it works fine.
[G Tablet Accessories] scyld:
Never mind, all I had to do was the netcfg eth0 dhcp command. When I tried to give it my DCHP server address with the "setprop net.dns1" command it made things stop working :p

Anyway, thanks for entertaining a noob to whom you have to explain things more than once. I appreciate it :)
[G Tablet Accessories] scyld:
Sorry, I spoke to soon.

It seems that after running the above commands, the eth0 device is activated for less than a minute, and then it shuts itself off.

This happens every time I try to activate it.

Any ideas as to what may be happening here?
[G Tablet Accessories] roberthillatrichardson:
I got the dhcp code to run with the following tweek for DNS1.

The code is:

#!/system/bin/sh

netcfg eth0 dhcp

dhcpcd eth0

export DNS1=`getprop net.eth0.dns1`

setprop net.dns1 $DNS1

To run the code, I got into the Terminal Emulator, changed to root with su command, went to the /data directory and executed the script with command

./filename

where filename is the name of the script file.
[G Tablet Accessories] pgonza02:
Interesting, I've had some issues with it when it goes to sleep but never that quickly.

Not sure what to tell you on that one.
[G Tablet Accessories] scyld:
Now I'm beginning to suspect that what was really going on was that the tablet was loose in the dock, and just pressing the touch screen loosened the connection with the proprietary connector. If I put a piece of plastic between the tablet and the dock, and put it on a hard surface, it seems to not get loose. I think adding a velcro strip between the tablet and dock will be sufficient.

Am I the only one to have this physical problem with the dock? :p

EDIT:

MORE IMPORTANTLY:

It seems nearly everything works with an ethernet connection, except I cannot download apps from market place. I can browse apps and start the download process, but the progress bar is always stuck at "Starting Download."

Anyone else?
[G Tablet Accessories] pgonza02:
Yes, I have the download problem as well. You might also have an issue with Google Voice.

From what I have been reading, some people think that it has to do with the port needed by download and Google Voice not being open. That doesn't make much sense to me because it works fine on WiFi on the same network.

That's as far as I've gotten with that problem. I wish I knew more Linux so I could do something like a netstat in Windows or run a sniffer program to get an idea of the connections made or attempting to be made.
[G Tablet Accessories] Linuxslate:
When we force a Wired Ethernet connection in this manner, the higher level Android Environment still tells Apps that there is no network connection.

Apps that look at the Android ConnectivityStatus, and then act accordingly still believe they are off line.

I have not found a way to force ConnectivityStatus = True

Until someone develops a FW with proper HW Ethernet settings panel, we are going to have this problem.

Several of the Chinese Android Tablets include Wired Ethernet, and do have the associated settings in the Wireless & networks Settings panel. In particular one Android FW for my Smart Q7 had this, and worked with an USB Ethernet adapter.

Some possible code here:

http://gitorious.org/0xdroid/framew...ava/android/net/ethernet/EthernetManager.java

Alternatively, It should also be possible to write a stand-alone App that brings up the connection as we are doing, and then just forces ConnectivityStatus, but it is beyond my "Hello World" experience in writing Android apps, and it is unlikely I could learn enough to do it in any finite amount of available time.
[G Tablet Accessories] konman2k4:
for those of you working on this, take a look at http://xdaforums.com/showthread.php?t=1185160
[Nook Color General] ws6kid:
I think this was caused from the update that went out. It would boot up and ask me what home screen i wanted to use zeam, android, or prolauncher. I would try and click on one and it wouldnt respond to touch input. So I had to do a hard reset and now its just stuck at the nook color boot animation..

Anyone else have this problem?
[Nook Color General] man0man:
Yes, I have this same problem.

It was working fine until, I powered it down and powered it back. After the first unlock screen, your are prompted if you want to use ADW, luncherpro, or home. It does not allow you to select anything from the menu.

After you do a hard boot you are stuck at the nook color loading screen.

If I do the factory reset, I assume I will have to root it again :confused:
[Nook Color General] Geezer Squid:
When I was there (boot loop after 1.0.1 install) a few days ago, I had to do the 3 finger data reset (power, Volume up and Home key press and hold) and then re-register the nook with B&N.