You are not logged in.

#1 2018-06-02 12:40:19

_LLJY
Member
Registered: 2018-06-02
Posts: 7

OpenGL isn't working with nvidia and bumblebee

Hello people! First post on the forums, I apologize beforehand for any broken forum rules.

So, I have installed the nvidia-dkms package and setup bumblebee and it seems that, OpenGL is not working.

so I installed the mesa-demos package and ran "optirun glxinfo"
I encountered the following error message
name of display: :0
failed to create drawable
[VGL] ERROR: in OGLDrawable--
[VGL]    82: Could not create Pbuffer

same error message pops up when I run glxgears as well.
I have tried running Minecraft and it crashes immediately saying that there is no OpenGL context.

Googling and searching forums amounted to nothing and soI have decided to post here, asking the amazing Arch community on what are the possible solutions to this.

Offline

#2 2018-06-02 13:14:49

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,557

Re: OpenGL isn't working with nvidia and bumblebee

nvidia-dkms is only needed for custom kernels, which kernel are you running ?
Does the problem also occur when booting with offical kernel ?

post lspci -k and xorg log.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2018-06-02 13:34:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: OpenGL isn't working with nvidia and bumblebee

Add

dmesg
pacman -Qs nvidia

as well.

Offline

#4 2018-06-02 17:18:09

_LLJY
Member
Registered: 2018-06-02
Posts: 7

Re: OpenGL isn't working with nvidia and bumblebee

Lone_Wolf wrote:

nvidia-dkms is only needed for custom kernels, which kernel are you running ?
Does the problem also occur when booting with offical kernel ?

post lspci -k and xorg log.

yes the issue exists on the official kernel as well.
I am currently using linux 4.17 latest rc.

EDIT lspci -k output is here
https://paste.ee/p/RRYKY

Last edited by _LLJY (2018-06-02 17:21:57)

Offline

#5 2018-06-03 11:04:43

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,557

Re: OpenGL isn't working with nvidia and bumblebee

01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev ff)
        Kernel modules: nvidia_drm, nvidia

That definitely indicates a problem, but we need the other outputs V1del and I asked to get further.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2018-06-03 15:05:55

_LLJY
Member
Registered: 2018-06-02
Posts: 7

Re: OpenGL isn't working with nvidia and bumblebee

V1del wrote:

Add

dmesg
pacman -Qs nvidia

as well.

here you go!

https://paste.ee/p/0kmbl

Offline

#7 2018-06-03 15:20:45

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: OpenGL isn't working with nvidia and bumblebee

The output of `dkms status` as well please as the nvidia module is absent from the dmesg but was listed as known by the kernel in from lspci -k.

Offline

#8 2018-06-03 15:22:21

_LLJY
Member
Registered: 2018-06-02
Posts: 7

Re: OpenGL isn't working with nvidia and bumblebee

loqs wrote:

The output of `dkms status` as well please as the nvidia module is absent from the dmesg but was listed as known by the kernel in from lspci -k.

that is normal as bumblebee and bbswitch unload the modules by default IIRC

Offline

#9 2018-06-03 15:26:04

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: OpenGL isn't working with nvidia and bumblebee

If you do not want to share that,  the Xorg.log from the xserver running the nvidia card.

Offline

#10 2018-06-03 15:36:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: OpenGL isn't working with nvidia and bumblebee

_LLJY wrote:

that is normal as bumblebee and bbswitch unload the modules by default IIRC

Yes, but without such (failed) approach, the dmesg is close to worthless.
Did you btw. try the vanilla kernel?

Offline

#11 2018-06-03 16:14:47

_LLJY
Member
Registered: 2018-06-02
Posts: 7

Re: OpenGL isn't working with nvidia and bumblebee

seth wrote:
_LLJY wrote:

that is normal as bumblebee and bbswitch unload the modules by default IIRC

Yes, but without such (failed) approach, the dmesg is close to worthless.
Did you btw. try the vanilla kernel?

Yes I did try the vanilla kernel

Offline

#12 2018-06-03 17:30:27

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: OpenGL isn't working with nvidia and bumblebee

_LLJY wrote:

Yes I did try the vanilla kernel

Will you share any logs from the vanilla kernel?  Or is that another item you are unwilling to share?

Offline

#13 2018-06-04 09:33:48

_LLJY
Member
Registered: 2018-06-02
Posts: 7

Re: OpenGL isn't working with nvidia and bumblebee

Lone_Wolf wrote:
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev ff)
        Kernel modules: nvidia_drm, nvidia

That definitely indicates a problem, but we need the other outputs V1del and I asked to get further.

https://paste.ee/p/nirfc

Xorg and dkms status

official kernel log, later

Offline

#14 2018-06-04 10:08:30

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: OpenGL isn't working with nvidia and bumblebee

The contents of the following as well please

[     3.228] (==) Using config file: "/etc/X11/xorg.conf"

Edit:
Also the contents of Xorg.8.log which should be the Xorg.#.log from when the nvidia GPU is in use.

Last edited by loqs (2018-06-04 10:20:52)

Offline

#15 2018-06-04 12:28:27

_LLJY
Member
Registered: 2018-06-02
Posts: 7

Re: OpenGL isn't working with nvidia and bumblebee

loqs wrote:

The contents of the following as well please

[     3.228] (==) Using config file: "/etc/X11/xorg.conf"

Edit:
Also the contents of Xorg.8.log which should be the Xorg.#.log from when the nvidia GPU is in use.

https://paste.ee/p/CkjL1#P95i1TuKpsUHxt … UGLkMTfGAq

Offline

#16 2018-06-04 12:49:53

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: OpenGL isn't working with nvidia and bumblebee

[  1200.190] (++) ModulePath set to "/usr/lib/nvidia-396/xorg,/usr/lib/xorg/modules"
...
[  1200.200] (II) LoadModule: "glx"
[  1200.200] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1200.203] (II) Module glx: vendor="X.Org Foundation"
...
[  1200.209] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[  1200.209] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[  1200.209] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[  1200.209] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[  1200.209] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.

Edit:

_LLJY wrote:

So, I have installed the nvidia-dkms package and setup bumblebee and it seems that, OpenGL is not working.

Can you please expand upon how you setup bumblebee what guide you followed and what configuration files you created / modified and post their contents if you have not already done so.

Last edited by loqs (2018-06-04 12:59:05)

Offline

Board footer

Powered by FluxBB