I verify below:
Pi Zero W:
Pi Zero 2 W:The result means 'bluetooth.target' and `sound.target` are not available for USER service on Pi Zero 2 W.
I don't know the reason for this, but my user service should not depends on them. Also, using timer is not a reliable solution.
I will revert the changes made to delay the start of the service and modify the service itself to ensure the access to '/dev/mem' (or other resources) before using GPIO library.
Pi Zero W:
Code:
$ systemctl list-units --type target --user | egrep "sound|bluetoot" bluetooth.target loaded active active Bluetooth sound.target loaded active active Sound Card$ systemctl list-units --type target | egrep "sound|bluetoot" bluetooth.target loaded active active Bluetooth Support sound.target loaded active active Sound CardPi Zero 2 W:
Code:
$ systemctl list-units --type target --user | egrep "sound|bluetoot"$ systemctl list-units --type target | egrep "sound|bluetoot" bluetooth.target loaded active active Bluetooth Support sound.target loaded active active Sound CardI don't know the reason for this, but my user service should not depends on them. Also, using timer is not a reliable solution.
I will revert the changes made to delay the start of the service and modify the service itself to ensure the access to '/dev/mem' (or other resources) before using GPIO library.
Statistics: Posted by c3_x_pop — Tue Nov 26, 2024 7:30 pm