Starting software automatic on Steam Gaming Mode

Is is possible to start some desktop software automatically when using the Steam Gaming Mode? If not, is it possible to implement this feature? I want to start OpenRGB automatically (in background if possible) to turn of all RGB.
22 Replies
termdisc
termdisc3w ago
maybe as a systemd service. I do that with syncthing
Wolf™
Wolf™OP3w ago
Yes, i tryed to do this, but i cant get to work. I want to use an appimage. I can start the appimage without problems in terminal. But it dont want to start through the service. Code 203 and when i use --user i get code 216.
Kyle Gospo
Kyle Gospo3w ago
Systemd service with the application running headless is the only good way to do this Anything else will make Gamemode think you started a game
termdisc
termdisc3w ago
post your .service file
Wolf™
Wolf™OP3w ago
[Unit] Description=OpenRGB After=network.target [Service] User=agentwolf Group=wheel ExecStart=/home/agentwolf/AppImages/openrgb.appimage --server Restart=always RemainAfterExit=no [Install] WantedBy=multi-user.target
No description
Wolf™
Wolf™OP3w ago
I need to start this line at boot... /var/home/agentwolf/AppImages/openrgb.appimage --server --profile wolf
No description
Wolf™
Wolf™OP3w ago
I think its not possible to create custom services on bazzite. I tryed now to create a service to start a .sh file and it does not work to.
Kyle Gospo
Kyle Gospo3w ago
It's possible, I have eight of them There's nothing preventing it
Wolf™
Wolf™OP3w ago
But why my services does not work? In which folder are yours?
Kyle Gospo
Kyle Gospo3w ago
They're all over the place I don't have any app images, but I have bash scripts like you that just work
Wolf™
Wolf™OP3w ago
And how looks the service?
Kyle Gospo
Kyle Gospo3w ago
Try /usr/local/bin Very much the same as yours Make sure your bash script is also marked as executable Otherwise it'll never run
Wolf™
Wolf™OP3w ago
enable the service with --user?
Kyle Gospo
Kyle Gospo3w ago
Yeah
Wolf™
Wolf™OP3w ago
Failed to enable unit: Unit openrgb3.service does not exist
Wolf™
Wolf™OP3w ago
No description
No description
Kyle Gospo
Kyle Gospo3w ago
I didn't mean the service, I meant the executable bash script Your service goes in the same place it did last time Standard paths
Wolf™
Wolf™OP3w ago
Same
No description
Wolf™
Wolf™OP3w ago
I dont understand it.
termdisc
termdisc3w ago
you probably need to scale back on the things you added to the `.service file
outphase@bazzite:~/AppImages$ systemctl --user enable openrgb.service --now
Created symlink '/home/outphase/.config/systemd/user/multi-user.target.wants/openrgb.service' → '/home/outphase/.config/systemd/user/openrgb.service'.
Unit /home/outphase/.config/systemd/user/openrgb.service is added as a dependency to a non-existent unit multi-user.target.
outphase@bazzite:~/AppImages$ systemctl --user status openrgb.service
● openrgb.service - OpenRGB
Loaded: loaded (/home/outphase/.config/systemd/user/openrgb.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/user/service.d
└─10-timeout-abort.conf
Active: active (running) since Tue 2025-02-11 12:21:08 CST; 49s ago
Invocation: 2bbd34b8a1864f6983a5d28e7af708e7
Main PID: 449280 (AppRun.wrapped)
Tasks: 21 (limit: 38137)
Memory: 21.7M (peak: 22.5M)
CPU: 839ms
CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/openrgb.service
├─449280 /tmp/.mount_openrgK2DOIm/AppRun.wrapped --server
└─449284 /home/outphase/AppImages/openrgb.appimage --server

Feb 11 12:21:08 bazzite systemd[2760]: Started openrgb.service - OpenRGB.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Attempting to connect to local OpenRGB server.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Connection attempt failed
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Local OpenRGB server unavailable.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Running standalone.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Network connection thread started on port 6742
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: [i2c_smbus_linux] Failed to read i2c device PCI device ID
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: [i2c_smbus_linux] Failed to read i2c device PCI device ID
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: [i2c_smbus_linux] Failed to read i2c device PCI device ID
outphase@bazzite:~/AppImages$ systemctl --user enable openrgb.service --now
Created symlink '/home/outphase/.config/systemd/user/multi-user.target.wants/openrgb.service' → '/home/outphase/.config/systemd/user/openrgb.service'.
Unit /home/outphase/.config/systemd/user/openrgb.service is added as a dependency to a non-existent unit multi-user.target.
outphase@bazzite:~/AppImages$ systemctl --user status openrgb.service
● openrgb.service - OpenRGB
Loaded: loaded (/home/outphase/.config/systemd/user/openrgb.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/user/service.d
└─10-timeout-abort.conf
Active: active (running) since Tue 2025-02-11 12:21:08 CST; 49s ago
Invocation: 2bbd34b8a1864f6983a5d28e7af708e7
Main PID: 449280 (AppRun.wrapped)
Tasks: 21 (limit: 38137)
Memory: 21.7M (peak: 22.5M)
CPU: 839ms
CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/openrgb.service
├─449280 /tmp/.mount_openrgK2DOIm/AppRun.wrapped --server
└─449284 /home/outphase/AppImages/openrgb.appimage --server

Feb 11 12:21:08 bazzite systemd[2760]: Started openrgb.service - OpenRGB.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Attempting to connect to local OpenRGB server.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Connection attempt failed
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Local OpenRGB server unavailable.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Running standalone.
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: Network connection thread started on port 6742
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: [i2c_smbus_linux] Failed to read i2c device PCI device ID
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: [i2c_smbus_linux] Failed to read i2c device PCI device ID
Feb 11 12:21:09 bazzite openrgb.appimage[449280]: [i2c_smbus_linux] Failed to read i2c device PCI device ID
Description=OpenRGB
After=network.target

[Service]
ExecStart=/home/outphase/AppImages/openrgb.appimage --server

[Install]
WantedBy=multi-user.target
Description=OpenRGB
After=network.target

[Service]
ExecStart=/home/outphase/AppImages/openrgb.appimage --server

[Install]
WantedBy=multi-user.target
Wolf™
Wolf™OP3w ago
THANK YOU!!!! The service works, but on boot it starts too early. I need to start the service after usb devices found.
termdisc
termdisc3w ago
there are ways to delay it. such as the After= command or basic timers. I don't know the right way off the top of my head

Did you find this page helpful?