Topic: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices
Hi there,
My aim is to set up my system such that switching it on is more or less as smooth as switching on a digital upright piano.
I have this setup:
- Pianoteq 5 Standard trial (which will purchased eventually)
- Laptop quad core 2.2GHz, 8 GB RAM
- SSD
- Ubuntu Studio 16.04.1 64 Bit
My system boots up in seconds.
I have set auto-login at boot-up.
I have created a script that starts Pianoteq 5.
I have added this script to the list of startup programs so it is automatically started upon login.
I noticed that Pianoteq is not able to connect to the ALSA sound this way. It comes up with the message that a sound device needs to be selected. I can then from the Pianoteq preferences select the audio I want and all is well.
If I put a 5 second sleep in the startup script before invoking Pianoteq then all is fine.
Has anyone experienced this? I suspect the system is still in the process of setting up the sound system so it is not available when Pianoteq tries to connect to it first time. Is there a way I can detect the sound system status?
I have tried to check the status of the sound system in the script but could not find anything.
Running "aplay -l" right at the beginning and then 5 s later shows no difference. I have experimented with modprobe too. No success.
Instead of waiting the full 5 seconds, I would like to check whether the audio system is ready and then start Pianoteq immediately after that.
Has anyone done this? Any help would be much appreciated.
Cheers,
Joerg