Run OpenRGB at boot?

Having some trouble getting openrgb to run at boot. I've used the task scheduler in system setting to try to get it to work but haven't had much luck. When I manually run the task it works, it just wont do it automatically at boot. Any help is greatly appreciated!
5 Replies
Geechan
Geechan9mo ago
What I did was add OpenRGB as a startup app (GNOME Tweaks for GNOME, built into KDE settings for KDE), then I opened the client and set "Minimise on Close" and "Start Minimised", "Start At Login"
No description
Geechan
Geechan9mo ago
No description
©TriMoon™
©TriMoon™9mo ago
Take a look at the below, to see if you can use the info there to start OpenRGB that way: https://gitlab.com/-/snippets/3669472
©TriMoon™
©TriMoon™9mo ago
Current configs seem not to work for Gnome though, because that uses a different mechanism for autostarts...
Xipher
Xipher8mo ago
I tend to use a systemd service file and a script that runs openrgb via the CLI when the system boots and loads a profile that I created in the OpenRGB GUI. Once a profile has been created, you can create a small bash script that runs the openrgb command calling on the profile. I place both the bash script and the service file in ~/.config/systemd/user folder. My OpenRGB_SetProfile.sh script contains this:
#!/bin/bash

#Start RGB in Purple and Pink Preset:
flatpak run --branch=stable --arch=x86_64 --command=openrgb org.openrgb.OpenRGB --profile /home/deck/.var/app/org.openrgb.OpenRGB/config/OpenRGB/Purple.orp
#!/bin/bash

#Start RGB in Purple and Pink Preset:
flatpak run --branch=stable --arch=x86_64 --command=openrgb org.openrgb.OpenRGB --profile /home/deck/.var/app/org.openrgb.OpenRGB/config/OpenRGB/Purple.orp
The service file OpenRGB_Start.service contains this:
Description=Set Lighting on Boot
After=network-online.target

[Service]
Type=simple
StandardOutput=journal
ExecStart=/home/deck/.config/systemd/user/OpenRGB_SetProfile.sh

[Install]
WantedBy=default.target
Description=Set Lighting on Boot
After=network-online.target

[Service]
Type=simple
StandardOutput=journal
ExecStart=/home/deck/.config/systemd/user/OpenRGB_SetProfile.sh

[Install]
WantedBy=default.target
Once you have the script and service file created and in the correct folder you simply need to enable the new service as a user service with this command:
sudo systemctl --user enable --now OpenRGB_Start.service
sudo systemctl --user enable --now OpenRGB_Start.service
Want results from more Discord servers?
Add your server