Please add an configruation option to optirun only the GPU tasks. This makes things much easier. The systemd service files doesn't need to be changed for optirun. If GPU task is suspended, the optirun instance is removed. That means the card switches off automatically.
You can add optirun support by adding an option for optional task spawn command and/or detect if there is a bumblebee service running. If it is running, prepend optirun.
Please add an configruation option to optirun only the GPU tasks. This makes things much easier. The systemd service files doesn't need to be changed for optirun. If GPU task is suspended, the optirun instance is removed. That means the card switches off automatically.
You can add optirun support by adding an option for optional task spawn command and/or detect if there is a bumblebee service running. If it is running, prepend optirun.