This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can we change Vnc resolution change?

Hi all

I have black beagle bone board for port the android OS.
I already downloaded Prebuilt of android 4.2.2 from TI site.

http://downloads.ti.com/sitara_android/esd/TI_Android_DevKit/TI_Android_JB_4_2_2_DevKit_4_1_1/index_FDS.html

Its working fine than after i downloaded droid vnc server from this  https://github.com/oNaiPs/droid-VNC-server and install vnc apk file on my BBB.

I am able to get vnc on my desktop machine also. But i want to change vnc resolution from vnc server side means (on Black beagle bone board).

I want to change its width and height 800x480. So from where i can change the display size on board ?

I have also this build source code from this site :  http://processors.wiki.ti.com/index.php/TI-Android-JB-4.2.2-DevKit-4.1.1_DeveloperGuide#Using_Pre-Packaged_Sources

If i need to change in source code and then i need to build File system again then let me know.

Any help would be appreciated.

below are logs of start vnc server on boarLoading

lib: /data/data/org.onaips.vnc/lib/

/libdvnc_flinger_sdk17.so
AKI1
--Initializing gingerbread access method--
AKII12AKI2
Initializing vir[ 6194.203582] input: Generic as /devices/virtual/input/input2
tual keyboard and touch device...
---Initializing uinput...---
Initializing VNC server:
        width:  1280
        height: 720
        bpp:    32
        port:   5901
Colourmap_rgba=0:8:16:24    lenght=8:8:8:8


Thanks

  • Hello,

    If you look at arch/arm/mach-omap2/board-am335xevm.c , the display configuration for VNC server is Sharp_LCD035Q3DG01. You can either edit this panel configuration at drivers/video/da8xx-fb.c or select a different panel for vnc_lcdc_init.

    Regards,

    Arun

  • Hi Arun,

    Thanks for your kind reponse.

    First i want to share some thing with you. I am never going to use HDMI display or LED never. I want to see my vnc at 800x480 resolution on my desktop.


    So can u please tell me how can i apply solution which you given to me in your answer.

    I have source code also of filesystem kernel and all. and prebuilt images also.

    I am looking for your reponse , Thanks again for help

    Thanks

  • Hi,

    On BeagleBone Black, HDMI display is initialized by default. To have vnc display with 800x480 resolution you may apply the below patch

    @@ -1766,7 +1766,7 @@ static void vnc_lcdc_init(int evm_id, int profile)
                                    "register LCDC\n");
                    return;
            }
    -       if (am33xx_register_lcdc(&Sharp_LCD035Q3DG01_pdata))
    +       if (am33xx_register_lcdc(&TFC_S9700RTWV35TR_01B_pdata))
                    pr_info("Failed to register LCDC device\n");
            return;
     }
    @@ -3699,11 +3700,12 @@ static void bone_setup_display_daughter_board(struct memory_accessor *m, void *c
             * to enable framebuffer driver which is needed for successful Android bootup
             */
            pr_info("No display cape found on BeagleBone\n");
    -
    +#if 0
            /* HDMI display is setup for BeagleBone Black */
            if (am335x_evm_get_id() == BEAGLE_BONE_BLACK)
                    hdmi_init(DEV_ON_BASEBOARD, PROFILE_NONE);
            else
    +#endif
                    vnc_lcdc_init(DEV_ON_BASEBOARD, PROFILE_NONE);
     }

    Regards,

    Arun

  • Thanks Arun for your quick response.

    I will do changes as said by you in post but One question from my side where it will take 800*480 resolution.

    May be this question raise in my mind as i am new in these things.

    After these all changes i need to build kernel ,u-boot and flie system as per TI dev kit and prepare sdcard ? Am i right?

    Looking for you reply.

    Thanks

  • Hi Arun

    Yes i did change as u said in kernel and now its taking resolution as i want.

    Thanks a lot for your Great Help.

    Thanks

  • Hi Arun

    Again thanks for your help about this question but here i am getting some problems about vnc right side cuts the screen. I am able to see black bar only.

    Can you please refer this question then you can get more idea about this.

    http://e2e.ti.com/support/embedded/android/f/509/t/292102.aspx

    Thanks