Topic: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

Dear Forum

I took the plunge and purchased a Raspberry Pi 5 (running bookworm) via a 7" touchscreen which I find a dream for running Pianoteq 8.4.0 via my Kawai VPC-1 and Topping D10s DAC, both plugged in via USB.  I just need to run in the compact interface mode to fit the GUI in the 800x480 resolution screen.

As a single use device, I would like Pianoteq to start on powering up the Pi.  I see all manner of suggested fixes for this online but most seem to refer to scripts etc. but not to installed programs.

I have no Linux knowledge so just looking for a procedure to follow that would work.  I have Pianoteq 8 installed in a Pianoteq 8 folder containing a arm-64bit sub folder containing an executable file called Pianoteq 8.  Double clicking on this icon (that has what looks like a paper aeroplane on it) starts Pianoteq.

I don't want any processor settings changed, etc. - just a way of starting up the program without me needing to double click the icon.

Thanks very much for any help with this.

Re: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

Flossybus wrote:

Dear Forum

I took the plunge and purchased a Raspberry Pi 5 (running bookworm) via a 7" touchscreen which I find a dream for running Pianoteq 8.4.0 via my Kawai VPC-1 and Topping D10s DAC, both plugged in via USB.  I just need to run in the compact interface mode to fit the GUI in the 800x480 resolution screen.

As a single use device, I would like Pianoteq to start on powering up the Pi.  I see all manner of suggested fixes for this online but most seem to refer to scripts etc. but not to installed programs.

I have no Linux knowledge so just looking for a procedure to follow that would work.  I have Pianoteq 8 installed in a Pianoteq 8 folder containing a arm-64bit sub folder containing an executable file called Pianoteq 8.  Double clicking on this icon (that has what looks like a paper aeroplane on it) starts Pianoteq.

I don't want any processor settings changed, etc. - just a way of starting up the program without me needing to double click the icon.

Thanks very much for any help with this.

It depends on what kind of GUI you use. If you use a GNOME-based one such as Gnome3, Mate, or even XFCE, in the main menu there is section called "startup application" where you can add Pianoteq. Since you likely installed Pianoteq on its own and not as part of the operating system itself, you won't find there a prepopulated entry for Pianoteq to select, but you will find an option to add "anything else" (or whatever is called) which you can use to select Pianoteq by manually including (=typing) its full path.

Where do I find a list of all posts I upvoted? :(

Re: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

Thank you so much for replying.  That's what I thought was missing as Windows has this folder.  Guess the next question is how do I check what GUI I have and how to replace it with GNOME3 if this is the recommended substitute.  So glad this isn't going to involve writing scripts and bash files (whatever they are)!

Re: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

Flossybus wrote:

Dear Forum

I took the plunge and purchased a Raspberry Pi 5 (running bookworm) via a 7" touchscreen which I find a dream for running Pianoteq 8.4.0 via my Kawai VPC-1 and Topping D10s DAC, both plugged in via USB.  I just need to run in the compact interface mode to fit the GUI in the 800x480 resolution screen.

As a single use device, I would like Pianoteq to start on powering up the Pi.  I see all manner of suggested fixes for this online but most seem to refer to scripts etc. but not to installed programs.

I have no Linux knowledge so just looking for a procedure to follow that would work.  I have Pianoteq 8 installed in a Pianoteq 8 folder containing a arm-64bit sub folder containing an executable file called Pianoteq 8.  Double clicking on this icon (that has what looks like a paper aeroplane on it) starts Pianoteq.

I don't want any processor settings changed, etc. - just a way of starting up the program without me needing to double click the icon.

Thanks very much for any help with this.

[Unit]
Description=Start Pianoteq STAGE
After=graphical.target

[Service]
User=pi
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
ExecStart='/home/pi/Pianoteq 8 STAGE/arm-64bit/Pianoteq 8 STAGE'
Restart=on-failure
RestartSec=2s
KillMode=control-group
TimeoutSec=infinity

[Install]
WantedBy=graphical.target


Copy-paste the text above.
Change ExecStart to the path for your Pianoteq file.
Change the username to the appropriate username (also note that it's there in one of the environment paths.).
I know it looks like a script, but the only thing it does is tell the system to start Pianoteq at the end of the boot process and restart if it fails to start correctly.
Save it as a .service file, e.g. "pianoteq.service".
In the terminal from the directory where you saved the file, use the following commands:

sudo cp pianoteq.service /lib/systemd/system/

sudo systemctl enable pianoteq.service

sudo systemctl start pianoteq.service


It should start Pianoteq straight away.
It should start Pianoteq at boot.
If it doesn't and the reason is something wrong with the .service file, fix that error and run:

sudo systemctl daemon-reload

and/or

sudo systemctl restart pianoteq.service

Last edited by henriq (15-11-2024 11:43)

Re: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

Flossybus wrote:

Thank you so much for replying.  That's what I thought was missing as Windows has this folder.  Guess the next question is how do I check what GUI I have and how to replace it with GNOME3 if this is the recommended substitute.

The replace part is hard: if you don't have data or configuration that you want to preserve, it'd be easy to reinstall the whole operating system. The how to check is looking into the menus and see how things are called. For example if there is a "System" menu, it should contain things like "MATE System Monitor" or "MATE Terminal" (the one you need to do what henriq suggested). In this example you have "MATE". Or it may contain "Gnome System Monitor" or "Gnome Terminal", then you have Gnome. But in the end it does not matter to you, just search for that Startup Applications, if it's there use it. The documentation (with pictures!) for using Startup Applications in Gnome is available at the following link. If you have MATE or XFCE the windows will look different, but they should have the same content, perhaps organized in a slightly different order. Here's the link: https://docs.redhat.com/en/documentatio...s-in-gnome (you just need it for your own user, not for "others" so you can omit that final, more intimidating part).

Flossybus wrote:

So glad this isn't going to involve writing scripts and bash files (whatever they are)!

Bash files are simply text file which have commands that tell the computer what to do. In fact it's better/easier to do stuff that way, rather than "search for this command in a menu, then click on that button, then a window appear, search for that tab in that window, click on that checkbox", which are time consuming and error prone. But I understand that people are used to the tedious latter and like it, whereas only a few have seen bash scripts and they feel intimidating (they are not, per se, but they could be if the commands written inside them are).


henriq wrote:

It should start Pianoteq straight away.
It should start Pianoteq at boot.
If it doesn't and the reason is something wrong with the .service file, fix that error and run:

If it doesn't how the OP should find what is wrong? Executing

sudo systemctl status pianoteq.service

But Flossybus does not seem eager to go with this approach (plus I use it all the time, but I've never used it for GUIs and I am not sure it'll work since some services might get started before the GUI is ready to accept them)

Where do I find a list of all posts I upvoted? :(

Re: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

If you installed the original Raspberry OS image, then you have the LXDE desktop, which is light on resources and it's great for PI.

The problem is that Pianoteq doesn't have an installer that would usually create a "Pianoteq.desktop" file
to use in the menu, desktop or the autostart directory. So you'll have to create one

You didn't specify the directory where you unpacked the Pianoteq.7z file, so I'll guess that you've just unpacked it in the Downloads directory.
If you unpacked into a different directory, modify the Exec path before pasting.
Open the terminal, and copy/paste all of this and after reboot it should start Pianoteq automatically:

echo Inside this dir you can put any .desktop file to autostart
mkdir ~/.config/autostart

echo Create a Pianoteq8.desktop file and add it to autostart
cat << EOF > ~/.config/autostart/Pianoteq8.desktop
[Desktop Entry]
Type=Application
Name=Pianoteq8
Exec="/home/user/Downloads/Pianoteq 8/arm-64bit/Pianoteq 8"
EOF

sudo reboot now

Re: Launching Pianoteq 8 at Startup on a Raspberry Pi 5

Revox - you are my hero.  Works just as you said it would.  I'm so pleased.  Thanks to you and others who responded for sharing your expertise.

revox wrote:

If you installed the original Raspberry OS image, then you have the LXDE desktop, which is light on resources and it's great for PI.

The problem is that Pianoteq doesn't have an installer that would usually create a "Pianoteq.desktop" file
to use in the menu, desktop or the autostart directory. So you'll have to create one

You didn't specify the directory where you unpacked the Pianoteq.7z file, so I'll guess that you've just unpacked it in the Downloads directory.
If you unpacked into a different directory, modify the Exec path before pasting.
Open the terminal, and copy/paste all of this and after reboot it should start Pianoteq automatically:

echo Inside this dir you can put any .desktop file to autostart
mkdir ~/.config/autostart

echo Create a Pianoteq8.desktop file and add it to autostart
cat << EOF > ~/.config/autostart/Pianoteq8.desktop
[Desktop Entry]
Type=Application
Name=Pianoteq8
Exec="/home/user/Downloads/Pianoteq 8/arm-64bit/Pianoteq 8"
EOF

sudo reboot now