Ufuk Ardal Posted July 29, 2022 Share Posted July 29, 2022 Hi I'm auto-login using nodm with orange pi. I run my udp.py file by creating a file named udp.desktop under the .etc/xdg/autostart folder at startup. but I need to play the wav file using pygame in the .py file, but I get a warning that the audio device could not be initialized. If I trigger my .py file manually, I can play the wav file without any problems. probably unable to load sound drivers during autostart. Can you help with this. 0 Quote Link to comment Share on other sites More sharing options...
Myron Posted July 29, 2022 Share Posted July 29, 2022 Providing logs with armbianmonitor -u helps with troubleshooting. Just a thought. during our auto start, what if you introduce a delay before attempting to play your wav file. The delay is to give time for things to initialise first. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.