Skip to main content
hochul yoo
Associate III
March 4, 2021
Solved

Disable weston autostart in STM32MP157C-DV2

  • March 4, 2021
  • 2 replies
  • 3416 views

I am evaluate the STM32MP157C-DV2 board.

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

root@stm32mp1:~# systemctl disable weston@root.service

root@stm32mp1:~# reboot

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

What's the problem?

Thank you in advance.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @hochul yoo​ ,

Sorry the wiki page was not up-to-date, this is missing informations ( added in couple of days) :

The Weston service is automatically started on boot thanks to an udev rules file, most of the time located in /etc/udev/rules.d/*weston*, for instance /etc/udev/rules.d/71-weston-drm.rules.

To disable this service, rename this file (by changing its extension for instance), then restart your board.

To re-enable this service, rename this file according to the udev rules of your system.

Hope it help

Olivier

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
March 16, 2021

Hi @hochul yoo​ ,

Sorry the wiki page was not up-to-date, this is missing informations ( added in couple of days) :

The Weston service is automatically started on boot thanks to an udev rules file, most of the time located in /etc/udev/rules.d/*weston*, for instance /etc/udev/rules.d/71-weston-drm.rules.

To disable this service, rename this file (by changing its extension for instance), then restart your board.

To re-enable this service, rename this file according to the udev rules of your system.

Hope it help

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
hochul yoo
Associate III
March 17, 2021

Thank you.

It works fine.