SCREEN graphics.conf配置

graphics.conf是什么?

graphics.conf是QNX screen框架中的配置文件,用于定义QNX屏幕系统的图形属性和行为。通常在screen服务启动的时候加载(通过screen -c $PATH/graphics.conf)。graphics.conf配置的内容包括:指定各种图形相关的设置,显示屏的分辨率、色彩模式、刷新率、图像缓冲区的分配方式以及其他与图形显示相关的选项。

graphics.conf配置内容(section)

khronos

指定与Khronos(GPU和WFD库)相关的库和参数。该部分中的库和参数适用于EGL显示和WFD驱动程序。这个section以begin khronos开始,以end khronos语句标识结束。
khronos部分可以包含以下subsection:
• egl display
• wfd device

例子:

begin khronos
  begin egl display 1
    egl-dlls = libESXEGL_Adreno.so
    glesv2-dlls = libESXGLESv2_Adreno.so
    glesv1-dlls = libESXGLESv1_CM_Adreno.so
    eglsub-dlls = libscreen.so.1 libeglSubDriverQnx.so
    c2d-dlls = c2d30.so
    gralloc-module = Adreno
  end egl display

  begin wfd device 1
    wfd-dlls = libopenwfd_qnx.so
  end wfd device
end khronos

winmgr

以 begin winmgr开始,以end winmgr结束。用于配置screen相关参数,例如screen全局配置,显示器参数,framebuffer配置等。

这个section中通常还需要配置subsection:globals,display,class

globals

这个配置部分是用来指定适用于整个Screen框架的全局参数。它以"begin globals"开始,并以"end globals"结束。在配置文件中只能有一个globals部分。

在globals部分中,可以设置一些适用于整个Screen框架的参数,例如屏幕的默认设置、全局的显示器配置、输入设备设置等。这些参数将应用于整个系统中的所有部分。

需要注意的是这个section支持的参数比较多,可以根据实际的需求进行修改,更多的参数细节可以参考QNX screen 7.0开发者手册 中的P693。

例子:

  begin globals
    blit-config = c2d
    input = keyboard,mouse
    default-display = 1
  end globals

- blit-config = c2d:这个参数指定了使用C2D(Composition Manager 2D)进行位块传输(blit)的配置。

- input = keyboard,mouse:这个参数指定了默认的输入设备,其中键盘和鼠标被定义为输入设备。

- default-display = 1:这个参数指定了默认显示器的编号,这里设置为1。

display

display子部分指定了适用于平台支持的物理显示器的配置。这个部分必须以"begin display display_id"开始,以"end display"结束,允许有多个display subsection,实际数量情况依据你的系统支持的物理显示器而定。

例子:

  begin display 1
    video-mode = 1920 x 720 @ 60
    cursor = auto
  end display

同样,display也支持非常多的参数:

部分参数配置在特定场景下需要配置,否则会出现黑屏的现象,比如background-alpha = 0,在使用scale特性和rotation特性的情况下,如果不配置则有可能出现黑屏现象(enable scale或者rotation)。

class

class中又分为了FramebuffersApplication windows。

Framebuffers:为每个display配置帧缓存buffer,screen允许每个display使用一个framebuffer。

例子,

  begin class framebuffer3
    display = 3
    pipeline = 8
    format = rgba8888
    usage = gles2
  end class

Application windows:todo

总结

一般可能会修改graphic.conf这个文件的几个角色:

芯片原厂工程师:通常是做display/GPU驱动porting时会进行修改

各家OEM/T1工程师/架构师:主要根据实际项目需求,修改配置,通常关注display和framebuffer section。

参考

QNX screen 7.0开发者手册

QNX 7.1 Screen Configuring Screen

LVDS用户手册第四版 National Semiconductor’s LVDS Owner’s Manual, frst published in spring 1997, has been the industry’s “go-to design guide” over the last decade. Te owner’s manual helped LVDS grow from the original IEEE 1596.3-1996 Standard for Low-Voltage Differential Signaling (LVDS) for Scalable Coherent Interface (SCI) into the workhorse technology it is today. LVDS is now pervasive in communications networks and used extensively in applications such as laptop computers, ofce imaging, industrial vision, test and measurement, medical, and automotive. It provides an attractive solution - a small-swing differential signal for fast data transfers at signifcantly reduced power and with excellent noise immunity. Along with the applications, LVDS continued to evolve over the last decade to meet specifc requirements such as Bus LVDS and Multipoint LVDS. For example, the latest LVDS products are capable of data rates in excess of 3 Gbps while still maintaining the low power and noise immunity characteristics. Today, many applications require even faster data rates and longer transmission paths. Terefore, designers should consider technologies such as Current-Mode Logic (CML) and signal conditioning for both LVDS and CML. Tat is why this new Fourth Edition includes practical design techniques for these technologies as well as LVPECL and LVCMOS. Tis owner’s manual provides useful and current information. It begins with a brief overview of the three most common high-speed interface technologies (LVDS (with variants B-LVDS and M-LVDS), CML, and LVPECL) a review of their respective characteristics, and a section on selecting the optimal technology for an application. Te manual then covers relevant topics such as level translation, jitter, signal conditioning, and suggested design approaches. Tis practical information will help you select the right solution for today’s interface design issues.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值