Quantcast
Viewing all articles
Browse latest Browse all 5369

Troubleshooting • Re: How to get USB Speaker on Raspberry Pi to run on boot-up?

Couple of things though I'm not an expert on sound and Linux.
  1. .bashrc is not a good choice:
    1. If no user logs in it is not run
    2. .bashrc is processed multiple times - on every login regardless of method, everytime a new terminal window is opened in the desktop, etc. Unless you have taken steps to prevent it (or there is a conflict that prevents a second copy starting) you'll end up with multiple copies of your code running
    3. If you're redirecting program output with ">" later attempts will overwrite output from earlier ones.
  2. The Linux sound subsystem is only started at login. This may take longer than it takes to start your code.
  3. The environment under thonny is not the same as under other methods.

Statistics: Posted by thagrol — Sun May 05, 2024 11:29 am



Viewing all articles
Browse latest Browse all 5369

Trending Articles