Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3933

Beginners • Re: Systemd, gpiozero, permissions - boot vs shell

$
0
0
I verify below:

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 Card

Pi 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 Card
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.

Statistics: Posted by c3_x_pop — Tue Nov 26, 2024 7:30 pm



Viewing all articles
Browse latest Browse all 3933

Trending Articles