[core]# Boards could have not any input device, and only use# removable input device like usb(keyboard, mouse).
require-input=false
[output]
name=DSI-1
transform=0
[shell]# 480x800
background-image=/oem/yd_rootfs_background.png
# scale, scale-crop or tile(default)
background-type=scale-crop
panel-position=none
# fade(default),none#close-animation=none# The hexadecimal digit pairs are in order alpha, red, green, and blue.
background-color=0x00ffffff
备注:
(1)name的查看:ls /sys/class/drm/ --> 名字即为DPI-1
card0 card0-DPI-1 controlD64 renderD128 version
(2)transform::旋转角度
(3)background-image:背景图片
(4)background-color:背景颜色
# The hexadecimal digit pairs are in order alpha, red, green, and blue.
background-color=0x00ff0000 --> 不显示
background-color=0xffff0000 --> 显示红色
alpha:00-全透明 ff-不透明
background-color表示背景颜色,这里设置为0x00FFFFFF,表示完全透明,即没有该背景图
作用:在weston启动时,在启动图标和UI显示屏之间短暂切换时会出现黑屏,如果需要方式黑屏,可以通过以下动态配置文件方法临时冻结weston屏幕内容
export WESTON_FREEZE_DISPLAY=/tmp/.weston_freeze # Set the path of the special configuration file#冻结屏幕touch /tmp/.weston_freeze # Freeze display
weston --tty=2 -B=drm-backend.so --idle-time=0
#解冻屏幕,在实际应用中,这块是在应用层删除sleep 1 &&rm /tmp/.weston_freeze&# Thaw in 1 second
3.动态的旋转屏幕
#如果需要动态配置屏幕方向,则可以使用动态配置文件,其中名字可以使用命令:ls /sys/class/drm/查看echo"output:all:rotate90"> /tmp/.weston_drm.conf # All screens are rotated 90 degreesecho"output:eDP-1:rotate180"> /tmp/.weston_drm.conf # eDP-1 rotate 180 degrees
0.设置配置文件/etc/xdg/weston/weston.ini文件内容如下:[core]# Boards could have not any input device, and only use# removable input device like usb(keyboard, mouse).require-input=false[output]name=DSI-1transform=0[shell]# 480x800background-image=/oem/yd_rootf