linux启动qt登陆时_在嵌入式Linux设备(Beaglebone Black)上启动时启动QT应用程序

Below is picture of the display on bootup. Expected display is overwritten by Angstrom screen

Expected Display

Application is been started as a service. Below is the content of the service file

[Unit]

Description=QTAccelerometer GUI

After=systemd-user-sessions.service

[Service]

WorkingDirectory=/home/root/projects/qt-projects

ExecStart=/home/root/projects/qt-projects/QTAccelerometer -qws

SyslogIdentifier=QTAccelerometer

Restart=on-failure

RestartSec=5

[Install]

Alias=display-manager.service

Below are the other options tried without success

[Install]

WantedBy=multi-user.target

WantedBy=graphical.target

The system sometimes boots up as expected. When the issue occurs the expected screen splashes followed by the Angstrom screen. Then the dynamic widget update the screen but the static information is not visible.

I have posted source code for the application here.

Notes: Angstrom uses systemd as the init manager, per this blog post.

Any thoughts as to how to fix this issue. Thank you in advance

References

解决方案

Try the following

[Unit]

After=getty@.service or getty.target

[Install]

WantedBy=multi-user.target

Also consider removing the following from the service file

After=systemd-user-sessions.service

Alias=display-manager.service

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值