美文网首页
IMX6-Yocto-设置qt应用开机启动

IMX6-Yocto-设置qt应用开机启动

作者: Lazy_Caaat | 来源:发表于2018-10-17 17:35 被阅读0次
//修改这个文件/etc/init.d/rc.local
export DISPLAY=:0.0//设置显示设备,否则会提示QXcbConnection: Could not connect to display
cd /  //进入应用所在的目录 
./untitled &   //后台执行QT应用
ifconfig can0 down   //设置CAN波特率
ip link set can0 type can bitrate 500000 triple-sampling on
ifconfig can0 up
amixer set PCM 100%    //设置音量
image.png

相关文章

网友评论

      本文标题:IMX6-Yocto-设置qt应用开机启动

      本文链接:https://www.haomeiwen.com/subject/zqbrzftx.html