Help creating systemd unit for running optimus-manager command at startup

If this is the route you would like to go I might suggest using envycontrol for a plethora of reasons including it does not require you to hack up your display manager and also that this service would not be required.

For other approaches you might see examples like here:

2 Likes