So the sleep entry still didn’t work.
Here’s what I did to get the problem fixed:
- Commented out the auto_run.sh line at the end of ~/.bashrc
Then, following instructions from the Respeaker Core V2 thread by @Dominik (link at the end):
-
Created the file
/etc/systemd/system/mycroft.service
with the following content:[Unit]
Description=Mycroft personal AI
After=seeed-voicecard.service[Service]
User=pi
WorkingDirectory=/home/pi/mycroft-core
ExecStart=/home/pi/mycroft-core/start-mycroft.sh all
ExecStop=/home/pi/mycroft-core/stop-mycroft.sh
Type=forking
Restart=always
RestartSec=3[Install]
WantedBy=multi-user.target -
Added the
pi
user the thepulse
andpulse-access
groups, not sure whether this was necessary. -
Enabled the service
sudo systemctl enable mycroft.service
Microphone now seems to start reliably after multiple reboots. And connecting over ssh is faster as it isn’t running auto_run.sh every time.