jas99
jas99

Reputation: 81

Beaglebone Boot to Qt App

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

Upvotes: 2

Views: 1978

Answers (2)

706Astor
706Astor

Reputation: 285

Consider removing

#!/bin/sh

Also add the following to the file

[Unit]
[email protected] 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

Upvotes: 0

Mahendra Gunawardena
Mahendra Gunawardena

Reputation: 1976

The following commands will disable gdm on Beaglebone Black running angstrom

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

Upvotes: 1

Related Questions