安装环境
sudo apt-get install gnome-tweaks
开发板执行
创建disp1图层
cd /sys/kernel/debug/dispdbg
echo disp0 > name; echo switch1 > command; echo 1 4 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start;
echo 1 > /sys/class/disp/disp/attr/colorbar
cd /sys/kernel/debug/dispdbg
echo disp1 > name; echo switch1 > command; echo 4 10 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start;
查看图层信息
cat /sys/devices/virtual/disp/disp/attr/sys
考官方文档截屏,导出的图像是正常的
echo 0 > /sys/class/disp/disp/attr/disp
echo /data/filename.bmp > /sys/class/disp/disp/attr/capture_dump
使用colorbar,显示不正常
echo 0 > /sys/class/disp/disp/attr/disp
echo 2 > /sys/class/disp/disp/attr/colorbar
echo 1 > /sys/class/disp/disp/attr/disp
echo 1 > /sys/class/disp/disp/attr/colorbar
重新对LCD初始化就正常了。
mount -t debugfs none /sys/kernel/debug;
cd /sys/kernel/debug/dispdbg;
echo suspend > command; echo disp0 > name; echo 1 > start
echo resume > command; echo disp0 > name; echo 1 > start
echo suspend > command; echo disp1 > name; echo 1 > start
echo resume > command; echo disp1 > name; echo 1 > start
修改配置文件,增加双屏信息
vi /etc/config/libuapi
config device_config 'screen1'
option DeviceUsed '1'
option Type '4'
option Mode '10'
option Format '0'
option Bits '0'
option Eotf '4'
option Cs '0x101'
option DviHdmi '0'
option Range '0'
option Scan '0'
option AspectRatio '8'
config device_display 'disp_screen'
option Screen '0'