When installing bumblebee having x11-misc/primus previously installed I realized the init.d script does not start as it requires the non existant service vgl. This service is provided by x11-misc/virtualgl, however, once manually removing dependency from init.d file, bumblebee starts and optirun works as with virtualgl. Looking at the ebuild the dependency is specified as: PDEPEND=" || ( x11-misc/primus x11-misc/virtualgl ) " I am not sure which would be the best way to address this problem, but for sure a different init.d file is needed depending on which of those two dependencies were installed, probably a IUSE flag for virtualgl?
is vgl init.d really needed? At least on systemd it works nice without needing to start vgl.service unit
(In reply to Pacho Ramos from comment #1) > is vgl init.d really needed? At least on systemd it works nice without > needing to start vgl.service unit It is not if you use primus, but it is a hard dependency on init.d file, as the line says: need vgl, which is not installed in this scenario. I manually removed that line and made it work.
But I am not using primus, and Vgl is properly started by optirun when needed, that is the reason I wondered if it is really needed even not using primus
(In reply to Pacho Ramos from comment #3) > But I am not using primus, and Vgl is properly started by optirun when > needed, that is the reason I wondered if it is really needed even not using > primus That I don't know, only know that the init.d should not reference it when it is not enabled/used/installed.
(In reply to David Carlos Manuelda from comment #4) > (In reply to Pacho Ramos from comment #3) > > But I am not using primus, and Vgl is properly started by optirun when > > needed, that is the reason I wondered if it is really needed even not using > > primus > > That I don't know, only know that the init.d should not reference it when it > is not enabled/used/installed. I agree, it causes all sorts of issues and crashes, and it's just not needed AFAICT
I think Rick fixed this some hours ago https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a2c5cc6300432cfb106b74373fa5fe02941c24