yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] matthelm:
I would like to see a connect on SSID only function. (and disconnect if that SSID isn't hooked up)

---------- Post added at 10:16 AM ---------- Previous post was at 10:13 AM ----------

Hey, the latest version is working on my Droid Bionic. I'm not sure what got it working, but it might have been the weird port number I was using to allow me to use the old VNC at the same time.
[Android Apps and Games] aeros0ul:
can somebody point me to the command to use this at my motorola xoom?

everything i get is a scattered portrait picture of the xoom.

i´ve played around with the settings but cant get it.

my device

motorola xoom

Android 4.0.3

Kernel 2.6.39.4-Tiamat-3.0.7

thanks in advance
[Android Apps and Games] rowntreerob:
shut down for server

GREAT PRODUCT!

one nb faq... How to shut it down correctly because the port 5901 continues in use on my nexus one after i shut down the adb shell .

To Start:

[CODE]./vncs -t /dev/input/event3[/CODE]

above in an adb shell session

To Stop:

Control C the shell to close

Im doing something wrong on the close because netStat on the phone shows the ports still in use... i've used 5901, 5910

netstat
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5910 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:13010 0.0.0.0:* CLOSE
tcp6 0 0 ::ffff:192.168.1.125:56709 ::ffff:173.194.79.188:5228 ESTABLISHED
tcp6 0 1 ::ffff:192.168.1.125:48019 ::ffff:74.125.224.35:443 CLOSE_WAIT
tcp6 0 1 ::ffff:192.168.1.125:36024 ::ffff:74.125.224.49:443 CLOSE_WAIT
tcp6 0 1 ::ffff:192.168.1.125:41495 ::ffff:74.125.224.115:443 CLOSE_WAIT
tcp6 0 1 ::ffff:192.168.1.125:38738 ::ffff:74.125.224.84:80 CLOSE_WAIT
tcp6 0 0 ::ffff:192.168.1.125:42138 ::ffff:74.125.224.135:443 ESTABLISHED

-- I made stupid mistake with shell .. this is resolved
[Android Apps and Games] knoxbrder:
Version 1.60 in this post

Version 1.60 in this post.

Lots of new features! If it seems stable I will move it to the first post.

new vncs command line options:

-a averages a 2x2 section of pixels in half and quarter zoom (maybe 4x4 in quarter mode later)

-R host: port (no space between host , : and port) to connect to a host running vncviewer in listen mode (usually -listen on the vncviewer command line).

new gui options:

Use Average in zoom modes. (compare the original.png and averaged.png images)

Connect to remote viewer in listen mode.

Show Configure Notification.

Show Start/Stop Notification. Includes status of server: not running or running and PID if running.

Notification Refresh Time (5,10,15,30,60 seconds). This is polled for now so I am not sure how this will effect battery life.

Averaging does slow it down (at least for now). And for now you have to restart the server for the option to take effect.

On ICS devices (maybe Honeycomb?) the Notifications are shown together since individual buttons in a Notification can launch separate intents. On older devices they are shown as separate Notifications.

You need to use the GUI if you want the notifications since it creates them, not the command line app.

The remote host option should allow a cellular device to connect to your home computer since you normally have a non-NAT address at home. (at least you can route a port thru your home firewall). Even if you connect in remote/listen mode you can still connect the normal way if the remote connection closes or fails.

Let me know how it works!
[Android Apps and Games] frenccw:
Thanks! Awesome update once again. Scaled rendering is beautiful! Looks better than scaling on the viewer prog and the performance is quite comparable

Feedback on the notifiication: Works fine but kind of defeats the purpose if it launches the app when you press start/stop. One would assume that it will just happen in the background. Also, it's kind of weird that the notification bar doesn't go away once you tap Configure. In addition, since the notification is permanent we probably need an exit option :cool:

IMO you should make the notification more simple like the old droid vnc server ie. only there to notify when server is running and tapping it launches the app. (unless you can make the start/stop work in bg :D)

Will be using it for the rest of the day and will report back if there are any instabilities.

PS. Is there any shortcuts the stop the server? From my exp. Alt-Q only ends the connection on the viewer side but the server continues to run
[Android Apps and Games] knoxbrder:
- I am working on making it stop/start in the background; just figured you guys would want it early. I will probably make it an option since I personally like the feedback of the app starting. It is still quicker than hitting home and finding an app shortcut. And you can just hit back to return to where you were; which you can't do if you hit home.

- you can uncheck the options to hide the notifications

- seriously? an exit option? :-) No one understands how the Android GUI is supposed to work do they? If the memory is needed, the App is closed and memory reclaimed. But I will add it to the list since I have seen many other developers get nagged about the lack of exit option. Do you expect the GUI exit to close the background app or not, and to close notifications?

- like having it run all the time even when the server is not running; that way you can start it quickly and then return to where you were. Again, quicker than having to hit home and find the app. And its an option to turn notifications on/off.

- I didn't think a way to accidentally close down the server would be a good idea; but I will add a shortcut to stop it from the viewer. You can stop it from the app or the notification (and a widget sooner or later) for now.

Let me know if you any problems or other ideas.
[Android Apps and Games] frenccw:
Haha what i meant by an exit option = stop server + hide the notifications. I guess it ties together with my preference of having the notification disappear when i stop the server. It's working more like a widget at the moment (which i understand is what some ppl like as well). However, it would be more intuitive to have an exit button (maybe when pressing the menu button?) rather than scrolling and finding the checkbox. It will also save you the nagging from others even if its technically doesn't kill the app lol

My suggestion then is to replace the Configure button on the notification to HIDE (happy now? :D) since i reckon most ppl don't need to configure once they get the best settings down
[Android Apps and Games] knoxbrder:
Got it.

Since there is already a "Stop Server" button in the UI menu, I'll add a "Stop Notifications" button in the UI menu.

Since the "Start Server" button is actually stop and start I'm going to rename it "(re)Start Server".
[Android Apps and Games] knoxbrder:
Version 1.61

Alt-A to toggle averaging on/off. (remember it only makes a difference if half or quarter size)

Alt-X to exit the server.

Added "Stop Notifications/Exit" to the GUI menu. This does not stop the server if it is running. Use the "Stop Server" menu first if you want to stop absolutely everything.
[Android Apps and Games] frenccw:
Would be convenient to allow access to the GUI menu on the command line screen. (Currently menu button doesn't do anything)

Alt-X is working as advertised!

I have more pedantic feedbacks about the UI but i shall let others the chance to voice their opinions :cool: Thanks again for the awesome job!
[Android Apps and Games] knoxbrder:
The menu only works on the Preferences screen.

The other screens are really only for debugging (as you mentioned you really want them all to happen in the background).

I will be hiding all the other screens behind a debug flag at some point.

That will also take care of the launching from the Notifications in the background as well.
[Android Apps and Games] rupa:
Running 1.61 on Galaxy Nexus. I somehow got into a never ending loop of vncprefs starting the server over and over again. Going to vncprefs would show the configure screen, I'd do a stop server and the screen would show the start server screen and then the help. I'd hit the back button and this would repeat over and over again. Sometimes I'd see a "unused screen" rather than starting but that would quickly be replaced with the starting screen and subsequent help popup. Not quite sure how I got it in that mode.

This was initially with notification and start/stop in notification turned on. I thought maybe that was causing the problem, but due to the continuous start issue I couldn't tell much more beyond that.

More info after reboot.

---------- Post added at 05:55 PM ---------- Previous post was at 05:49 PM ----------

After reboot.

Running "Stop Server" from the menu actually launches vncs. If I press "back" from the help screen, I see the normal cmd window. If I wait for a few seconds there, then I get the help screen again automatically. Hitting back again, I then see "Unused screen..." and then after a few seconds I see the normal starting vncs and then the help. Hitting back three times at this point dismisses the help, then dismisses the vncs launch, and finally dismisses the unused screen and I'm back at the configure screen.

At this point vncs is running.

Restart server has the same behavior with the exception of the "Unused screen..." screen.

This is with both notification options turned off.

Regarding the notification thingie. I'm hoping that once "stop" works again it frees up the input device. 'cause that is the only way for me to get a soft keyboard working on this Galaxy Nexus. vncs running == hardware keyboard, no soft keyboard available. vncs not running == soft keyboard.
[Android Apps and Games] frenccw:
Same thing happened to me as well. I stopped server, and then tapped exit. But for some reason there is a VNC server window "under" it so it starts the app and notification again and turns into an infinite loop. I long pressed back to kill it :confused: To clarify, the server doesn't start in the loop just the notification
[Android Apps and Games] knoxbrder:
I should have a new version tonight.

Fixed most of the navigation issues.

Only thing I would like to add and can't figure out is how to make the notification action run without bringing my app to the front. So far the best I can do is let it come to the front and then exit quickly which blinks the screen twice and is pretty hacky.

Anyone have a code snippet to make a Notification Intent call something besides an Activity? Android always wants to show my app when an Activity runs (I guess that is basically what an Activity does). I'll Google it later if no one has a quick example.
[Android Apps and Games] knoxbrder:
Version 1.62 in this post.

- hopefully the menus/activity history/notifications all work more as expected

- most extra activities are hidden between the new debug flag

Let me know.

Code is Really hacked up to get something out tonight. So nothing to the first post until I have some clean up time.
[Android Apps and Games] frenccw:
Notifications still repeats itself once in a while. Happened to me twice already. Can't find a way to reproduce it consistently though. The second time i opened the app and exited without starting the server and the notification started itself again. (Doesn't loop though which is great, exiting again seems to do the job)

Start/stop working great in the bg. :D Can you make the android notification bar go away when you tap Configure?

Update: Only happens maybe 1 out of 10 times, i think you can just count them as freak accidents? ;)
[Android Apps and Games] knoxbrder:
Race condition. I will look at it tomorrow.
[Android Apps and Games] knoxbrder:
Version 1.63.

Made an attempt to fix the race condition that occurred when stopping the notifications and exiting.
[Android Apps and Games] knoxbrder:
GUI Version 1.64.

- Hide all extra GUI dialogs and logging behind the debug flag.

- Collapse the Status Bar when you choose Configure from the Notification.

- Better cleanup when choosing to stop Notifications/Exit from the menu.
[Android Apps and Games] knoxbrder:
Todo list now something like:

+ (done) icon on the notification bar to show if the server is running (and to start/stop the server

+ (done) connect to client in listen mode (helps with NAT and firewalls)

+ (done) better scaling (will slow down some, but may just cancel out the scaling speed advantage, and will look better while still taking up less room)

+ (done) better IPC (there really isn't any right now once vncs starts) (I've decided that monitoring if the server is running or not is good enough so the programs don't "need" each other)

- stomp bugs

- start server automatically on certain SSID

- other ways to start/stop vncs: text message, email, chrome2phone, widget

- decide which color method to use (I'm leaning towards specifying RGB order and nothing else; take out -s and change -c to RGB, BGR, etc)

- instead of adding more IPC I'm just going to add an option to save all vncs output to a file for viewing; I don't think I really want the command line program to talk to the java program since I don't want to force the GUI to stay in memory or deal with cases where it may or may not be in memory

- finish code/docs cleanup

- release code back to original projects or start new project

- look at x86 version (at least to find out how much effort this will be)
[Android Apps and Games] Scotty1:
Widget will be great - I am pretty much out of room on my notification bar....
[Android Apps and Games] aeros0ul:
hi

take a look at my screenshot. thats what i get from my motorola xoom.

how could i set up the server to deliver the real screen size?

thanks in advance

daniel
[Android Apps and Games] knoxbrder:
If using the gui please turn on debugging in preferences and post the cmd: shown when you start the server from the app. If using the command line you used.

Did you try toggling the framebuffer and restarting the server?
[Android Apps and Games] aeros0ul:
thats the output via adb

1|root@android:/data/local # ./vncs -x 1280 -y 800
./vncs -x 1280 -y 800
./vncs Version 1.50
need init
Initializing framebuffer device /dev/graphics/fb0...
cannot open fb device /dev/graphics/fb0
ioctl error
xres=480, yres=800, xresv=480, yresv=1600, xoffs=0, yoffs=800, bpp=32
--Initializing gingerbread access method--
screenshot info: 32 1280 800 4096000
bInitializing VNC server:
scale: 1
width: 480
height: 800
bpp: 32
port: 5901
Initializing keyboard device input ...
Initializing touch device /dev/input/event3 ...
cannot get ABS_X info, Invalid argument

if i try to start the server via the gui and select framebuffer, the server doesnt even start. no messages on debug screen.

thanks for your help
[Android Apps and Games] knoxbrder:
For some reason the server is setting up the wrong size. Try the latest version a few posts above just to see if it works better. If it doesn't work better, I will look at that auto-detect code when I get home later.

And specify -k uinput on the command line.
[Android Apps and Games] aeros0ul:
Unfortunately, not even the latest version.

root@android:/data/local # ./vncs -k uinput -x 1280 -y 800
./vncs -k uinput -x 1280 -y 800
./vncs Version 1.63
need init
Initializing framebuffer device /dev/graphics/fb0...
cannot open fb device /dev/graphics/fb0
ioctl error
xres=480, yres=800, xresv=480, yresv=1600, xoffs=0, yoffs=800, bpp=32
--Initializing gingerbread access method--
screenshot info: 32 1280 800 4096000
bInitializing VNC server:
scale: 1
width: 480
height: 800
bpp: 32
port: 5901
Initializing keyboard device uinput ...
init keyboard device as uinput
---Initializing uinput...---
---Initializing uinput...---
Not using TOUCH_DEVICE because of uinput
Initializing server...
rfbGetScreen bpp: 32
05/04/2012 01:09:23 Listening for VNC connections on TCP port 5901
16 8 8 8 0 8
05/04/2012 01:09:36 Got connection from client 192.168.178.99
05/04/2012 01:09:36 other clients:
05/04/2012 01:09:37 Client Protocol Version 3.8
05/04/2012 01:09:37 Protocol version sent 3.8, using 3.8
05/04/2012 01:09:37 rfbProcessClientSecurityType: executing handler for type 1
05/04/2012 01:09:37 rfbProcessClientSecurityType: returning securityResult for
client rfb version >= 3.8
05/04/2012 01:09:37 Pixel format for client 192.168.178.99:
05/04/2012 01:09:37 8 bpp, depth 8
05/04/2012 01:09:37 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
05/04/2012 01:09:37 Enabling full-color cursor updates for client 192.168.178.9
9
05/04/2012 01:09:37 Enabling NewFBSize protocol extension for client 192.168.17
8.99
05/04/2012 01:09:37 Using ZRLE encoding for client 192.168.178.99
05/04/2012 01:09:52 Client 192.168.178.99 gone
05/04/2012 01:09:52 Statistics events Transmit/ RawEquiv ( saved
)
05/04/2012 01:09:52 FramebufferUpdate : 1 | 0/ 0 ( 0.0%
)
05/04/2012 01:09:52 ZRLE : 1 | 28367/ 384000 ( 92.6%
)
05/04/2012 01:09:52 RichCursor : 1 | 87/ 87 ( 0.0%
)
05/04/2012 01:09:52 TOTALS : 3 | 28454/ 384087 ( 92.6%
)
05/04/2012 01:09:52 Statistics events Received/ RawEquiv ( saved
)
05/04/2012 01:09:52 PointerEvent : 15 | 90/ 90 ( 0.0%
)
05/04/2012 01:09:52 FramebufferUpdate : 2 | 20/ 20 ( 0.0%
)
05/04/2012 01:09:52 SetEncodings : 1 | 32/ 32 ( 0.0%
)
05/04/2012 01:09:52 SetPixelFormat : 1 | 20/ 20 ( 0.0%
)
05/04/2012 01:09:52 TOTALS : 19 | 162/ 162 ( 0.0%
)
[Android Apps and Games] knoxbrder:
Try version 1.65 on the Xoom.
[Android Apps and Games] aeros0ul:
awesome!

thanks for your help.

one more thing, maybe someone is interested to enhance the android-vnc-viewer (http://code.google.com/p/android-vnc-viewer/) to get a good experience in android2android vnc connections?

maybe take a look at issue #296 (http://code.google.com/p/android-vnc-viewer/issues/detail?id=296), i think it should not too much work to get this done.

sadly i´m no android dev, but i would spend what i can if i could help with that.
[Android Apps and Games] Scotty1:
Galaxy Nexus LTE, ICS 4.0.4, using version 1.65, two problems:

1. The checkbox for "Configure Notification" doesn't seem to do anything (or else I am missing what it does). (a) With Start/Stop Notification checked, the Configure button is shown in the drag-down notification display regardless of whether or not the Config box is checked. (b) With Start/Stop notification UNchecked, there's nothing in the notification bar, regardless of whether or not the Config box is checked.

2. The server spontaneously restarts. It is sporadic but, for example, last night I turned it off in the notification bar (and confirmed that it said "not running"), but as soon as I powered up the phone this morning, I got the "VNCS user privileges" message and when I dragged down the notification bar, the server was running. Note, just power on (not reboot) and anyway, start on boot is unchecked....

Also - is there any way to tell if it's running without dragging down the notification bar? This is where a widget would be nice (even if you changed the icon on the notification bar, on my phone it's so small that it'd be hard to see anything other than a very obvious change).

All the best, Scotty1
[Android Apps and Games] knoxbrder:
aeros0ul:

I use the PocketCloud viewer which works really well on Gingerbread.

I don't think it works right on ICS yet.
[Android Apps and Games] knoxbrder:
1. The configure checkbox is really just for pre Honeycomb devices since you can't put two buttons in a notification in pre Honeycomb. I probably can make that clearer in the description. In HC and ICS I put both buttons in one notification which I think works better.

2. It is possible (probable?) that the program got restarted/resumed when the phone woke up and the Activity that starts the server ran again. I will have to see if I can reproduce this. My phone does not have ICS yet (couple weeks I hear) so it may have to wait until then. That may be when I change the notifications if they don't look good enough on the smaller screen in ICS.

"3". I hadn't thought about changing the icon when on/off. but that is a good idea. Maybe normal when running and nothing but outline when off?

"4". I am working on the widget. I have one that starts/stops, but it is not tied into the service yet for updates. Probably get that out this weekend.
[Android Apps and Games] aeros0ul:
i dont know what your requirements are, but imho pocketcloud is far away from beein "productive".

for example, scrolling through a long lists (e.g. playlist in music player). till you get what you need your hair went gray.

i´ve really tried every vnc client available for android and - for my understanding of usability - none of them is even closely to beein suitable for a productive android2android connection. just last resorts.

the bad thing is, imo it could be so simple, just nobody seems to be interessted in support that feature. quite possible that these apps are perfect in their original type of use.

or maybe the most tablet owners use their devices different then me :D
[Android Apps and Games] Scotty1:
Thanks for the very quick reply !!

I see. Maybe add "pre-honeycomb only" below the Config checkbox (or could the program detect the OS version, and show/hide the option?)

I have tested to see if manually stopping / restarting WiFi maybe triggers the server to kick in, but it seems not. I wish I could be more helpful re/ what does cause it to start up. Sorry !

That would be good - although it is really small on ICS (or else my eyes are failing :-) so maybe green / red would be more noticeable.

Fantastic. If the widget could display server status (on/off), that would be great. I'd use that instead of the notification bar icon, which I'd prefer because (a) as noted, the icon is very small & (b) my notification bar is almost full.

Just had another thought; could the widget show the actual connection status to a viewer? For example I have a Wifi app with widgets that show (1) whether WiFi is on or off, and , if WiFi is on, it (2) shows green "radio waves" when connected to a specific SSID, red ones when not connected. Some similar status display(s) for your upcoming server widget would be wonderful.

Again, many thanks for all of your efforts. Outstanding! All the best.
[Android Apps and Games] knoxbrder:
The icon is not small on my phone, so that is probably something in ICS that I need to tweak. Well, ICS on a phone, since it looks fine on my tablet in ICS. When my phone gets the ICS update I will look at that.

Yeah, the part I need to add (and already know how, just need the time) is to make the widget update the current status. Few hours "sometime" and I will have a version with a widget.
[Android Apps and Games] Scotty1:
I attach a screenshot -- icon actually looks OK here :-), but really hard to see clearly on the phone itself, so displayng on/off status would (I think) need two icons that differed quite substantially.....
[Android Apps and Games] knoxbrder:
LOL. I can't even tell which icon it is.
[Android Apps and Games] Scotty1:
Two along from the "trident" (which is connected as media device) ;-)
[Android Apps and Games] Neralun:
Wrong mouse rotation on Galaxy Tab

I'm using 1.63 on a Galaxy Tab here, and while video works great, the mouse axes are rotated.

The Tab shows a rotated screen (top of the tab's screen is in positive x direction on the viewer) when I start the server/client, and the mouse movement reflects this:

If I move the mouse up in the viewer, the mouse moves right on the Tab (to the top of the screen at the Tab, but to the right of the viewer display as the display is rotated 90°). I can set rotation to 270° to get the correct display in the viewer (top of Tab is top of viewer), but then the mouse movement is rotated too, of course, so the axes are still rotated.

Would it be possible to add a "rotate mouse" option (or a "Galaxy Tab Tweaks" option)?

Thanks for the great work! :)

PS: Just tested 1.65, and screen rotation doesn't work anymore, all I get is a garbled display (and the width/height is still unrotated)...
[Android Apps and Games] onyxogen:
YES! This is the first remote control program that's working on my galaxy nexus. Thank you very much - great work!