yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] XlAfbk:
always failing with cannot get ABS_X info, Invalid argument:

./vncs Version 1.50

need init

Initializing framebuffer device /dev/graphics/fb0...

xres=480, yres=800, xresv=480, yresv=5600, xoffs=0, yoffs=0, bpp=32

--Initializing gingerbread access method--

screenshot info: 32 480 800 1536000

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
[Android Apps and Games] Giskardors:
Guys I know its a bit offtopic, but is vnc related. Do you know any vnc viewer for android that use compression?

Thanks!
[Android Apps and Games] knoxbrder:
Giskardors:

- VNC servers and clients can use many different methods of sending graphics updates; some are compressed. The clients and servers negotiate the best method available to both. http://www.tightvnc.com/vncviewer.1.php

The android-vnc-viewer seems to support most of these encodings.

XlAfbk:

- try the latest versions 1.63 or 1.65. Some work was done to work around that type of failure to determine the size. But it still needs more work.

Neralun:

- I will add an option to set the pointer rotation offset from the screen rotation offset.

- the auto-size detection in 1.65 still needs more work obviously. I will add an override if necessary. Can you post the output of the server starting?

For those waiting on the widget, I am getting closer to having that done. But it is not ready yet.
[Android Apps and Games] XlAfbk:
still the same:

./vncs Version 1.65

need init

Initializing framebuffer device /dev/graphics/fb0...

--Initializing gingerbread access method--

screenshot info: 32 480 800 1536000

xres=480, yres=800, xresv=480, yresv=1600, xoffs=0, yoffs=800, bpp=32

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

I couldn't find anything on that "ABS_X" so i'd have investigated further.

Galaxy S I9000 with CM9
[Android Apps and Games] knoxbrder:
Try uinput for the keyboard instead of input.

./vncs - k uinput

If that doesn't work, how did you determine to use event3? Are you sure it is the correct pointer device?
[Android Apps and Games] XlAfbk:
uinput works, thx. i didn't set event3 but just ran "./vncs" and that's what it did by itself

now that it works I already got a feature request:

- clipboard support

- german keyboard support so one can enter umlauts (öäüß), currently they result in ")<nothing>=<nothing>"
[Android Apps and Games] knoxbrder:
I should probably change the keyboard default to uinput. I'll make a note of that.

Do you mean you want to type those characters on an english keyboard? What are the keystrokes? If I can create them on my client, I will have the server insert them. What do I press to create each one?

I will look into clipboard support. I have no idea how VNC does it.
[Android Apps and Games] XlAfbk:
I do have a german keyboard with german keyboard layout set in the OS. But on the phone they are received incorrectly. Using the Android I can type them.

You can use the onscreen keyboard on your PC to send them to your phone for testing.
[Android Apps and Games] knoxbrder:
I will look into it.

I use Linux and haven't used it's virtual keyboard in years.

The way the server works it has to translate each VNC key into Android key. So unless we add every translation it won't be there. I'm sure there are some more "regular" keys that are wrong or not there yet.
[Android Apps and Games] dkgr_ser:
Well, tried it on my galaxy sii but without mouse pointer you can't do many things...
[Android Apps and Games] knoxbrder:
Rooted? If so, try -k uinput
[Android Apps and Games] stealthdave:
Feature Request

Found this app today, and it's working flawlessly on my Archos G9 80 running 4.0.5 ICS Rooted. I'm running 1.65 from the apk. I do have "Swap red/blue colors" set, but everything else works OOTB.

I do have a feature request/suggestion: would it be possible to add a visible pointer to the device running vncs, selectable as an option from the settings? This would allow me to use my phone as a remote mouse without having to look down at the smaller screen to determine where I'm tapping. Even more useful would be a "cursor fadeout time", where after a set time of no cursor input, the pointer would fade out, leaving the screen unobstructed until the cursor was moved again.

Many thanks!

- Dave
[Android Apps and Games] knoxbrder:
I would love to know how to get the cursor on all devices.

The only device I have been able to get it to work on is my Transformer Prime since it directly supports the pointer because of its touchpad. But I have to use its /dev/input/event5 device for the pointer.

There is probably some way to get it to appear on at least some other devices, but I have no idea how to do it. Maybe when I have a few days free I can search thru the kernel source :-/
[Android Apps and Games] stealthdave:
I know that if I connect a Bluetooth mouse to the Archos G9, I get a mouse pointer on the screen. I actually tried using /dev/input/event5, but no change. I also tried the following input devices:

/dev/input/event0...6 (all 7 devices)

/dev/input/mice

/dev/input/mouse0

Don't know if that will help you narrow your search, but as we all know, knowing is half the battle. :)

- Dave
[Android Apps and Games] knoxbrder:
To identify the mouse device do the following:

- connect real mouse and verify cursor moves on screen

- from adb or a terminal run "od -x /dev/input/eventX" (where X is one of the existing devices)

- move the mouse and see if data comes from the od command

- repeat with all X until you find the device

To start using the mouse event device:

- vncx -k input -t /dev/input/eventX (where you identified X above)

Maybe the mouse will work thru vnc :-)

If it doesn't work then run the od command again and barely move the real mouse and send me the output. Try to move the mouse as little as possible. The run another od command and try to click the real mouse without moving it.

All this should work and works on my transformer. But it is not the "right" way to activate a mouse pointer in general for all devices. I just don't know how to do that (yet).

Cheers.
[Android Apps and Games] knoxbrder:
event6 definitely looks like a mouse from the data.

So, with the mouse plugged in:

"vncs -k input -t /dev/input/event6" should show the mouse cursor and it "might" allow movements via vncviewer.

But, most likely, the event stream I send will not be right for your phone and I will have to tweak the code for just that device.

I'm hoping to figure out a way to get the cursor to appear without using these "real" devices. But I haven't had time to look yet.
[Android Apps and Games] stealthdave:
Sadly, shadowing event6 does not show the cursor movement via vncviewer. (I had attempted that same command during my initial tests.) I'm still more than happy to have a solid VNC server for my small tablet. :) Many thanks, and I look forward to testing future revisions!

- Dave
[Android Apps and Games] bass-o-matic:
Newbidy Noob thinks he knows how to run this.

Hello.

I've read this entire thread and I think I know how to install and get this running but before I journey into the unknown I was hoping to get some tips.

1. I downloaded the two files and put them on my Nexxus S 4G ... on the SDCard

2. I installed the vnclauncher.apk

3. My phone is unlocked and Rooted. Superuser seems to be working.

4. I'm on 4.0.4.

5. I installed and fired up ConnectBot

6. If I'm reading this right.... I use the VNC Preferences bit to setup some prefs. Then I open my local connection with ConnectBot, navigate to the directory with VNCS in it and launch it with the command line using the appropriate switches.

Question 1: For the Nexxus S 4G this looks right? Or are the prefs are really set in the VNC Launcher app?

vncs -t /dev/input/event1 -s -n

Question 2: Do I need to move vncs into /data/local. ? or can I just fire it off where it is? That's just the "data" folder off home right? I'm looking at it with OI File Manager...

Thanks for any tips!
[Android Apps and Games] simonbove:
Hiii..

I have installed this on my galaxy nexus with 4.0.4 and it works perfect..

The screen lags on the computer, but that is how it works with screenshots..

I have also installed it on my Kindle Fire, and works lovely, except for the mouse, its wrong... When i push at the back button in the left bottom side, it pushed in the right bottom side on the Kindle Fire... Didnt find any in this thread with this issue, but i may have missed it...

And i can't see any settings to change the input from the computer...

Any ideas?
[Android Apps and Games] Neralun:
Garbled screen on Galaxy Tab with 1.65

Command-line:

./vncs -d 300000 -P 5901 -k uinput -t /dev/input/event2 -s

Output:

./vncs Version 1.65
need init
Initializing framebuffer device /dev/graphics/fb0...
--Initializing gingerbread access method--
screenshot info: 32 1024 600 2457600
xres=1024, yres=600, xresv=1024, yresv=1200, xoffs=0, yoffs=600, bpp=32
bInitializing VNC server:
scale: 1
width: 1024
height: 600
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
14/04/2012 11:47:14 Listening for VNC connections on TCP port 5901
14/04/2012 11:47:14 ListenOnTCPPort: Address already in use
16 8 8 8 0 8

For comparison, here the output of 1.63:

./vncs Version 1.63
need init
Initializing framebuffer device /dev/graphics/fb0...
xres=1024, yres=600, xresv=1024, yresv=1200, xoffs=0, yoffs=0, bpp=32
--Initializing gingerbread access method--
screenshot info: 32 1024 600 2457600
bInitializing VNC server:
scale: 1
width: 1024
height: 600
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
14/04/2012 11:59:37 Listening for VNC connections on TCP port 5901
16 8 8 8 0 8

The only difference seems to be the value of yoffs...

The unrotated screen of the Tab has 600x1024 resolution, I use a custom Gingerbread ROM based on CM7.

An option for rotating the mouse independent of the screen would indeed be helpful; 1.63 would work great with that.
[Android Apps and Games] knoxbrder:
stealthdave:

- glad it mostly works; maybe we can figure out the mouse pointer in the future

bass-o-matic:

- if you install the apk like a normal android app you don't need vncs or connectbot or a shell; just set your choices in the gui and press menu and start server; the gui has vncs included

- the standalone vncs you can optionally download is for people that don't want to use the gui; you can give it the options on the command line; I suggest you use the gui and don't install the standalone vncs at all

- in the gui, you might need the swap colors option, set the keyboard to uinput and that is probably enough

simonbove:

- it sounds like you have the same rotated coordinates another user reported in this thread a page or so ago; I will be adding an option to rotate the coordinates shortly

neralun:

- the output from 1.65 says it could not bind to the port; do you have another copy of my server running or another vnc server? If the server can't bind then you are looking at the output from a different server and the options for this instance won't have any effect. When using -k uinput the -t option is ignored; you can just leave it off.
[Android Apps and Games] simonbove:
Thanks a lot :) Will look back later then :)

But everything else works perfectly on my devices :)

Thanks for a great job :)
[Android Apps and Games] knoxbrder:
1.70 rotation offset for pointer and widget

vncs:

Command line -T for specifying rotation offset of pointer for those devices that need it.

gui:

Specify rotation offset of pointer.

Add a widget to the desktop; it updates at the same frequency as the notification.

Enlarge the 1x1 widget to see status and time of update (like notification)

Test away! I am sure there are some issues; who can find them? :-)
[Android Apps and Games] ricosuavez35:
this is not easy

thought i would give it a try but its too hard for me to work out ,dont know what the server name is ...and when i do a search on local nothing comes up ...:mad:
[Android Apps and Games] knoxbrder:
1) it will only work on a rooted device. Is your device rooted?

2) install the apk version and start it

3) inside vncprefs gui, try menu and start server

4) it should ask for root permission and start the server

5) on your laptop/desktop, run vncviewer (download from elsewhere) and connect to the ip address of your android device; the server defaults to port 5901

If none of this makes sense then google vncviewer and check out the online help pages or goto http://realvnc.com and read about how vnc works.

It is not "hard", but it is not just one button click and you are done.
[Android Apps and Games] simonbove:
All i get now on the computer is this blurr... Look at the screenshot...

Its with the new apk you uploaded...

It's on my Kindle Fire...
[Android Apps and Games] knoxbrder:
1.71 GUI updated because widget code only worked correctly if debug was turned on. Fixed.

Not sure what would cause your kindle rip like that.

Have you tried with the Framebuffer on and off?

What are the command line options or the cmd in the gui with debug on?

If using the command line try with and without -f. And with and without -1.
[Android Apps and Games] ricosuavez35:
stupid me ,i figured it out

ok i gave it an other try and i connected but everything was green and to

big,fixed that now it works ...its a little slow the screen refresh is about 4 to 5

seconds i will experiment with setting to see if i can speed this up a bit ...

by the way i am using ubuntu remote desktop client but search did not work had

to type in the ip

thank you :)

my specs xperia play r800i stock 2.3.4 (42) rooted and bootlocked

edit:ok it runs pretty smooth just a little delay (1 sec)
[Android Apps and Games] knoxbrder:
1.72

simonbove:

Try the -f and -1 or -3 options in this version 1.72.

-3 got lost in a previous update.

Also finally changed default to uinput instead of input.
[Android Apps and Games] knoxbrder:
Forgot to add GUI options to force 16bpp and 32bpp.

You can only use one at a time.
[Android Apps and Games] simonbove:
I have found the bug...

It was the Initial Rotation at the option 270 degrees which caused the screen to show up like that before...

The touch is now right with the option 270 degrees...

Works lovely again, and now with the touch too...

The keyboard still works perfect...
[Android Apps and Games] knoxbrder:
1.74

Pointer rotation wasn't handled quite right when you rotated the screen dynamically. Should be correct now for uinput. Haven't tested direct event devices yet, but I don't think anyone is really using them anymore.

Screen could become garbled on rotation. Should be corrected.
[Android Apps and Games] BlackPit666:
im just wondering what to do with the zip ^^

but for the rest, nice work :)
[Android Apps and Games] knoxbrder:
The zip is only so you can start the server from the command line if you don't want to use the normal android gui to start the server. I recommend you just ignore the zip and use the apk if you don't understand.
[Android Apps and Games] Scotty1:
Trying 1.74. Thanks for including a widget. Just checking -- it isn't "active" yet, right? It SHOWS the status (green bar if running) but it can't TOGGLE the status?

All the best, Scotty
[Android Apps and Games] knoxbrder:
It toggles on my gingerbread phone and my ics tablet.
[Android Apps and Games] Scotty1:
So I rebooted the phone (ICS 404) and yes, now it's toggling :). Thanks, great work ! Scotty
[Android Apps and Games] bass-o-matic:
Soooo Close!

Woo hoo!!! This is great! It works well enough for my purposes. I'm doing blackbox testing using Eggplant from testplant.com... the only problem I 'm having is... I'm all red. It looks great using Chicken Viewer but red using Eggplants Viewer. So really it's their issue and I do have ticket in to tech support... just looking for any advice?

I've tried various offsets, Red Blue Swap, Nexus Tweak to no avail. See Screenshot. Thoughts? Anyone? Bueller?

Thanks!
[Android Apps and Games] knoxbrder:
Screenshot?
[Android Apps and Games] bass-o-matic:
Sorry, Yup, I tried a url... I'm a newbie so they won't let me do links... let's see if I can do attachments... should be there...
[Android Apps and Games] knoxbrder:
Never seen that rip before :-)

The only thing I can guess is they are in a different color mode? 555 vs 888 or generic number of bits per pixel or something like that?

I haven't messed with that part of the code other than to allow an override choice of 16bpp or 32bpp because of the way some framebuffers behave. The color display should be standard VNC stuff. Since my server works with other viewers on your system I think you are correct; its their problem ;-)

Let me know if they find anything I should tweak or if they fix it on their side.

I haven't done that kind of blackbox testing in a while; brings back memories.
[Android Apps and Games] bass-o-matic:
Aha!

I just needed to change the color depth on my side to "millions" as it went off the rails.

Hey thanks a ton for the great app!:D
[Android Apps and Games] lrussell:
using VNCLauncher on unrooted to only screen capture

I have a need to do only screenshot streaming via vnc (no control of the device only viewing) for an educational app that monitors multiple vnc servers on computers in a classroom... no remote control. Is there a way to use your app in this manner in unrooted mode since they do not want to give rooted devices to the students? This is on Acrchos 101 G9 tablets
[Android Apps and Games] knoxbrder:
You can get some devices to display and even get keyboard input using "-k input" using an adb shell. (it has more privileges than a connectbot shell)

And a few devices will let you access the framebuffer via a local shell like from connectbot.

But most devices need root to work since it is a security thing. Maybe Google will add more privileges like allowing an unsigned app to read the display and create user input devices. As long as the person installing the app has to accept the permission I don't see a problem with it; but it doesn't work that way right now.

The GUI currently requires root to run.

But you can try the command line program from connectbot or such.

I have no experience with your device.
[Android Apps and Games] ERamseth:
framebuffer mode?

is framebuffer mode more responsive than screenshot mode? if so, does it work on Galaxy Nexus? When I try it I get a black screen that is responsive to input but does not display anything.
[Android Apps and Games] knoxbrder:
I believe the framebuffer will be supported on fewer and fewer devices.

It does not work on my ICS tablet for instance.

It often shows black or maybe the boot screen on devices that don't support it.
[Android Apps and Games] ERamseth:
good to know. is there any way to get faster refresh rates? even with root?
[Android Apps and Games] Neralun:
Garbled screen on Galaxy Tab fixed

1.74 works great with my Galaxy Tab; no garbled screen anymore and the pointer moves in the right direction.

Thanks for the great tool! :)
[Android Apps and Games] knoxbrder:
Best I can get is around 6fps.

Framebuffer is faster than snapshot. I will need to profile the rest someday.

Read screen

Get changes

Compress

Tcp/ip

Events
[Android Apps and Games] ERamseth:
doing a little more research, it looks like the onaips VNC server (currently non-working in ICS) had a gralloc method for grabbing the screen. i'd think that'd be faster than screenshots. Any plans to implement that?
[Android Apps and Games] knoxbrder:
Poking around it looks like gralloc is just using the framebuffer? So I don't know why it would work on devices that the framebuffer doesn't.

But this was just 5 minutes of google. I definitely don't know anything about gralloc.

If someone knows of some working gralloc code on newer devices that is faster than framebuffer or snapshot, post a link.
[Android Apps and Games] tomu0007:
Browser-Support?!

Hey, really great work ... but i have to say, that oNaiPs "Droid VNC Server" supports VNC Client on BROWSER ... if i'm testing yours it doesn't. This is a very important Feature. Could you implement this? Then it would be the perfect "DROID SERVER APP" :)
[Android Apps and Games] knoxbrder:
I will add it to the todo list.

Should be "easy" since I just have to upload the canned java vnc client package to your browser and the rest of the server is the same.

Give me a couple weeks though since I'm trying to clean up the code some and I want to get the GUI cleanup mostly done before I hack up the code anymore.
[Android Apps and Games] matthelm:
All,

Just received a bionic lapdock, and now VNC is all messed up. Any idea what setting I should use to fix this???? (looks like screen res and VNC res are no longer matched)
[Android Apps and Games] tomu0007:
If i want to connect through wifi, ... i always have to look the IP-Address with netstat or a special android app "android status" ... so it would be nice, if you could show the IP after starting the Server. This would be spend much of time! ;)
[Android Apps and Games] Scotty1:
Since you're doing a GUI cleanup....a tiny point: the icon for the widget looks like about a quarter size on my phone (1/2 normal width x 1/2 normal height). I suspect it's because my phone has a high-res display (Galaxy Nexus). Here is a screen cap, showing the widget icon alongside 5 normal-sized icons.....
[Android Apps and Games] nabil2000:
toshiba thrive at100-100

not working on my rooted HC Thrive...

I do not get any clue it is loaded, does not even show up in running apps...

if I try to point a vnc client to my IP, (after double clicking the vncprefs icon), it says access denied...
[Android Apps and Games] knoxbrder:
nabil2000:

- did you start it from the menu in VNCPrefs?

- turn on Debug mode in the menu and post the cmd:

scotty1:

- 1.80 should have the icon size fixed

tomu0007:

- 1.80 should show the IPV4 address in the widget or in the GUI when you start the server in Debug mode

- there are also lots of IP Address widgets in the various Android stores

matthelm:

- what are the resolutions of the screen in docked and undocked mode? I may need to add a way for you to force the size.

tomu0007:

- no HTTP JAVA app yet
[Android Apps and Games] knoxbrder:
Version 1.80

- mainly cleaned up the GUI code

- fixed the widget icon size

- two widgets now: 1x1 is just icon, 4x1 includes IP address and status

- IPV4 address shown in 4x1 widget and when server started from GUI if Debug is active

Server cleanup code next.
[Android Apps and Games] bragih:
Hey I just wanted to use this with my Galaxy Nexus.

(AOKP b33, rooted)

I can control the device fine but the screen of VNC Viewer stays black.

So I cannot see what I'm doing while being able to do control the touchscreen etc..
[Android Apps and Games] Scotty1:
Thanks for fixing the widget icon size !! I forgot to report something that happened with the previous build, that's still happening with 180. Every so often, an error dialog pops up on my phone (Galaxy Nexus ICS 404 rooted) telling me that "Unfortunately, VNCSPrefs has stopped". But it hasn't stopped - it's working fine, as judged by my still being able to see the phone's screen, and control the phone, via my VNC client. Obviously, I just dismiss the dialog (by pressing OK with the mouse) so it's not a big deal. I haven't worked out what triggers the popup -- it just appears every so often. All the best, Scotty