194 views
in System Integration by

I am trying to use an embedded wizard based on STM32MP1.
I am testing using the STM32MP157C-DK2 discovery board.
I have successfully run the demo application by referring to the link below.
https://doc.embedded-wizard.de/getting-started-stm32mp157c-dk2?v=10.00

But now the weston service starts automatically on boot.
In order to run the EW App, a procedure to terminate the weston service is required.
# systemctl stop weston@root.service

I tried to disable the automatic start of the weston service by referring to the wiki below.
https://wiki.st.com/stm32mpu/wiki/How_to_stop_and_start_Weston

but it does not work properly.
Still the weston service will run automatically and a demo application will appear.
Status is static after disable as shown below.


root@stm32mp1:~# systemctl disable weston@root.service
root@stm32mp1:~# systemctl status weston@root.service
[[0;1;32m*[[0m weston@root.service - Weston Wayland Compositor (on tty7)
   Loaded: loaded (/lib/systemd/system/weston@.service; static; vendor preset: disabled)
   Active: [[0;1;32mactive (running)[[0m since Fri 2021-03-05 06:00:23 UTC; 16min ago
  Main PID: 3884 (weston)
   Memory: 792.0K
   CGroup: /system.slice/system-weston.slice/weston@root.service
       > 3884 /usr/bin/weston --log=/var/log/weston.log --xwayland


Do you know how to disable the weston service so that the EW app can run automatically at boot time?

Thank you in advance.

1 Answer

0 votes
by

According to ST Wiki following command should disable the automatic start of the Weston service:

systemctl disable weston@root.service

However, this is not working on my STM32MP157C-DK2 system, too. An alternativ solution, that is working for me is to mask the service:

systemctl mask weston@root.service to disable the Weston service and
systemctl unmask weston@root.service to re-enable the Weston service

by

Thanks for the answer.


I have already tried the mask option.
The weston service was not running.

root@stm32mp1:/usr/local# systemctl status weston@root.service
* weston@root.service
     Loaded: masked (Reason: Unit weston@root.service is masked.)
     Active: inactive (dead)

However, when I run EmbeddedWizard, an initialization failure occurs.

root@stm32mp1:/usr/local# ./EmbeddedWizard-STM32MP157C-DK2
Initialize Display...                        [failed]

 

by
Before starting the Embedded Wizard application you have to quit the splash screen process using:
/usr/bin/psplash-drm-quit

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...