Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => STMP1 => Topic started by: yugandharbabu on May 03, 2023, 06:54:55 AM

Title: STMP157 Change LCD clock frequency or refresh rate
Post by: yugandharbabu on May 03, 2023, 06:54:55 AM
Hi,

I am using STMP157-OLinuXino-LIME2 board with LCD-OLinuXino-7CTS. I am writing to the LCD using OpenGL and DRM. I found that the LCD refresh rate is little low and need to increase it. How to achieve it?

Is it possible by changing any configuration file(s) in Linux OS or need to recompile the Linux source by changing configuration files? If yes, which file(s) need to be changed and what is the maximum supported refresh rate for STMP157 board?


Please help me to increase the LCD refresh rate. Thank you.
Title: Re: STMP157 Change LCD clock frequency or refresh rate
Post by: LubOlimex on May 03, 2023, 01:52:15 PM
You need to rebuild the image, clocks are located in this file:

https://github.com/OLIMEX/linux-olimex/blob/c5a31724bdfaac894553b51c5a0fb92c1f10f3db/drivers/gpu/drm/panel/panel-simple.c

Search for "olimex" around line 3000; you can see clock settings for different resolutions.