[Q] Run Webtop via Android VNC...or Pocket Cloud - Atrix 4G Q&A, Help & Troubleshooting

Is it possible with the right settings to set this up to where I can slap my host down and password down with Android VNC and have Webtop run right on my phone?

I've tried this and have gotten it to work on the android window, in webtop mode. BUT, once you unplug the HDMI cable... the VNC just is black. It doesn't disconnect, but it won't display anything. I'm not sure how to keep the display on 0.0 active after unplugging the HDMI...
So, if anyone knows how to do this, i would like to know too.
To get where I've gotten:
in a webtop terminal (lxterminal):
$ sudo apt-get install x11vnc
$ sudo apt-get install libvncserver0
$ export DISPLAY=:0.0
$ x11vnc -noncache -nolookup -listen 127.0.0.1
(leave this terminal window open it's running x11vnc and listening on localhost)
Then on the android window, run androidvnc address:localhost port: 5900
It works, and you can see your webtop in andriodvnc. when you unplug the HDMI, for a second you can see your webtop on your phone screen, but then it turns black... Again, i think it's because display 0.0 is being turned off when HDMI is not present, allthought webtop is still active.
hope we get this!
**
after looking into this further it looks like we need to edit /etc/init.d/startXServer.sh file
it says at the bottom of this file
then
sudo -u adas -i /usr/bin/startx -- -nolisten tcp -layout HDMI vt2 &
else
sudo -u adas -i /usr/bin/startx /usr/local/bin/xnull -- -nolisten tcp -layout HDMI vt2 &
fi
maybe listen tcp localhost instead of nolisten tcp?

edounn said:
I've tried this and have gotten it to work on the android window, in webtop mode. BUT, once you unplug the HDMI cable... the VNC just is black. It doesn't disconnect, but it won't display anything. I'm not sure how to keep the display on 0.0 active after unplugging the HDMI...
So, if anyone knows how to do this, i would like to know too.
Click to expand...
Click to collapse
Hi, I was going to ask the same question, then I said: "Made a search", and I fell on this topic.
I have exactly same problem: when disconnect HDMI, screen gone Black and I don't find how to keep it active...
I try to do with display to :1. It works, but not with great resolution and no mobile view....
[EDIT]
Found a solution to have VNC to Webtop without HDMI, but mobile View is broken, and when unplugged, the phone don't rotate screen.
The WebtOp pad/keyboard of the phone seems to be keep active over the phone.
In Terminal, type:
Code:
kill $(ps -ef | grep 5000 | grep webtop-restart | cut -c10-15)
I will search more

Related

iwmulticall binary.. (or some way to interace with the BCM4329 PM)

So far, I have not found a way to turn off power management.. Usually it goes like this -
iwconfig eth0 power off
I did notice wmiconfig and thus tried wmiconfig --getpower which gave me:
eth1
Power mode is rec
Power mode can be rec or maxperf..
If any of you have used the broadcom drivers in Linux, you'll know that they slow down big time when power management is set to 'All Packets Received'. On my laptop with a 300mb/sec 5ghz 802.11n connection, I get 2MB/sec with PM on.. 19MB/sec with PM off. It matters..
I haven't been able to find much on wmiconfig due to MS having an identical name for one of its utilities. I'm going to try the iwmulticall binary from my g2 now.... ok.. got errors. it listed lo, tunl0, and gre0.. then it died.. heh.
Has anyone turned off the PM or been able to interface with the bcm wifi chip? It'd be even cooler if we could turn up the tx-power a little.
Nothing? Do you guys think the bottleneck for wifi transfer speed is the emmc?!
Any progress?
I have an Adam, which uses same wmiconfig and BCM4329 wifi.
wmiconfig have options like --power maxperf , but when I use it and try --getpower it reports back rec mode and not maxperf
Also there is option --txoptbursting 1 but not sure if it worked or at lease I don't know how to check if it has changed.
Yes. I can get 4-5MB/second (receive via ubuntu ncftp as client, gtab server) with power management turned off. CIFS has slightly lower speeds - but that's normal. SFTP is also decent (allows me to access / in its entirety as if it were mounted locally).
Anyways... put this in /system/xbin/
http://home.comcast.net/~ibladesi/iwmulticall
and start symlinking to it... like so
# cd /system/xbin/
/system/xbin # ln -s /system/xbin/iwmulticall iwconfig
Here are the symlinks you can create in addition to iwconfig:
iwgetid iwlist iwpriv iwspy
My normal use for it is-
iwconfig wlan0 power off
So I made a script and named it fstwan so its quick to type.
Don't try to set the txpower, that seems to be broken with all android devices.
And yeah, wmiconfig seems to be complete horse****.. that's even worse than bs. I don't think that this will change the tame nature of the wifi radio's power output.. I think it has more to do with system utilization.. its such strange default behavior. For example, using a ssh client to connect to the device is brutal in terms of responsiveness, turn pm off and viola, its like you're using adb.

How To USB Tether (For Free). Now With Instructions for Ubuntu, Mac, and Windows.

I am going to give instructions for setting up free USB tethering via Azilink for those using Ubuntu. This will work for other operating systems, but I will leave that up to others.
Notes:
* Unlike PDA Net and Easy Tether, this does not block certain websites (free versions) and does not cost money for a "full version".
* Unlike Wireless tether methods, this allows the battery to charge while tethering.
* This does not require root, but does require adb.
* It may seem complicated the first time, but it really is simple, with great results.
* I am currently using azilink to post this, so I know it works.
To begin:
INSTRUCTIONS FOR UBUNTU​
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. To download and install OpenVPN on your computer. Open a terminal and enter
Code:
sudo apt-get install openvpn
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. In your computer terminal, enter
Code:
sudo openvpn --configure ~/azilink.ovpn
8. You should now be online. Enjoy.
INSTRUCTIONS FOR OS X (MAC)​
Note: This may seem complicated at first, but only needs to be done once, after which, connecting is very simple. I have done this myself, and can confirm it does have rewarding results.
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. Download and install OpenVPN on your computer.
(i) You will need to compile openvpn from source (not as hard as it sounds).
(ii) You need a C-compiler:
Download the xcode package from here.
You’ll need to register for an Apple Developer Connection account.
Once you’ve registered, login and click Download Software and then Developer Tools.
Find the Download link next to Xcode Tools (version) – CD Image and click it!
Find the downloaded package, doubleclick it and follow the installation instructions to install gcc and a host of other development applications.
(iii) Download OpenVPN, unzip, and in the terminal browse to the top level of the unzipped folder and enter
Code:
sudo ./configure
sudo make
sudo make install
When this finishes, you will have openvpn installed.
(iv) For an OpenVPN GUI, download and install TunnelBlick, which is free and open source.​
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. Open TunnelBlick, and tell it to use as a configuration the downloaded file azilink.opvn.
Open the TunnelBlick details, and make sure "Set nameserver (alternate 1) is selected".
8. You should now be online. Enjoy.
INSTRUCTIONS FOR WINDOWS​
Note: I have not yet tried this, as I do not use windows. I know it can be done, but if I am missing anything, please let me know and I will add to the instructions.
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. Download OpenVPN for Windows, and run the installer.
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. Run OpenVPN, and use as a configuration, the downloaded file azilink.opvn.
8. You should now be online. Enjoy.
My method for simple startup.
Ubuntu: Make a script:
Code:
adb forward tcp:41927 tcp:41927
sudo openvpn --configure ~/azilink.ovpn
Save it as azilink, and place in ~/bin (if there is no such directory, make it yourself via mkdir ~/bin and add it to your path). Then in the terminal enter:
Code:
chmod a+x ~/bin/azilink
.
Now, all that needs to be done to go online is turn on azilink on the phone, and enter in the terminal:
Code:
azilink
Mac: Make a script:
Code:
adb forward tcp:41927 tcp:41927
Save it as azilink, and place in ~/bin (if there is no such directory, make it yourself via mkdir ~/bin and add it to your path). Then in the terminal enter:
Code:
chmod a+x ~/bin/azilink
Now, all that needs to be done to go online is turn on azilink on the phone, open TunnelBlick, and enter in the terminal:
Code:
azilink
.
I'm using wireless wired usb tether. I'm running wireless tether and am plugged into usb to charge the phone with the computer. You could probably do the same with a wall wart charger or cigarette lighter charger for the car. Yeah it may be kinda retarded this way but it's simple and works. If I wanted to move around with the laptop, I could just put the phone on the wall charger in the same room. I did this a year ago when I went on vacation with the gf. We each had our laptop and was using wifi from my phone instead of paying for wired internet at the hotel. It wasn't blazing fast but it worked good enough to surf the net minus anything streaming.
herbthehammer said:
I'm using wireless wired usb tether. I'm running wireless tether and am plugged into usb to charge the phone with the computer. You could probably do the same with a wall wart charger or cigarette lighter charger for the car. Yeah it may be kinda retarded this way but it's simple and works. If I wanted to move around with the laptop, I could just put the phone on the wall charger in the same room. I did this a year ago when I went on vacation with the gf. We each had our laptop and was using wifi from my phone instead of paying for wired internet at the hotel. It wasn't blazing fast but it worked good enough to surf the net minus anything streaming.
Click to expand...
Click to collapse
There are four reasons I do not do it that way:
1. I build my computers, and do not put wireless cards in them.
2. I can crack anyone's WEP in about 15 minutes.
3. Having done that in the past with my G1, it destroyed my battery (had to buy a new one).
4. I get download speeds of around 1Mb/s with azilink.
Thanks for the tip though, it may help someone on here.
cloverdale said:
3. Having done that in the past with my G1, it destroyed my battery (had to buy a new one).
Thanks for the tip though, it may help someone on here.
Click to expand...
Click to collapse
This. My hero's battery was toast after about 4 months of doing that every day. The problem is that using wireless tether eats the battery up faster than it can charge, which is not a good thing. Not to mention the battery/phone gets HOT. Which is also very not good. I went from maybe 10 hours of battery life (occasional texting, facebook once or twice an hour maybe) to draining the battery in less than 4 with slightly more use.
Testing this asap.
SirRipo said:
This. My hero's battery was toast after about 4 months of doing that every day. The problem is that using wireless tether eats the battery up faster than it can charge, which is not a good thing. Not to mention the battery/phone gets HOT. Which is also very not good. I went from maybe 10 hours of battery life (occasional texting, facebook once or twice an hour maybe) to draining the battery in less than 4 with slightly more use.
Click to expand...
Click to collapse
This is true.
But if you have no other option BUT wireless tether (for example the rom you are using is currently so bleeding edge none of the other options work) you can just install setcpu or something similiar and create a screen off profile that keeps you max clock speed much lower. For example, on my heroc, my screen off would be 176/245 - min and max - after trial and error I came to the conclusion that this effectively reduces ALL heat issues caused by wireless tether. Even makes battery life manageable if you can't charge it at the time.
Just an FYI for anybody that's ever in a tight spot. Personally I prefer the native tether option available in AOSP roms, but you never know when you're gonna be in a bind. Seems like every new "wave" of roms results in one or the other working. Lots of times in alpha and early beta builds it's one or the other, it seems. Kernel issues the majority of the time, I believe, but that's neither here nor there, now is it.
Using this now and still horrible for streaming video. Are all tethering apps destined to be incapable of streaming? =(
Jeezimus said:
Using this now and still horrible for streaming video. Are all tethering apps destined to be incapable of streaming? =(
Click to expand...
Click to collapse
Are you still going through the sprint proxy?
Tether
cloverdale said:
Are you still going through the sprint proxy?
Click to expand...
Click to collapse
Hey thanks for posting this. This was needed. However, I am newbie to andriod.
Can you please tell me what do you mean by "place it in home directory". Phones directory or computer??? Where are these codes typed? In program with spaces included?..Do you have to do this all everytime to connect net?
cloverdale said:
Are you still going through the sprint proxy?
Click to expand...
Click to collapse
I am as of now but I've been getting much better speeds as of late with Azilink. It may have just been a fluke that one night. The extra step of the adb code is a bit of a pain, but definitely worth it for streaming. Much appreciated for the share =)
gangbang72 said:
Hey thanks for posting this. This was needed. However, I am newbie to andriod.
Can you please tell me what do you mean by "place it in home directory". Phones directory or computer??? Where are these codes typed? In program with spaces included?..Do you have to do this all everytime to connect net?
Click to expand...
Click to collapse
The home directory is your user directory on your computer. The commands are typed in your computer terminal (or command window for windows users). You will have to type steps 5 and 7 each time you connect. I made a script that allows me to connect by simply typing azilink. I will add this to the OP later today.
Still working on getting this to work.
Sent from my SPH-M920 using Tapatalk
jes24cap said:
Still working on getting this to work.
Sent from my SPH-M920 using Tapatalk
Click to expand...
Click to collapse
Where are you having problems?
wired tether for root users is a lot simpler if you have root. And it barely gets hot, unlike wireless tether. And the latest wireless tether can use WPA2 by the way instead of WEP
I got everything installed on my windows 7 laptop & the app on my phone but couldnt get this to work
draztikrhymez said:
I got everything installed on my windows 7 laptop & the app on my phone but couldnt get this to work
Click to expand...
Click to collapse
I have never used it on windows, but I can try to help. Where are you having problems?
I'm trying to get this setup on my Mac, any help? I have installed Tunnelblick as the OpenVPN client on my computer, it connects and everything says its connected but no internet. Help please?
Sent from my PG06100 using XDA App
foolforfood said:
I'm trying to get this setup on my Mac, any help? I have installed Tunnelblick as the OpenVPN client on my computer, it connects and everything says its connected but no internet. Help please?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
With a MAC you also need to manually set the nameserver to 192.168.56.1 (the phone's NAT IP address). I am not sure how to do this with OSX, but I am sure a quick Google search will tell you.
cloverdale said:
I have never used it on windows, but I can try to help. Where are you having problems?
Click to expand...
Click to collapse
I am not getting a network connection to show up @ all. I have the app running on phone too
danaff37 said:
wired tether for root users is a lot simpler if you have root. And it barely gets hot, unlike wireless tether. And the latest wireless tether can use WPA2 by the way instead of WEP
Click to expand...
Click to collapse
How do i get wired tether to work? It connects, but says no internet connection.

Bluetooth tethering with Tablet S and Wildfire

I have write a script that simpliefies a bluetooth pan connection on the devices in topic.
I have spend a lot of time doing this. Not for writing the script but to find out whats going wrong when connect those devices.
You need ics on phone or wireless tether on honeycomb or others. If you use wireless tether you have to set it to use bluetooth.
So on now copy this script somewhere on your device save it under initpan.sh.
In console chmod 755 initpan.sh
Execute it and yes thats it so easy but so so heavy.
Here is the script:
#!/system/bin/sh
# Setup Handy Network
/system/bin/pand --connect F8B:7F:099:66
/system/bin/ifconfig bnep0 down
dhcpcd bnep0
setprop net.dns1 8.8.8.8
Sent from my Sony Tablet S using XDA Premium HD app
Your sensemilla
I'm not certain on this (haven't used PAN on Android much), but I'm pretty sure that script would need to be changed by whoever wants to use it, since it seems to be hardcoded to the Bluetooth interfaces MAC address which is device-unique.
Also, what are you actually trying to do? In the script, you bring the virtual interface down, then configure it for DHCP, then manually set the Google DNS, then don't bring it back up again? What's actually meant to be going on?

Any way to use a USB WiFi Dongle with the Prime?

So I have recently purchased a USB WiFi dongle (from ASUS actually) for my laptop- primarily because it has the 5 ghz band (which, I realize is overstated, but it's still better than the 2.4 at close distances). And given how weak the wifi is on the prime, I was wondering if there's any way to use the dongle with the tablet dock and to get the system to actually recognize and use it instead of its own wifi. I'm guessing no, but hopefully I'll be pleasantly surprised!
there are some people who have gotten them to work. there is a thread on it. you just have to search through the pages for it. I know one person gotten it to work through ubuntu/linux. by loading up the modules/drivers and setting commands for them. check out the thread already made for it. We suggested to asus to add native support for usb wifi dongles. we have yet to hear a response on it.
KDLMaj said:
USB WiFi dongle (from ASUS actually)
Click to expand...
Click to collapse
Hi, i've a working Wi-Fi dongle on TF201.
what model of dongle do you have?
can you post a "lsusb" output ? ( attach the dongle to a linux box and type lsusb in a terminal )
i will compile the module for you and all you have to do when i will done is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) wpa_supplicant -i wlan1 -c /data/misc/wifi/wpa_supplicant.conf
5) dhcpcd wlan1
i suppose that the new device is wlan1. the interestant thing is that with an external wifi dongle you can put the interface in monitor mode, so you can dump the sorround WPA handshakes while sending deauth packets.
Essentially, building your own kernel is the only sure fire way to add support for your particular dong, i mean dongle.
Sent from my Transformer Prime TF201 using xda premium
For serious?
Sorry guys if he cant handle the search button hes not going to be able to figure out the wifi dongle bit. Just can't be done!
bdawg31 said:
Essentially, building your own kernel is the only sure fire way to add support for your particular dong, i mean dongle.
Sent from my Transformer Prime TF201 using xda premium
Click to expand...
Click to collapse
pileot said:
For serious?
Sorry guys if he cant handle the search button hes not going to be able to figure out the wifi dongle bit. Just can't be done!
Click to expand...
Click to collapse
maybe i don't understand your posts....why "Just can't be done!" ?
I have a WG111v3 [ RTL8187 chipset ] working on TF201.
I use it when wifi signal is weak or for sniffing on wifi networks.
....mmmm idea!
wait my next post!
here you are:
http://forum.xda-developers.com/showthread.php?t=1711805
here you can find all USB wifi modules.
byeee!
help
tux_mind said:
Hi, i've a working Wi-Fi dongle on TF201.
what model of dongle do you have?
can you post a "lsusb" output ? ( attach the dongle to a linux box and type lsusb in a terminal )
i will compile the module for you and all you have to do when i will done is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) wpa_supplicant -i wlan1 -c /data/misc/wifi/wpa_supplicant.conf
5) dhcpcd wlan1
i suppose that the new device is wlan1. the interestant thing is that with an external wifi dongle you can put the interface in monitor mode, so you can dump the sorround WPA handshakes while sending deauth packets.
Click to expand...
Click to collapse
hello,
I compiled my drivers but how can I force Android to recognize my usb instead of the onboard card? 'cause I can browse the web and also watch videos but I cannot use the market or download files from browser... or please tell how to config my wpa_supplicant.conf??? please I need some light over here.... thanks

native adb

Does anyone know how to connect your phone, to its own native adb. If your running 4.0 or better like the new 4.0.1 sense on evo 4g lte you have the native adb, in the terminal you can start it by typing adb start-server, but I cannot connect the phone to it.
This is nice to use to connect to other phones and use it as a debug station, but does anyone know how to connect to the phones adb server from the terminal on its own phone. When I start the server it says its listening on 5083 I have tried adb forward tcp:5555 tcp:55, tried adb tcpip 5555, but none of the forwarding ports seems to work. I have started adb on the phone and adb over wifi but still do not see the ip in adb.
Some help on this would be nice, I will keep thinking, but any help would be nice.
Some ideas might be to start a wifi server using the phones wifi tether, or hotspot to connect to itself
ip addr add 192.168.1.10/24 dev eth0
ip addr add 192.168.1.10/24 dev wlan0
maybe we can manually add and connect the devices threw wifi hotspot or tether with this. someone want to take this on and get back to me

Categories

Resources