pulquero / RotorHazard

Multi-node video transmitter race timer for drone racing
Other
6 stars 0 forks source link

No Sound when run under systemctl (audio branch) #48

Open martinglass opened 3 years ago

martinglass commented 3 years ago

The audio works when the server is run from the command line (python3 -m server.server) but it doesn't work when the server is run from systemctl

pulquero commented 3 years ago

See https://raspberrypi.stackexchange.com/questions/120034/python-script-not-playing-audio-when-run-through-systemd

martinglass commented 3 years ago

sudo cat /proc/asound/cards 0 [Headphones ]: bcm2835_headphonbcm2835 Headphones - bcm2835 Headphones bcm2835 Headphones sudo nano /etc/asound.conf defaults.pcm.card 0 defaults.ctl.card 0 ctl/x

martinglass commented 3 years ago

I tried the workaround, but alas it didn't work for me. Sound doesn't come out using systemctl, but it does come out when the server is run from the command line.

martinglass commented 3 years ago

Nothing worked. Now, I've gone back to the original and rebooted. But I can't get sound out of bluetooth, even when it's connected using sudo bluetoothctl

I get this error when I try nanotts -i "Hello World" -p error: snd_pcm_writei: Broken pipe

I'm giving up for today!