Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.29k stars 142 forks source link

Using bumblebee on wayland #1055

Closed albfan closed 3 years ago

albfan commented 4 years ago

Is there any chance to run bumblebee on wayland.

I read from other issues the project is tied to Xorg heavily.

Is there at least an analysis of what parts should be reimplemented, I mean is it technically possible?

Is there any other project you're aware of that could run optimus nvidia on wayland?

ysolis commented 3 years ago

If you are referring the app with discrete graphics enabled (nVidia card) this is in reality more related to the posibility to run Wayland with nVidia card. Now is possible in experimental way, right, but all the 3D acceleration get missed if you run your app with XWayland API, so, any possible benefit will get wasted.

Now, run your desktop with the default Intel chipset with Wayland and use the acceleration for specific apps with nVIdia (which will use the Xorg that will raise Bumblebee) if possible and works in some cases better, that's mine, I have an HP Zbook x2 G4 with a Quadro m620, Archlinux and Gnome Wayland; SupertuxKart does make good use of the nVidia with Bumblebee and Primus

albfan commented 3 years ago

Any simple example will get me started, right now I'm not able to run anything under bumblebee, even glx-gears

BrknRobot commented 3 years ago

Bumblebee is usable for me in Wayland. Make sure you have both xwayland and bumblebee set up. The setup ends up looking like this: Wayland -> XWayland -> Bumblebee X11 I've found there are some apps that need the environment variable DISPLAY=:8 to be set in order to work.

albfan commented 3 years ago

I see I need to run recent kernel where bumblebee is installed. Probably that was it