yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] knoxbrder:
1. framebuffer usually doesn't work on newer devices; until google releases another method I think we are going to have to live with snapshot.

2. I have only seen this happen when the device shuts off the screen (goes to sleep). If the device is just sleeping, try hitting End to power it on. If the device is awake and active, the only thing that should stop the draw events is if you hit Alt-P. You could try hitting Alt-P (or Alt Alt-P seems like works better) to turn on draw events. If Alt-P doesn't fix it and the screen is on, sounds like a bug I haven't seen. Let me know if you can reproduce it after trying these suggestions and I will look into it.

3. The GUI "service" is actually supposed to restart itself, but there may be a bug there that Scotty1 is seeing. However, the server itself is not managed by Android since it is a command line app and I have never seen it get killed by the OS. However, it could certainly crash if I have a bug :-) I will look into a restart option if people are seeing the server crash occasionally. But, I would rather people point out the crashes so I can fix them!

Thanks for your input. I always like considered suggestions and feedback.

As far as donations I would like to suggest you support Cyanogenmod and the various rooters. Without them we wouldn't even be able to run VNC servers!
[Android Apps and Games] Scotty1:
Hi knoxbrder:

I am probably misunderstanding what you mean by "the service" but, just in case I've been unclear; the server ITSELF seems to be doing exactly what it should (it turns on in response to the START command, and turns off after a STOP command). The problem is that the server status (on / off) is not properly displayed by the widget or by the status bar icon. All the best !
[Android Apps and Games] knoxbrder:
I think I understand. It is the service that handles updating the server status in the notification and widgets. So even though the server comes and goes, the service is not running to display the changes to you.
[Android Apps and Games] krismann:
Finally here's log file from my Veolo.

I don't know where to look for but I hope you do :D

Can't wait to get this running...
[Android Apps and Games] knoxbrder:
I don't see the server trying to start at all in the log file.

Do you have adb or connectbot?

Try running /data/data/com.mrk2012.android.preferences/vncs and posting the output. (I would try adb first if you have it)
[Android Apps and Games] lupoalberto12:
Wonderful with "TightVNC", Nexus S with ICS 4.0.4 stock and Matr1x Kernel.

Thanks.

Bye!

! :) !
[Android Apps and Games] genecyber:
Problems with VNCSharp library

for some reason I'm getting a brightness issue when using vncsharp viewer with your server and using hextile encoding. Any directions you suggest I go?
[Android Apps and Games] knoxbrder:
Can you post a screenshot?
[Android Apps and Games] suffer1989:
Widget update frequency

Your first post mentioned the ability to start an activity, can I use tasker to start the VNC server upon connecting to my home WIFI network ?

EDIT : Apparently you can.

One more thing though, having the widget on a home screen, personally, I think it refreshes the status WAY to often, like every 3 seconds. Is there any way to modify a setting to have it check every ....30s or perhaps 1-2 minutes ? Possibly to disable checking and just have the start/stop 1x4 Widget there ? The reason I want a lowered frequency is mainly because I want to squeeze out as much battery as I can.
[Android Apps and Games] knoxbrder:
Glad you got the tasker intent to work.

If you set the "Notification Refresh Time" in the App you can set the refresh rate to 5,10,15,30,60 seconds. This applies to the notification bar and the widgets.

If you don't want any update, choose the menu option "Stop Notifications / Exit" and the service that handles the updates exits until the next time you start the App.
[Android Apps and Games] Scotty1:
Any progress on the "failure to refresh" widget issue when you start the server with Android intent?? Now that you have an ICS phone - do you see it too, or IIJM?
[Android Apps and Games] knoxbrder:
I don't VNC to my phone that often, however, I have seen it on the tablet which I connect to all the time (from the phone or laptop).

I haven't worked on the code in a couple weeks between work and traveling/vacation. It's on my list to look at this week along with the web server :-)
[Android Apps and Games] Scotty1:
OK, thanks !
[Android Apps and Games] knoxbrder:
Version 1.85 in this post

1. Connect to your device from a java enabled web browser with something like http://192.168.0.8:5801 if your normal port is 5901. The downloaded jar supports most things the standalone vnc clients support.

I had to map some extra keys for the java client:

F1 - menu

F2 - pause/unpause graphics

F3 - size

F4 - rotate

With the web downloaded jar I have found that when you rotate you usually need to resize the display window by a pixel to force it to redraw in the new size. I think I need to look for an updated jar soon because no other vnc viewers I have exhibit the problem.

2. I tweaked the notifications/widgets slightly to look better on some rotations and displays.

3. I found/fixed a small bug with the refresh code, hopefully that will a) keep the widgets/notifications updating unless you stopped them from the menu and b) fix the "VNCPrefs has Stopped" display. (I have been pounding my ICS phone over VNC for hours playing games, web browsing, updating apps, installing apps, navigating, playing videos, music, Netflix, Dish Remote, etc. Haven't seen any issues with updates and no "Stopped" messages.

Let me know how it goes.
[Android Apps and Games] Scotty1:
Many thanks Knoxbrder. Just installed 185, can confirm that the widget now refreshes correctly :-) I'll get back to you re/ the "stopped" popups (have to use it for a while before commenting). All the best, Scotty1
[Android Apps and Games] lupoalberto12:
Simply wonderful.

Thanks.

Edit: I tried F4 with TightVNC client:

Other shortcuts work fine.

Bye!

! :) !
[Android Apps and Games] knoxbrder:
That happens to me sometimes too. Just reconnect and it will be rotated. I will look at it this weekend.
[Android Apps and Games] Scotty1:
Sad to say, I have to change this comment. It was true when written - I was in my office (where I want to server to be on) and when I updated to 185, and toggled using Llama, the widget correctly showed on or off.

When I left work, Llama turned off the server, and the widget showed off (correct). HOWEVER, when I arrived at the office yesterday, Llama turned on my WiFi and turned on the server (I know this because I could connect using TightVNC) BUT the widget showed "off". When I toggled using Llama the server itself responded correctly, but the widget didn't refresh.

I kept a close eye on it this morning.

Arrived at work, Llama turned WiFi on, and turned server on; widget did not refresh

Toggled using Llama, same as yesterday, no joy. SO

With the server running (but widget showing "off)

I MANUALLY toggled the server (by tapping the widget); server off, widget shows off (that's correct)

Again manually toggled; server on, widget shows on (correct)

And NOW toggling with Llama works exactly as intended - I can toggle on & off to my heart's content and the widget refreshes just fine. This is what I saw when I first installed v185 (I had already manually toggled the widget that morning)

.

So it's behaving as though, if the server if off for a long time (as happens when I leave the office) the widget loses focus and it needs a "wake up call" that has to be delivered manually; once it's awake, it performs fine.

Make any sense?

BTW, still getting "stopped" popups, but they don't bother me....
[Android Apps and Games] knoxbrder:
Version 1.86 in this post

Another attempt to keep the updates working and to stop the "Stopped" popups.

I WILL OVERCOME!

Let me know how it goes.
[Android Apps and Games] Scotty1:
Thanks very much :-)

I've installed it and it's behaving as intended - that is, the widget is responding properly to Llama changes. However, right now I am at work and - as explained above - the same happened with 185, so I'll wait until I leave / return to work, and see what happens re/ the "wake up call". That won't happen until Monday, so I will post back on Monday or Tuesday.

All the best, Scotty1
[Android Apps and Games] knoxbrder:
The crash looks like a race condition with my code that stops the server, extracts a (new) server from the apk, and then starts the (new) server again. Is this with version 1.86 from a few posts above? If not, will you try it?

What is your keyboard device set to? Make sure you have tried "uinput", not just "input".
[Android Apps and Games] Scotty1:
1.86 - widget server status working well

Looking good. Yesterday and today (Tuesday) I arrived at work, Llama did its magic, turning on my WiFi and the VNC server, and both times the widget correctly changed from showing "off" to showing "on". Good work!

And as an added bonus, I haven't seen a "stopped" popup since I installed 186.

Thanks Knoxbrder !
[Android Apps and Games] knoxbrder:
Great to hear. I will migrate 1.86 to the current version on the main page.
[Android Apps and Games] jroets:
Ok, I tried 1.86. Behavior is the same regarding starting/stopping and the keyboard. My keyboard device is set to "uinput".
[Android Apps and Games] knoxbrder:
Is this a custom ROM? I believe there should be a later ICS release for your phone. My devices are 4.0.3.

Both of these problems should be corrected in the 1.86 release with current ICS ROMS. There are a few GN owners on here that don't see these problems; I'm not sure what to try to do to fix it other than have you check for a ROM update.

If a ROM update doesn't fix it; try uninstalling my software (VNCS), reboot the phone, reinstall and restart my program.
[Android Apps and Games] knoxbrder:
New version 1.3 in first post.

- Java GUI to start / stop, configure

- added start at boot option

- added password option (normal weak VNC password; you should really use SSH if on a public network)

- added port # option
[Android Apps and Games] dontfeedphils:
Been trying it out on my LTE Galaxy Nexus and it seems to sort of work. I'm starting the server through ADB with the options that you specify on the OP and connecting through USB with TightVNC. I'm able to see the screen just fine and send inputs (somewhat). When I try to click it seems as if even though I've let up on the button on the mouse that the phone still acts like I'm pressing, which means that I can't really do anything too well.

I'm a little new to most of this so I'm too sure how to gather any info on what's actually happening, but if you can help me out I can try and get some info from my end that could help.

(BTW, I'm rooted and running Android Open Kang on my phone, it's 4.0.3 based.)
[Android Apps and Games] knoxbrder:
I think the other person trying a Nexus had the same kind of problem.

I don't have this phone so it is a bit tough to debug.

But try this assuming event3 is your touch device:

- start the vnc server

- connect with vnc viewer

- move the mouse over the vnc window

- run "adb od -x /dev/input/event3" in a shell

- carefully press/release the mouse on the vnc window with as little movement as possible

- stop the "od" command and post the output

I already have the "real" touch events from the other user.

Now I can compare the events I send to the real ones and note the differences.

Ideally we want to capture a single mouse move event, button down, button up event. You may have to try several times to get the right output, but it will probably be between 10 and 20 lines when you get just the right amount of data.
[Android Apps and Games] dontfeedphils:
Here's a screenshot of one single click event, I did it on my laptop so the mouse moving wasn't a concern, so this should be just a click down and up.

Let me know if there's more I can do to help, I'm really looking forward to having a working solution.
[Android Apps and Games] JustusIV:
Super interested in this!!!

Having the same issues on my galaxy nexus. seems like input doesnt work.

Would be willing to test anything just let me know.

Thank you!

Will donate to this cause.
[Android Apps and Games] knoxbrder:
dontfeedphils:

That isn't quite enough information. What you caught with the 0x35 and 0x36 is just the x and y locations. There should be more like 10 lines to capture a button down, x/y location, button release. Can you try again? Remember I want to capture an event from thru the vnc connection, not touching the actual touchscreen since we already have that data from another user. And if this is really all that came thru with a vnc button down/up then my code is really screwed up :-) Maybe try moving the mouse just a tad and clicking. Thanks!

I'm assuming you did tick the setting for Galaxy Nexus?
[Android Apps and Games] JustusIV:
After some trail and error i got up to the same point, its taking inputs and stuff but it seems to be clicking way to often or something.
[Android Apps and Games] dontfeedphils:
I went back through and tried to grab another single-click event. I also grabbed some info from what seems to be happening most of the time, as soon as I move the mouse on the VNC window its as if the phone is receiving a phantom click, and not just a single click, but a press and hold.

On the longer info I attached I started with the cursor in the VNC window and just moved the mouse and after/while moving the mouse the home screen menu pops up (the menu that shows up when you long press on the home screen). Also, when I try to click on any single app on my home screen it acts as if I've long pressed on the app and I'm still holding it. So when I try to click on something it doesn't open and when I try to move the mouse away I end up dragging the app (shortcut) with me because the phone believes that I long pressed on it and that I'm still holding it.

Hope this helps a little bit more. Let me know if there's anymore info I can grab, I could even grab some screen casts (videos) of it happening on my desktop, with the VNC window displayed and the output window displayed as well.
[Android Apps and Games] JustusIV:
Well put.

That describes what i am seeing to a t.
[Android Apps and Games] knoxbrder:
Try the new 1.31 version for Galaxy Nexus tweaks. Let me know how it goes.
[Android Apps and Games] r4736:
x2vnc

Is there a switch to disable video? I am trying to use x2vnc to share my mouse and keyboard with my Transformer Prime. Everything works, but the cursor lags so much it is unusable. knoxbrder I saw you were trying to do the same exact thing as me in the other VNC servers thread.
[Android Apps and Games] dontfeedphils:
I tried this version out (just starting it through ADB) and it seems to be doing about the same thing.
[Android Apps and Games] JustusIV:
Appears to me that it is still doing some sort of holding and clicking when it isn't supposed to.

In the about it doesn't show that its updated to 1.31.

Just wanted to make sure i got the proper install.
[Android Apps and Games] knoxbrder:
justusiv:

If you check the command line vncs program it should show 1.31 with the -h option. I didn't rev the gui since I didn't change anything there.

r4736:

Press alt-p to toggle the graphics refresh off/on. (P is for Pause graphics).

Check the first post for other special keys.

dontfeedphils:

Can you send me some "od" output using vnc?

This is hard to debug remotely. I need to find someone local to let me borrow their phone for 15 minutes...
[Android Apps and Games] dontfeedphils:
I attached a txt file with like 4 different scenarios, hopefully it'll help.
[Android Apps and Games] r4736:
Sorry I didn't see that. But I tried it and there was no change. I tried alt-p on my win2vnc computers keyboard, my TFP keyboard. I then connected with realvnc with the same results. Only thing I noticed is when connected with realvnc I do not see my TFP I see it's boot screen. It does not matter what is on my Transformer's screen that is all that shows when acting as a VNC server.
[Android Apps and Games] knoxbrder:
dontfeedphils:

thanks for the data I will try to look at it tomorrow

r4736:

- If you have a TFP as I do. Make sure you DO NOT check or specify the framebuffer option. That should fix the display not coming thru VNC.

- pressing Alt-P (case doesn't matter) on the client side (windows in your case) should pause the update; I just tried it with that version. Make sure the mouse is over the vnc window and it has focus. This will stop the jerky update of continuous video or live wallpaper on the TFP.

- however, even with paused video, the pointer and keyboard events are slower than I would like. I can fix the pointer events somewhat by fine tuning the amount I drop (vnc sends a TON of pointer events and I plan on working on this next week). The best way to improve the key lag "some" on the TFP with an attached keyboard is to specify /dev/input/event4 as the keyboard device
[Android Apps and Games] knoxbrder:
New versions 1.32 for Galaxy Nexus tests.
[Android Apps and Games] ArmanUV:
So what fps are you guys getting with this?
[Android Apps and Games] knoxbrder:
I see the guy doing the other server has a new version in the market if you guys haven't seen it yet:

http://xdaforums.com/showthread.php?t=710805&goto=newpost
[Android Apps and Games] suffer1989:
I prefer yours. His freezes when I try to disable the server. (Nexus S, Android 4.04, CyberGR-MOD, with AIR 4.0 Kernel)
[Android Apps and Games] Scotty1:
Decent of you to point this out, but I am more than happy with yours (and with how responsive you've been to questions, requests, etc.)
[Android Apps and Games] keyra74:
something weird is happening here, before i could unlock phone by pressing right mouse button but now it does nothing when phone is asleep

htc evo 3D gsm, ics 4.0.3

forget it, it's due to some roms
[Android Apps and Games] frenccw:
Not requiring any support, but just a heads up that the app doesn't seem to work on Jelly Bean :) Also you might need to unbold the font in the notification area it is increased in size in Jelly Bean hence you can't see if the server is running or not.

I used debug mode to ensure that the VNC Server is running but i can't seem to connect.
[Android Apps and Games] keyra74:
any change to give a look at my problem?

http://xdaforums.com/showpost.php?p=28124618&postcount=901
[Android Apps and Games] JustusIV:
Do i dare ask about JB support :P
[Android Apps and Games] biosxjj:
hello，can you post the source code for android，I want modified it

for other device
[Android Apps and Games] xleomoe:
I had initial connection issues and notification says not running even though VNC is actually running and I am connected.

Also, shift seems to work the go back button. Any idea how to fix that?

Keyboard is suprisingly fast and responsive on a galaxy s3 GT-I9300. Amazing stuff.

Seriously thanks, amazing job.
[Android Apps and Games] knoxbrder:
The real world has been keeping me hopping, so new new changes.

If anyone with a Jelly Bean machine can tell me what does / doesn't work I can try to fix the problem(s). I do not have a JB device yet.

For those wanting the source I have cleaned up the GUI front end, but not finished the back end clean up. And that is where the device specific stuff is.

For those with the S3, is it a standard ROM that is just rooted? or a special ROM? are you using uinput? I have never heard of shift doing "back"; what viewers have you tried?
[Android Apps and Games] honelnik:
vnc server name

hi all,

do you know if there's any way to rename my VNC server? when I connect to my device it says "Android" I would want to have this on multiple devices, is there any way to give them separate names?

Thank you
[Android Apps and Games] knoxbrder:
There is currently no way to change the name; but that should be a simple addition. I will add it tonight or tomorrow.

Anyone out there with Jelly Bean? Sounds like I may need to make some changes for it, but I don't have it.
[Android Apps and Games] JustusIV:
I am running paranoid android JB on my nexus....

what do you want me to test?
[Android Apps and Games] knoxbrder:
From the posts it sounded like my server didn't work with JB. Is it working fine for you? Any bugs?
[Android Apps and Games] JustusIV:
Sorry didnt read back.... Will test when i get some free time.
[Android Apps and Games] JustusIV:
I couldn't get it to start.
[Android Apps and Games] frenccw:
Screenshots on Jelly Bean attached. As you can see the notification doesn't fit anymore because Android uses a bigger light font now to replace bolds. In debug it says the server has started but i can't access it at all.
[Android Apps and Games] Edwrib:
Same here, no conn in JB.

Sent from my Galaxy Nexus
[Android Apps and Games] 九千.:
Thank for very much for knoxbrder. I would have been pretty stuck without you.

The DroidVNC server stops accepting keyboard input after reflashing Samsung Galaxy Tab 7.7 (P6800 Hong Kong version) with ICS update. I tried both Hong Kong and Open Austra firmware, and all uinput devices in vain.

Only yours works. Also thanks for all the comprehensive instructions and explanation on the flags. Great work here man.
[Android Apps and Games] keyra74:
i see you're back on your thread so i'd like to know if you can resolve that

http://xdaforums.com/showpost.php?p=28124618&postcount=901
[Android Apps and Games] knoxbrder:
Can one of you JB guys try to start the server from adb or a shell so you can see the output and post the output here?
[Android Apps and Games] knoxbrder:
I will try to shrink the font on the next update. Don't have JB so it will be hit and miss.
[Android Apps and Games] knoxbrder:
I don't understand what you are asking about.

Are you wanting to know how to wake your phone from a VNC client?

If so, there is no guarantee it will work on all devices, but usually one of the keys: page up/page down/end seems to wake up my devices running stock ROM or CM.
[Android Apps and Games] keyra74:
ok i'll explain better so

when i use some roms on my htc evo 3D like the one i'm using now i can wake up screen with right button click, but some with modded powermenu seem to block that

every others functions buttons work

i'll try the page up down thing

works on "ok right click rom", gonna backup and install a non working one
[Android Apps and Games] frenccw:
Yup I can keep posting screenshots of your updates. Let me know how to get the output from starting server from adb/shell.

Edit: Just saw the instructions on OP. I don't understand half of it but i'll give it a shot

Am i doing this right? Forgive my noobness
[Android Apps and Games] keyra74:
normally you don't need that anymore, there's a start / stop icone
[Android Apps and Games] frenccw:
Thanks bro but i'm just trying to troubleshoot on JB as per OP's instructions above ;)
[Android Apps and Games] knoxbrder:
Thanks for trying to capture the output!

If you can start adb from Linux or Windows you are most of the way there!

From the adb prompt paste "/data/data/com.mrk2012.android.preferences/vncs" (without the "") and see what is spit out. You can see all the options by adding -h to the end. If you want, you can add all the exact options that appear in the gui start screen if you have debug turned on in the gui. (like in your previous screenshot)

Thanks again!
[Android Apps and Games] frenccw:
Still doesn't work! Unless i'm doing something wrong...
[Android Apps and Games] knoxbrder:
What is the output? Did it start but you can't connect?
[Android Apps and Games] frenccw:
Heh i knew i must be doing something wrong. I have no idea what output you are referring to. Okay basically what I did:

1. Connect phone to USB

2. Open command prompt at android tools

3. "adb shell"

4. "/data/data/com.mrk2012.android.preferences/vncs"

5. Results = screenshot attached earlier

Am i doing this steps right?
[Android Apps and Games] knoxbrder:
for some reason that picture didn't come through before. But it looks like I will need to download a jelly bean build and fix the library.