yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] JustusIV:
Been busy the past few days but update to the newest and this is just a few observations.

-d 300000 worked great for responsiveness

second it used to work when the screen was off it doesnt appear to anymore.

third it doesnt work on my lock screen. graphics update, no mouse input.

fourth a few times my touch screen has totally hosed up. requires a battery pull
[Android Apps and Games] knoxbrder:
When the screen is off, Page-Up, Alt-O or Alt-I usually will turn it back on. Then mouse and keyboard should work on the lock screen. (Works with all the devices I have or have access to.)

So for a while everything works fine on your GN? mouse/keyboard/graphics? using uinput now?

Which version of Android do you have? 4.0.4 or 4.0.3? Not sure why some others are having problems getting input buffering.

When you say the touchscreen is borked, do you mean the virtual keyboard doesn't show or touch is wrong locations or ignores touches or what?

(and this is after you close the vnc connection?)
[Android Apps and Games] JustusIV:
I guess i am still using the defaults form before... not using uinput... just input.

It all works. will play with that. From the quick scan i thought that was for devices with physical keyboards but i must be mistaking. The older versions used to fully work with the screen off... that was a sweet feature as it saved a load on battery. I will play with the keys you mentioned to do a wake up but seems like that is more on the bug side of things?

As for the screen touch issue... i am on 4.03 and basically all of a sudden no touches work at all. vnc is still running and it appears touches don't work on that either. however i think every time its been on the lock screen. so with my new found knowledge maybe i can unlock it.... I have had to do a battery pull at that point as there is no other way to restart or regain control.
[Android Apps and Games] knoxbrder:
Version 1.43 is here.

scotty1:

Stab in the dark to try to fix the bunched up events.

justusiv:

I'm surprised an older version worked with the screen off. I have tried that from time to time and never noticed that it worked. Do you know which version worked that way?

rupa:

You can try -16 or -32 to force the bits per pixel to see if that helps. If not, can you send me a picture of your screen correct and what vnc shows?
[Android Apps and Games] RickROM:
Where is the link to download this?
[Android Apps and Games] JustusIV:
It was on of the 1.3x versions. I was surprised it worked myself. That's why I took note.

If you provide access to the old versions I would be happy to test them again to see when that feature broke..
[Android Apps and Games] k20human:
Hi same here, i don't see any link to download the package ?
[Android Apps and Games] Scotty1:
Hi there - can't test, there's no link to 1.43 in your first post (as of 8:25AM Pacific time)

---------- Post added at 08:53 AM ---------- Previous post was at 08:25 AM ----------

Still using 1.42, with SwiftkeyX, but I changed the kb settings to use input (not uinput), and reset to also used the GN tweaks & X/Y.

Now if works like a charm. Mouse response (d = 300000) is almost immediate, and when I type in an edit box, my FULL swiftkey kb pops up, and all my keystrokes appear (after a short delay, maybe 1 sec) on the phone, and then, after an additional slight delay, they appear on the v-screen. And my phone no longer needs to be rebooted after each connection.

So, I am a happy camper. I'll certainly test 1.43 (with uinput) when you post the link, but the only VERY SLIGHT nuisance are the short delays mentioned above (and honestly, that doesn't really bother me). Great work !!
[Android Apps and Games] knoxbrder:
I must have forgotten to hit save after I uploaded the new version.

It will be in the first post in a minute.

I have been lazy up to this point and haven't put the code under revision control or kept previous versions. So I can't easily reproduce earlier versions. I have a good idea what was changed in each, but I don't want to manually recreate 10 versions to find which one worked with screen off. None of them should, so it was probably a fluke anyway. I do plan on trying to adjust the brightness on the fly in a later version which should increase battery life. Or finding the magic IO command to disable the screen without the OS noticing would be sweet ;-)

scotty1:

The uinput version will always be much more responsive than the input version. If it doesn't cause you other issues of course.

Do try this this version to see if uinput doesn't bunch up the keyboard events.
[Android Apps and Games] Scotty1:
FWIW, I have kept 1.33, 1.40, 1.41 & 1.42, so if you want, I could attach each of them. Your call, of course.

Tested 1.43 using uinput. Mostly good news. Mouse response is as fast as in 1.42. Keystrokes now appear instantly, on the phone itself & on the v-screen. BUT (using SwiftkeyX) I still see just the top row of the kb, and I have to reboot my phone to restore kb function :-(

---------- Post added at 10:11 AM ---------- Previous post was at 09:59 AM ----------

Edit: Just for fun I tried it with uinput, but this time after checking GN tweaks & XY settings. I thought "maybe the server thinks the screen is taller than it really is, hence the lower part of the kb is being "displayed" on the non-existent part of the screen. No difference.. So, back I go to "input" for now.
[Android Apps and Games] knoxbrder:
Those hacks are mostly just for touch events when being sent to a "real" device, unlike using uinput. They should not affect the screen height.

Can you post a picture of the "top line"? Is it a row of keys or just the autocorrection/autosuggestion line?

I haven't had time to find a way to simulate the physical keyboard on/off onscreen switch my Prime has. I hate that they left that off the screen on the GN.

I wish your phone had this:

http://i.stack.imgur.com/esFaw.png

I'm out of town starting tomorrow until next week. So if I can't find it tomorrow it will have to wait until next week. At least its getting closer :-)
[Android Apps and Games] Scotty1:
Here's a screencap of the virtual screen (using TightVNC). I opened an edit box, and used the PC kb to type "Test uinput". You'll see that text at the top. Near the bottom, you'll see the top row of SwiftkeyX, showing 3 buttons, each with a suggested word. The rest of the SwiftkeyX kb SHOULD be shown below that line. When I use "input" instead, the entire kb pops up onto the screen.

---------- Post added at 10:57 AM ---------- Previous post was at 10:56 AM ----------
[Android Apps and Games] knoxbrder:
Thats what I figured. I think it is just the autocorrect/autosuggest area being shown. If you had a physical keyboard connected and that virtual keyboard active it would behave the same way.

Nothing in that ... menu at the bottom of the screen that shows a keyboard icon like my previous (editted) post? :-)
[Android Apps and Games] Scotty1:
Nope. The ... softkey opens the settings for the program that's running at the time (in the case of the screencap, it was Pocket Informant). It doesn't offer anything re/ keyboard, physical or otherwise :-(
[Android Apps and Games] kwuddy:
Still on 1.42

./vncs -k uinput -t uinput -d 750000

Works! Responsive enough to be usable. Kb ok. Swiping the screen L/R doesn't work but I can live with that. Good job!
[Android Apps and Games] RickROM:
I'm trying to test this, but I don't understand the instructions. I installed the APK to my phone, and I'm trying to connect from my computer, but I keep getting connection refused....

What is the other file posted? What are the steps to get this running? The OP doesn't make much sense to me.
[Android Apps and Games] knoxbrder:
rickrom:

- what is the cmd shown when you start the server on your device?

- if you don't know how to start command line apps then don't worry about vncs

- this is a rooted device? and what device is it?
[Android Apps and Games] knoxbrder:
kwuddy:

Sounds like it is getting pretty close.

Can you long press on an icon and drag it around? Or when you try does it just launch it? Or door #3?
[Android Apps and Games] k20human:
It's seem works like a charm with 1.43 version and rooted Galaxy Nexus !

The click event is just a little slowy but it works :)
[Android Apps and Games] kwuddy:
Yes I can drag an icon, little laggy (~ 1 or 2s). Click launches.
[Android Apps and Games] Scotty1:
What kb setting are you using? input, or uinput?
[Android Apps and Games] knoxbrder:
So if you can launch or drag icons I wonder why you can't swipe between screens? It doesn't have a special button for that does it?
[Android Apps and Games] k20human:
I use uinput
[Android Apps and Games] kwuddy:
No special button, works for wand same as touch-screen. Maybe because of large xres (1200)? I'll try again tomorrow and see if I can spot anything.
[Android Apps and Games] Scotty1:
Interesting. If I use uinput in 1.43, I have a problem with my kb, and ultimately have to reboot the phone (GN, rooted, ICS 4.0.4)
[Android Apps and Games] knoxbrder:
kwuddy:

let me know; does it "try to swipe" and just drops back to the same screen? or does it not even look like its trying to flip? or does it think you are long pressing?

scotty1:

Yeah I wonder what version he has of ICS.

I tried last night with my Prime and Googling around. I could not find any way to clear that it thought I had a keyboard attached. No matter how carefully I closed and killed things. I tried hitting some system settings but even though the changes stuck it still thought I had a keyboard attached. The only thing that would clear it was the onscreen button you don't have and rebooting. I will try some more next week. This only happens with ICS that I have seen. I doubt ASUS will tell me how that code works or where it is...

Probably have to decompile the entire ROM and search thru it. That doesn't sound fun.
[Android Apps and Games] Scotty1:
OK, no worries. 1.43 is working OK under "input / GN tweaks / d 300000 / XY". The only issue is the short, ~1 second, delay in a keystroke "reaching" the phone. Mouse click response is terrific.
[Android Apps and Games] orion2:
Also working on HP Touchpad w/ICS 4.0.3 (CM9alpha2)

Nicely done, great app!

Running 1.43 using:

vncs -d 300000 -P 5901 -p x -k uinput -r 1 -m 1 -s

Refresh and mouse click response is indeed terrific.

Remote screen is very blue but very usable.

Thanks for the great work! :)
[Android Apps and Games] knoxbrder:
If its just a color swap thing I'll try to add a color order in the next version:

RGB

RBG

GRB

GBR

BGR

BRG

Can one of you HP people load some nice color pallet image on the tablet and link the original and what it looks like in your VNC client?

Like this one maybe?

https://encrypted-tbn3.google.com/i...JNiNNwmO7GGJBo51i4_Vo7Kh_YHc3MCSNcu1Csdjy2boQ
[Android Apps and Games] deleted21:
Works on HTC DHD ICS

Great job.

the server works fine on my DHD.

Set viewer scale in Real VNC viewer : By 80% Best view on my computer
[Android Apps and Games] matthelm:
Anyone have this working on a Droid Bionic? The server runs, but all I get is "can not connect" at the computer. I have the older "droid VNC" working OK, but would like something that is supported and better options like this one is.
[Android Apps and Games] orion2:
Color wheel on HP Touchpad w/ICS alpha2

Using 1.43 on HP TP w/ICS alpha2,

vncs -d 300000 -P 5901 -k uinput -r 1 -m 1 -s

On vnc client, zlib and 16bit color (32 looks terrible).

dl-dot-dropbox-dot-com /u/8209340/vnc2TPw1.43.png

Happy to assist, thanks again for the app. :)
[Android Apps and Games] k20human:
I have ICS 4.0.2

For the bug of kb just stop the VNC server and your kb will be back, i had the same problem :)
[Android Apps and Games] orion2:
maybe add -pixelformat to 1.43??

Ahh, if you can compile -pixelformat into xvnc then we can definitely tweak the color bug. Realvnc still has the 4x source available somewhere..;)
[Android Apps and Games] knoxbrder:
It would be nice if killing the server brought back the keyboard. It doesn't on my prime. Luckily it has the soft switch. Can anyone else confirm killing it on the GN works?

The thing about that color wheel is it looks like there is no green anywhere.

I will look into it next week.
[Android Apps and Games] rupa:
Sorry for the late response. Yeah, I'm having trouble with the keyboard. Typing from Chicken of the Sea VNC client. Also, the software keyboard doesn't actually show up while connected via VNC. I have Swype and Standard android keyboard enabled.

Mine is a GSM Galaxy Nexus. So the version is 4.0.2. (.3 and .4 were for CDMA version I think)

I'll followup with the later post you made regarding the touchpad.
[Android Apps and Games] knoxbrder:
Does the virtual keyboard start working again when you stop the VNC server? Or do you have to reboot to get it back?
[Android Apps and Games] rupa:
Stopping the VNC Server has always allowed the keyboard to work again. I wonder why my tablet lets me turn on/off physical keyboard, but the GN does not. :(
[Android Apps and Games] frenccw:
Hey just giving some feedback on the app on my Nexus S (key = uinput):

- Yellowish tint but quickly solved by swapping red/blue

- Keyboard responses are extremely fast, much faster than the old droid VNC server

- Mouse input is quite slow in comparison, but...

- is very responsive at half scale

- Unfortunately, at half scale the rendering is really bad that you can't read any text of it

- Err soft keyboard disappears after running the app!!! Required a reboot to get it back

- Keyboard works for "input" but only during typing and is very slow. Shortcut keys like Home doesn't work. Also, mouse decides not to work. Soft keyboard doesn't disappear like when using uinput though

Overall, great job on the app it has come a long way!

Update: Mouse input - clicks are actually quite fast but performing a drag action lags for a second or two
[Android Apps and Games] knoxbrder:
frenccw:

Did you try different delays to see if it speeds up the mouse?

What Android version do you have on your NS?

The Windows key doesn't work for Home? With both input and uinput?
[Android Apps and Games] frenccw:
Hmm changing delays doesn't really help. But to be honest the speed is quite comparable to the old vnc droid server so i think its tolerable. It seems to have moods; sometimes its a long delay but after it warms up the input is almost instantaneous.

I'm using an Android 4.0.3 based custom ROM

Windows key etc. works for uinput but not for input. Uinput makes the soft keyboard disappear permanently until reboot
[Android Apps and Games] frenccw:
How much delay do you suggest i put in to improve mouse input latency?
[Android Apps and Games] knoxbrder:
Most people seem to find around 300000 works pretty well for the delay.

This means events don't come through any faster than about 3 times a second.

A delay of 1000000 would mean 1 event per second.

0 means no delay between events and VNCS usually gets overwhelmed and very slow.

Not all events are delayed this way. Mainly graphics, mouse drags, mouse moves. If you change the mouse button state then that event is not delayed.
[Android Apps and Games] frenccw:
Hmm it doesn't feel like anything has changed because it is still temperamental. At times it makes like 5 seconds to register, but sometimes its near instantaneous for a spurt of time.

Also, i've been experimenting with quick ways of restoring the the soft keyboard using fast reboot apps but with no luck. Closing and reopening all apps and process does not help. Only a full reboot :(
[Android Apps and Games] knoxbrder:
Which version of the program and what are the full cmd (in Java) or full command line used?
[Android Apps and Games] frenccw:
I'm using the latest Version 1.43. Didn't change anything except the Delay Between Events under tweaks to 30000.

Is this what you wanted?

cmd: /data/data/com.mrk2012.android.preferences/vncs -d 30000 -P 5901 -k uinput -r 0 -m 1 -s

Update: I'm an idiot i realised that i'm missing a zero in the delay. Set to 300000 now and the mouse input is more responsive. Thanks!
[Android Apps and Games] knoxbrder:
Glad you got it working. Thats why I wanted to see the cmd ;-) Lots of zeros.

I checked; the windows key should work for input as well as uinput or direct keyboard device. I'm not sure why it doesn't work with input on your NS. But input is going to be the slowest anyway.

You can kill the Java engine and it restarts a little faster than rebooting. But its not much of an advantage over a complete reboot.

I've been digging around in the AOSP source for a way to turn the keyboard on/off from my app. And it looks like there probably is a way by sending the right message to the window manager. But I've never done that and haven't found an example yet.
[Android Apps and Games] knoxbrder:
Version 1.46 is up in the first post.

I found a workaround on my Prime that makes it think the uinput connection is a virtual keyboard. So the onscreen keyboard never quits working. It works on my Prime with no dock, with dock, changing dock while connected.

Let me know how it does with other ICS devices that have been losing the onscreen keyboard after VNC starts.
[Android Apps and Games] frenccw:
Works flawlessly now. Thanks mate!

PS. do you take donations?
[Android Apps and Games] knoxbrder:
Glad it works! Hopefully more people will report success.

Thanks for the donation offer; but right now, with the few apps I'm working on, I would prefer you support the bigger movers and shakers: AOSP, Cyanogenmod, the guys/gals who find root for us, ROM chefs, etc.

To paraphrase Newton: We stand on the shoulders of giants.
[Android Apps and Games] knoxbrder:
Version 1.47 in this post.

This version on my Galaxy S2 works without root! It must be started via ADB with a command like below. Then you can unplug your USB cable and vncs will keep running. Because of permissions you can't start it this way with the GUI or from a terminal emulator (I don't know if I will be able to get around this; I am really surprised it works at all).

Galaxy S2 non-rooted, keyboard, touch, display all work:

/data/local/vncs -k input -t /dev/input/event2 -d 400000 -x 480 -y 800 -o -s -g

I don't know if it will work on other unrooted devices.

I will leave 1.46 up as well since this one may be unstable.
[Android Apps and Games] Scotty1:
Tested 1.46 on GN CDMA, rooted, ICS 4.0.4. No joy. When I try to connect (TightVNC), the viewer window appears, but is much bigger than expected (almost looks tablet-sized) and afer ~1 second, it disappears, to be replaced by an error box saying that the connection cannot be made. Tried several times, same thing. Reverted to 1.43 -- connection was fine (but uinput still hangs the kb, of course). Back to 1.46 -- same problem as before. Sorry!
[Android Apps and Games] knoxbrder:
Never seen the big screen bug.

Can you run vncs from adb and see if it prints anything interesting?

You could try 1.47 too; I rearranged some code so it may behave differently.

Starting to clean it up.
[Android Apps and Games] Scotty1:
I am fairly new to Android and am not at all sure how to do "adb" commands. So, I'm sorry, but I don't know how obtain the info you need, or to run 1.47. :(
[Android Apps and Games] orion2:
1.47 working w/HP Touchpad running ICS 4.0.3

Success on HP Touchpad running ICS 4.0.3 with your vncs 1.46 using defaults:

vncs -d 300000 -P 5901 -k uinput -r 1 -m 1 -s

The remote screen still has no green, (still usable and fast), but the hardware keyboard annoyance is gone with this version. Nice work!
[Android Apps and Games] Scotty1:
Follow up. While using 1.43, I checked my settings in vnclauncher. I had "half size" selected in "initial scale".

So, I instead selected "normal size" and re-installed 1.46. The big window opened, but now it STAYED open, and kb & mouse worked :-)

Finally, instead of asking the server to display at half size, I set TightVNC to display it at 50% size. So now it looks perfect, and works beautifully. Fast mouse reponse, and both phone kb, & virtual kb, work flawlessly.

I'll let you know if any problems appear after more lengthy usage but ..... wonderful work. Many thanks !!! Scotty1
[Android Apps and Games] knoxbrder:
I can confirm the scaling has quit working. I must have broken something in my cleanup work. Regression testing, where for art thou.... (I hardly ever scale it so it could have been broken for a while)

I will fix it tonight and maybe look at that color code for the Touchpad.
[Android Apps and Games] Scotty1:
I think it's a recent break, because scaling was fine in 1.43.
[Android Apps and Games] frenccw:
The last time i tried scaling was on 1.43 as well and it was working well.
[Android Apps and Games] knoxbrder:
Version 1.48 in this post. If it seems stable I'll move it to the first post.

- The scaling should work again.

- You can use the -c option to specify color location and length in the stream

RGB have offset and length Red offset, red length, green offset, green length, blue offset, blue length

Galaxy S2, Galaxy Nexus and Prime seem to like:

-c 0,8,8,8,16,8

Grey:

-c 8,8,8,8,8,8

Red:

-c 0,8,0,0,0,0

Green:

-c 0,0,8,8,0,0

Blue:

-c 0,0,0,0,16,8

Hopefully Touchpad users can find a string that works.

If so, post it here so others will know.
[Android Apps and Games] Scotty1:
1.48 not working at all for me. I get a "cannot connect to server" message when I start TightVNC viewer. Reinstall 1.46 - everything is fine. Re-install 1.48 -- cannot connect.....back to 1.46, all well again.

Also (MINOR point) every time I install, I get an info popup stating that the current version is 1.3, and the version I am trying to install is 1.3.......

All the best, Scotty1
[Android Apps and Games] knoxbrder:
I will start bumping the Android version instead of just my internal string.

What is the cmd shown when it tries to launch the server?
[Android Apps and Games] Scotty1:
1.46

cmd: /data/data/com.mrk2012.android.preferences/ vncs -d 300000 -P 5901 -p1111 -k uinput -r 0 -m 1 -s

1.48

cmd: /data/data/com.mrk2012.android.preferences/ vncs -c -d 300000 -P 5901 -p1111 -k uinput -r 0 -m 1 -s

So 1.48 has an extra command, "-c", which presumably is causing the problem. I can see the color offset/length in Setings, but can't see how to turn it off (and I don't know what to enter for the GN)
[Android Apps and Games] knoxbrder:
Yeah it is most likely the -c. It was supposed to leave it off if unset, but there must be a bug in that Java logic. And I knew there was very little parsing checking of -c since it probably won't stay in if I can get someone to identify what works on a Touchpad.

Try putting in 0,8,8,8,16,8 or 16,8,8,8,0,8 for the color value. Including commas.

Those are the only correct values I have seen so far.

And I assume there is actually a space between -p and 1111?
[Android Apps and Games] Scotty1:
Thanks. Both of the value sets that you suggested make it work again. :) On the GN, the first set looked a little dull. Value set #2 looked better (although, for the first number in #2, I used 16, not 18, so it's 16,8,8,8,0,8).

And yes, there was a space, sorry ! All the best, Scotty1
[Android Apps and Games] orion2:
HP Touchpad ICS 4.0.3 w/vncs 1.48 = Perfect Color.

Aside from the -c parse glitch already noted, you have 16bit HP Touchpad COLOR PERFECTION with version 1.48.

vncs -c 16,8,8,8,0,8 -d 300000 -P 5901 -k uinput -r 1 -m 1 -s

Well done! Thanks!!! :D

Now is it just me or are screen updates lagging now?

When trying to type in any program, I can see on the tablet the words are getting through but the screen updates via vncs are lagging or not refreshing at all unless a hard return is pressed. Tested with multiple clients / settings / devices.
[Android Apps and Games] Scotty1:
You have no entry under "-d"

Go into the vnc server settings / Tweaks / Delay between events, and try a setting of 300000

Good luck ! Scotty1
[Android Apps and Games] orion2:
-d 300000 default still optimal.

Thanks, I didn't trust the 'default' either and I tried ramping the delay way up/down to see if it might help refresh while typing but nope. Closer and closer! ;)