cancel
Showing results for 
Search instead for 
Did you mean: 

Disable weston autostart in STM32MP157C-DV2

hochul yoo
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

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.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

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

Thank you.

It works fine.