optimus-manager
optimus-manager copied to clipboard
Added support of openRC
Added support of openRC.
Closes: https://github.com/Askannz/optimus-manager/issues/107
Tested locally: Laptop: Thinkpad X1 Exterme Gen 2(intel and nvidia) OS: gentoo with openRC Tested versions: 1.2.2 and head of the repository.
I was using it for ~4 weeks and everything working was working fine. I didn't have issues with switching between intel/nvidia.
I had to fix a few issues in ebuild for optimus-manager-1.2.2. And also I had to change ebuild for the head of repository(version 9999) in order to make it work with the last version of optimus-manager. So, if you want to test changes in Gentoo for now you should take ebuilds from my local fork here https://github.com/anlorn/jorgicio-gentoo-overlay/tree/master/x11-misc/optimus-manager . Please be aware that it currently pulls files from my fork of optimus-manager. I will change it back to taking files from the original repository as soon as this PR is merged.
Just a random Artix user here to +1 this. OpenRC support would create what I'd need to build a package for this for Artix users.
any news for openrc?
The packages for Artix Linux are already on Universe repo, for OpenRC, Runit and s6-rc, as was announced in the forum: https://forum.artixlinux.org/index.php/topic,2356.0.html
Have fun
The packages for Artix Linux are already on Universe repo, for OpenRC, Runit and s6-rc, as was announced in the forum: https://forum.artixlinux.org/index.php/topic,2356.0.html
Have fun
The switching does not work, Optimus-manager-qt says "The optimus-manager service is running, please enable it per the instructions on the artix wiki" It is enabled according to the instructions, But optimus-manager from the command line says "The optimus service is not running. Please enable and start it as described at Artix Linux Wiki, and reboot". Running prime-switch before optimus-manager says "optimus-manager --switch integrated ERROR: a GPU setup was initiated but Xorg post-start hook did not run. If your login manager is GDM, make sure to follow those instructions: https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki: https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting Cannot execute command because of previous errors.", The only way to switch is to set the startup mode to the desired mode and reboot. OpenRC version here.
Edit: There are complains on the artixlinux subreddit too, https://www.reddit.com/r/artixlinux/comments/pzlmv0/state_of_optimusmanager_runit/, https://www.reddit.com/r/artixlinux/comments/pir4xo/issues_with_optimus_manager/
The packages for Artix Linux are already on Universe repo, for OpenRC, Runit and s6-rc, as was announced in the forum: https://forum.artixlinux.org/index.php/topic,2356.0.html Have fun
The switching does not work, Optimus-manager-qt says "The optimus-manager service is running, please enable it per the instructions on the artix wiki" It is enabled according to the instructions, But optimus-manager from the command line says "The optimus service is not running. Please enable and start it as described at Artix Linux Wiki, and reboot". Running prime-switch before optimus-manager says "optimus-manager --switch integrated ERROR: a GPU setup was initiated but Xorg post-start hook did not run. If your login manager is GDM, make sure to follow those instructions: https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki: https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting Cannot execute command because of previous errors.", The only way to switch is to set the startup mode to the desired mode and reboot. OpenRC version here.
Edit: There are complains on the artixlinux subreddit too, https://www.reddit.com/r/artixlinux/comments/pzlmv0/state_of_optimusmanager_runit/, https://www.reddit.com/r/artixlinux/comments/pir4xo/issues_with_optimus_manager/
Please report any issues at Artix forum announcement, after reading the instructions on 1st page.
Also, report any further details, such as which display manager you use, which services have been enabled, hardware details, e.t.c.
Regards
Check if this pull request fixes it: https://github.com/Askannz/optimus-manager/pull/427
If not edit your pull request, and reopen.
From now on any contribution will be looked upon in a couple of days max.