The invention discloses a screen anti-flicker method applied in the start-up process of man-machine interface, which includes the following steps: starting BOOT software; initializing the LCD controller signal of CPU; removing the setting function of the core LCD controller; starting the core and opening the LCD frame synchronization interrupt; applying the virtual display cache of the core and copying the current liquid crystal. In frame synchronization interrupt, switch the base address of kernel Framebuffer to virtual memory; close the first frame synchronization interrupt after switching, and continue to start the system normally. By opening the frame synchronization interrupt, copying the LCD liquid crystal content to the virtual buffer of the kernel, switching the real address to the virtual address, and switching off the frame synchronization interrupt immediately after the first switching, this method fundamentally avoids the flickering problem of the LCD when the operating system starts up, and greatly improves the human being. The user experience of LCD display is initiated during the machine interface.
【技术实现步骤摘要】
一种应用于人机界面启动过程中的屏幕抗闪烁的方法
本专利技术涉及计算机
,具体是一种应用于人机界面启动过程中的屏幕抗闪烁的方法。
技术介绍
人机界面在从BOOT启动到Linux内核的过程中,LCD液晶会从一个无操作系统的软件运行环境切换到有高级操作系统的软件运行环境。两个软件的运行环境没有任何关系,其各自会初始化自己所使用的软硬件资源,导致LCD液晶被初始化2次,两次之间的生硬切换,导致了显示屏的启动过程中的抖动。此类问题不但广泛存在于嵌入式Linux操作系统,也存在于Windows系列、RTOS等操作系统。因此,针对这一现状,迫切需要开发一种应用于人机界面启动过程中的屏幕抗闪烁的方法,以克服当前实际应用中的不足。
技术实现思路
本专利技术的目的在于提供一种应用于人机界面启动过程中的屏幕抗闪烁的方法,以解决上述
技术介绍
中提出的问题。为实现上述目的,本专利技术提供如下技术方案:通过控制BOOT与操作系统切换时的CPU的LCD控制器的初始化过程与动态缓存切换的过程,从LCD液晶的角度出发,对液晶屏幕的闪烁原因进行了有效规避。即利用LCD液晶时序上的输入特定,通过在BOOT和内核的代码切换时的特殊处理,达到LCD屏幕无任何闪烁的启动。其具体实现步骤如下:步骤1,启动BOOT软件;步骤2,初始化CPU的LCD控制器信号;步骤3,去掉内核LCD控制器设置功能;步骤4,启动内核,打开LCD帧同步中断;步骤5,申请内核虚拟显示缓存,拷贝当前液晶画面数据到虚拟显存;步骤6,帧同步中断中,切换内核Framebuffer基地址到虚拟显存;步骤7,关闭切换后的首次帧同步中断,继 ...
【技术保护点】
1.一种应用于人机界面启动过程中的屏幕抗闪烁的方法,其特征在于,包括以下步骤:步骤1,启动BOOT软件;步骤2,初始化CPU的LCD控制器信号;步骤3,去掉内核LCD控制器设置功能;步骤4,启动内核,打开LCD帧同步中断;步骤5,申请内核虚拟显示缓存,拷贝当前液晶画面数据到虚拟显存;步骤6,帧同步中断中,切换内核Framebuffer基地址到虚拟显存;步骤7,关闭切换后的首次帧同步中断,继续正常启动系统。
【技术特征摘要】
1.一种应用于人机界面启动过程中的屏幕抗闪烁的方法,其特征在于,包括以下步骤:步骤1,启动BOOT软件;步骤2,初始化CPU的LCD控制器信号;步骤3,去掉内核LCD控制器设置功能;步骤4,启动内核,打开LCD帧同步中断;步骤5,申请内核虚拟显示缓存,拷贝当前液晶画面数据到虚拟显存;步骤6,帧同步中断中...
【专利技术属性】
技术研发人员:梁喜东,李素芬,马学童,
申请(专利权)人:深圳繁易电气有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。