Beaglebone Boot to Qt App

这一生的挚爱 提交于 2019-12-08 08:25:09

问题


I have searched & googled a lot but I cannot get this to work.

I want the Beaglebone to boot up into my Qt application. However, what I get is that the GUI boots up OK but then in a few seconds the Angstrom login screen overwrites my GUI, which stays running in the background.

I set up a systemd service as follows in /etc/systemd/system:

#!/bin/sh

[Unit]
Description=Meta Systemd script
[Service]
USER=root
WorkingDirectory=/home/root
ExecStart=/bin/sh -c 'source /etc/profile ; /home/root/meta6 -qws'
After=local-fs.target
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

I activated it with:

systemctl enable meta.service

I disabled gdm with:

systemctl disable gdm

I suspect that maybe I should change the After statement to wait 'til some other service is complete. But what?

Regards, James


回答1:


The following commands will disable gdm on Beaglebone Black running angstrom

update-rc.d -f gdm remove
systemctl disable gdm.service



回答2:


Consider removing

#!/bin/sh

Also add the following to the file

[Unit]
After=getty@.service or getty.target

Also change the following

[Service]
ExecStart=/home/root/meta6 -qws'

The following might not be required

[Service] 
After=local-fs.target

Reference

  • Creating Ångström System Services on BeagleBone Black


来源:https://stackoverflow.com/questions/19730787/beaglebone-boot-to-qt-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!