aloksinha2001 / Linux3188

Linux Source - RK3188 - PicUntu
Other
99 stars 98 forks source link

screen resolution #27

Open danielprint opened 10 years ago

danielprint commented 10 years ago

I'm trying to change the resolution to 480p through marvin the script, you think this is possible? I have a monitor that works with that resolution but does not support the upper.

julienchauveau commented 10 years ago

Hello,

Have a look at file drivers/video/rockchip/hdmi/hdmi_lcdc.c This resolution should be supported: 720x480p@60Hz

So you can try changing HDMI_VIDEO_DEFAULT_MODE in drivers/video/rockchip/hdmi/rk_hdmi.h

Line 321, modify like this for a 4/3 monitor:

#define HDMI_VIDEO_DEFAULT_MODE HDMI_720x480p_60HZ_4_3

or like that for a 16/9 monitor:

#define HDMI_VIDEO_DEFAULT_MODE HDMI_720x480p_60HZ_16_9
danielprint commented 10 years ago

thanks for your reply, I had already tried that, when compiled, an error regarding the get_fb_size emerged, this feature was not present in lcd_480p.c file, so I added and also changed the kernel to 480p, however he compiled a 720p resolution remains on the monitors.

sorry my english

sgjava commented 10 years ago
size_t get_fb_size(void)
{
    size_t size = 0;
    #if defined(CONFIG_THREE_FB_BUFFER)
        size = ((H_VD)*(V_VD)<<2)* 3; //three buffer
    #else
        size = ((H_VD)*(V_VD)<<2)<<1; //two buffer
    #endif
    return ALIGN(size,SZ_1M);
}

This worked on my Lapdock.

danielprint commented 10 years ago

thank you for your commitment and dedication, followed all the steps, the tamnho the 480p screen is put in the info display continues 1080p

sgjava commented 10 years ago

This is strange, but I've had some kernels (RK3188 and RK3066) that were 1080P detect the lower resolution and adjust (although blinking) and some just show "out of range" on the lapdock. When I compile for 480P it actually works at 480P. Can you try another device like a 720P or 1080P TV and see what it comes up as?

danielprint commented 10 years ago

thanks for your reply, good, it seems the problem is compatibility with my hardware, the device can not work the low 720p. The way is to buy a screen that supports that resolution with 7 or 10 inches

sgjava commented 10 years ago

I bought a Lapdock http://www.ebay.com/itm/Lapdock-for-Motorola-ATRIX-4G-11-6-Motorola-AT-T-/321036423824, but it is 1366x768, so it can only support 480P and 720P. This was cheaper than a small HDMI monitor plus you get a keyboard and USB ports. It will allows you to make a mini PC and Lapdock into a laptop.

On Mon, Apr 7, 2014 at 2:43 PM, Daniel notifications@github.com wrote:

thanks for your reply, good, it seems the problem is compatibility with my hardware, the device can not work the low 720p. The way is to buy a screen that supports that resolution with 7 or 10 inches

Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/Linux3188/issues/27#issuecomment-39767632 .

Steven P. Goldsmith

danielprint commented 10 years ago

this is perfect! can run up raspberry! thank you!

sgjava commented 10 years ago

The screen, keyboard and mouse pad work on MK808 and MK802IV (should support any Google TV stick), but you will need adapters since it uses mirco HDMI and micro USB. You can get the HDMI and USB adapters on EBay cheap from China. It takes a while coming from China, but you save a lot of money. I paid $89 US for a new Lapdock on EBay I believe which is a lot cheaper than HDMI monitors.

For Pi: http://www.instructables.com/id/The-Raspberry-Pi-Lapdock-Connection For MK802IV: http://www.rikomagic.co.uk/forum/viewtopic.php?f=2&t=34

On Mon, Apr 7, 2014 at 7:27 PM, Daniel notifications@github.com wrote:

this is perfect! can run up raspberry! thank you!

Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/Linux3188/issues/27#issuecomment-39796107 .

Steven P. Goldsmith