I'm using optirun from bumblebee. It is designed to start my 2nd GPU, run the command given, and shut down the 2nd GPU at the end.
A simplified example:
optirun echo test | cat
However there's a bug in optirun that requires that I now run a follow up command to force the GPU to shut down.
Can I easily wrap some complex command such as echo test | cat in a shell script such that I can run optirun, and then follow that up at the end with command (my workaround to the bug)?
The quoting and all seems to be an issue preventing me from doing this with a simple shell script.
rmmodcommand afteroptirunto get aroundoptirunnot shutting down the GPU (a bug that will be fixed in the next version).optiruntakes any complex command such as the one I suggested. So I'd like my script just to calloptirunwith whatever I send it, and then when it's done execute thermmodworkaround. I could be overthinking this.