baohaojun / android-vnc-server

Automatically exported from code.google.com/p/android-vnc-server
0 stars 1 forks source link

greened screen and no action on HTC legend #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. adb shell /data/local/androidvncserver
2. adb forward tcp:5901 tcp:5901
3. vncviewer localhost:1

What is the expected output? What do you see instead?
expected output : effective vncviewer
actual output : greened screen and no event transmitted

What version of the product are you using? On what operating system?

HTC Legend with android 2.1 with fa62aa8ae6b7a75103fd285b060a5fa660d0b77e  
androidvncserver of Jun 08, 2009

Please provide any additional information below.

( i'd like to learn how to troubleshoot this issue )

Original issue reported on code.google.com by yann.bon...@gmail.com on 23 Jun 2010 at 9:16

Attachments:

GoogleCodeExporter commented 8 years ago
please attach the content of fb0.raw, you can get it using

adb push /dev/graphics/fb0 fb0.raw

thanks

Original comment by onaips@gmail.com on 24 Jun 2010 at 2:04

GoogleCodeExporter commented 8 years ago
here it is

Original comment by yann.bon...@gmail.com on 8 Jul 2010 at 9:00

Attachments:

GoogleCodeExporter commented 8 years ago
This is already fixed. Look in onaips.blogspot.com (sorry for the spam :P)

Original comment by onaips@gmail.com on 8 Jul 2010 at 1:02

GoogleCodeExporter commented 8 years ago
i can not use the onaips.blogspot.com version because my device is not rooted. 
can't your correction be backported to this version that do not rely on any 
.apk or root access ?
could you publish your correction as a patch that could be applied to this 
version ?
thx.

Original comment by yann.bon...@gmail.com on 9 Jul 2010 at 6:44

GoogleCodeExporter commented 8 years ago
As far as i know you need to have your phone rooted, in this version also... 
I'm using a similar aproach to access the framebuffer as this, so there are no 
big differences...

Original comment by onaips@gmail.com on 9 Jul 2010 at 10:26

GoogleCodeExporter commented 8 years ago
my htc legend is not rooted and i have been able to connect the viewer to the 
server and produce the screenshot above, i believe it proves that access to all 
needed ressources was granted, am i wrong ?

Original comment by yann.bon...@gmail.com on 9 Jul 2010 at 11:02

GoogleCodeExporter commented 8 years ago
I see what looks like the same issue with Android on TI BeagleBoard.  I don't 
have root or busy box working, but the VNC server does still work.  My problem 
is similar with a green garbled screen and no ability to click-through.  

Would changing a few compiler parameters create a new binary that works?

Original comment by jonyoung...@gmail.com on 12 Jun 2011 at 4:26

Attachments:

GoogleCodeExporter commented 8 years ago
Try using this attached androidvncserver binary instead.  It is from the data 
in the android app and does not require busybox or rooting.  It fixed the issue 
for me.

Original comment by jonyoung...@gmail.com on 13 Jun 2011 at 1:44

Attachments:

GoogleCodeExporter commented 8 years ago
Same issue as http://code.google.com/p/android-vnc-server/issues/detail?id=23. 
This might be the cause:

http://code.google.com/p/android-vnc-server/source/browse/trunk/fbvncserver.c

Line 191:   /* TODO: This assumes scrinfo.bits_per_pixel is 16. */
Line 192:   vncscr = rfbGetScreen(&argc, argv, scrinfo.xres, scrinfo.yres, 5, 
2, 2);

As you can see the screen is always initialized for 16-bit color depth. All 
devices that do not work use 32-bit depth.

Too bad this project seems to be abandoned and not maintained any more...

Original comment by robert.p...@gmail.com on 21 Jul 2011 at 9:07