You are not logged in.

#1 2017-12-05 13:40:33

0x0000053A
Member
Registered: 2017-07-02
Posts: 16

Something wrong with NVIDIA drivers on laptop?

I dunno how to describe that... it seems that if you sleep and wake the laptop (close and open the lid) and then run any program that uses OpenGL, it won't be able to use it properly, e.g. show the black screen and spam errors in the output like mpv does (the last line is segfault and something dumped somewhere)

Playing: media/video/test.avi
 (+) Video --vid=1 (mpeg4 704x396 23.976fps)
 (+) Audio --aid=1 (ac3 2ch 48000Hz)
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
AO: [pulse] 48000Hz stereo 2ch float
VO: [opengl] 704x396 yuv420p
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] Error: framebuffer completeness check failed (error=36061).
[vo/opengl] Error: framebuffer could not be created.
[vo/opengl] after rendering: OpenGL error INVALID_FRAMEBUFFER_OPERATION.
[vo/opengl] after rendering: OpenGL error INVALID_FRAMEBUFFER_OPERATION.
AV: 00:00:00 / 00:24:29 (0%) A-V:  0.000
[vo/opengl] after rendering: OpenGL error INVALID_FRAMEBUFFER_OPERATION.
AV: 00:00:00 / 00:24:29 (0%) A-V:  0.000
[vo/opengl] after rendering: OpenGL error INVALID_FRAMEBUFFER_OPERATION.
AV: 00:00:00 / 00:24:29 (0%) A-V:  0.000
[vo/opengl] after rendering: OpenGL error INVALID_FRAMEBUFFER_OPERATION.
AV: 00:00:00 / 00:24:29 (0%) A-V:  0.000
[vo/opengl] after rendering: OpenGL error INVALID_FRAMEBUFFER_OPERATION.
AV: 00:00:03 / 00:24:29 (0%) A-V:  0.000
Saving state.
^C

Exiting... (Quit)
Ошибка сегментирования (стек памяти сброшен на диск)

There are also had issues with xorg: i've noticed that there are errors in systemd journal about xorg crashing and dumping core, and one of the lines in backtrace is almost always something about opengl:

systemd-coredump[7617]: Process 7612 (Xorg) of user 0 dumped core.
                                                    
                                                    Stack trace of thread 7612:
                                                    #0  0x00007f3a6bdc38a0 raise (libc.so.6)
                                                    #1  0x00007f3a6bdc4f09 abort (libc.so.6)
                                                    #2  0x000055e48a680d3a OsAbort (Xorg)
                                                    #3  0x000055e48a55c5d4 ddxGiveUp (Xorg)
                                                    #4  0x000055e48a686832 n/a (Xorg)
                                                    #5  0x000055e48a687675 FatalError (Xorg)
                                                    #6  0x000055e48a67de2e n/a (Xorg)
                                                    #7  0x00007f3a6c158da0 __restore_rt (libpthread.so.0)
                                                    #8  0x00007f3a6bdc38a0 raise (libc.so.6)
                                                    #9  0x00007f3a6bdc4f09 abort (libc.so.6)
                                                    #10 0x00007f3a6bdbc0dc __assert_fail_base (libc.so.6)
                                                    #11 0x00007f3a6bdbc153 __assert_fail (libc.so.6)
                                                    #12 0x000055e48a53698f dixRegisterPrivateKey (Xorg)
                                                    #13 0x00007f3a63c813fa glamor_init (libglamoregl.so)
                                                    #14 0x00007f3a63eb373e n/a (modesetting_drv.so)
                                                    #15 0x000055e48a5185c0 AddGPUScreen (Xorg)
                                                    #16 0x000055e48a577b1c n/a (Xorg)
                                                    #17 0x000055e48a57d691 n/a (Xorg)
                                                    #18 0x000055e48a5796cc n/a (Xorg)
                                                    #19 0x000055e48a57a353 n/a (Xorg)
                                                    #20 0x000055e48a578ce9 config_init (Xorg)
                                                    #21 0x000055e48a55c4a7 InitInput (Xorg)
                                                    #22 0x000055e48a51c1a9 n/a (Xorg)
                                                    #23 0x00007f3a6bdaff6a __libc_start_main (libc.so.6)
                                                    #24 0x000055e48a505eaa _start (Xorg)

I don't actually remember when did it start.
Nvidia 387.34-7, using Nvidia Optimus with lightdm precisely as the wiki says.

Last edited by 0x0000053A (2017-12-05 13:48:31)

Offline

#2 2017-12-05 14:38:36

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

Re: Something wrong with NVIDIA drivers on laptop?

#14 0x00007f3a63eb373e n/a (modesetting_drv.so)
13 0x00007f3a63c813fa glamor_init (libglamoregl.so)

You're not using the nvidia driver. Broken installation or misconfigured Optimus or bug in the modesetting driver but so far this looks unrelated to the nvidia blob.
If you believe the nvidia driver should be involved here, check your setup and in doubt elaborate on it (xorg log, config files, loaded kernel modules)

Offline

#3 2017-12-05 15:15:03

0x0000053A
Member
Registered: 2017-07-02
Posts: 16

Re: Something wrong with NVIDIA drivers on laptop?

seth wrote:

#14 0x00007f3a63eb373e n/a (modesetting_drv.so)
13 0x00007f3a63c813fa glamor_init (libglamoregl.so)

You're not using the nvidia driver. Broken installation or misconfigured Optimus or bug in the modesetting driver but so far this looks unrelated to the nvidia blob.
If you believe the nvidia driver should be involved here, check your setup and in doubt elaborate on it (xorg log, config files, loaded kernel modules)

http://http.download.nvidia.com/XFree86 … ndr14.html

Some versions of the “modesetting” driver try to load a sub-module called “glamor”, which conflicts with the NVIDIA GLX implementation. Please ensure that the libglamoregl.so X module is not installed.

Maybe this?

Offline

#4 2017-12-05 15:22:54

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

Re: Something wrong with NVIDIA drivers on laptop?

seth wrote:

If you believe the nvidia driver should be involved here, check your setup and in doubt elaborate on it (xorg log, config files, loaded kernel modules)

As long as it's not clear how you intended to configure the optimus setup this could be everything and nothing.

Offline

#5 2017-12-05 15:38:49

0x0000053A
Member
Registered: 2017-07-02
Posts: 16

Re: Something wrong with NVIDIA drivers on laptop?

There's an article on archwiki, i've done exactly the same.

$ cat /etc/X11/xorg.conf.d/nvidia.conf 
Section "Module"
	Load "modesetting"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "3:0:0"
	Option "AllowEmptyInitialConfiguration"
EndSection

$ cat /etc/lightdm/optimus.sh 
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

$ cat /etc/lightdm/lightdm.conf | grep ^[^#]
[LightDM]
run-directory=/run/lightdm
[Seat:*]
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession
display-setup-script=/etc/lightdm/optimus.sh
[XDMCPServer]
[VNCServer]

$ lspci -v -s 03:00.0
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
	Subsystem: Lenovo GM108M [GeForce 940MX]
	Flags: bus master, fast devsel, latency 0, IRQ 132
	Memory at a3000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 90000000 (64-bit, prefetchable) [size=256M]
	Memory at a0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

Offline

#6 2017-12-05 15:43:28

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

Re: Something wrong with NVIDIA drivers on laptop?

Do you understand the implication of this setup?
Also: what does your xorg log look like? (Have a look at which glx module is loaded)

Offline

#7 2017-12-05 15:52:19

0x0000053A
Member
Registered: 2017-07-02
Posts: 16

Re: Something wrong with NVIDIA drivers on laptop?

seth wrote:

Do you understand the implication of this setup?

Nope, just copying stuff from the wiki.

seth wrote:

Also: what does your xorg log look like? (Have a look at which glx module is loaded)

$ cat /var/log/Xorg.0.log | grep glx -i
[    18.739] (II) "glx" will be loaded by default.
[    18.739] (II) LoadModule: "modesetting"
[    18.832] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    18.836] (II) Module modesetting: vendor="X.Org Foundation"
[    18.836] 	compiled for 1.19.5, module version = 1.19.5
[    18.836] 	Module class: X.Org Video Driver
[    18.836] 	ABI class: X.Org Video Driver, version 23.0
[    18.836] (II) LoadModule: "glx"
[    18.836] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[    19.572] (II) Module glx: vendor="NVIDIA Corporation"
[    19.572] 	compiled for 4.0.2, module version = 1.0.0
[    19.572] 	Module class: X.Org Server Extension
[    19.580] (II) NVIDIA GLX Module  387.34  Tue Nov 21 02:04:31 PST 2017
[    19.592] (II) LoadModule: "nvidia"
[    19.593] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    19.693] (II) Module nvidia: vendor="NVIDIA Corporation"
--
[    20.983] (II) NVIDIA(0): [DRI2] Setup complete
[    20.983] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    20.983] (--) RandR disabled
[    20.994] (II) Initializing extension GLX
[    20.994] (II) Indirect GLX disabled.
[    21.290] (II) modeset(G0): Damage tracking initialized
[    21.840] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[    21.840] (**) Power Button: Applying InputClass "libinput keyboard catchall"

Offline

#8 2017-12-05 17:03:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Something wrong with NVIDIA drivers on laptop?

Please edit your first post and choose a more descriptive title: https://wiki.archlinux.org/index.php/Co … ow_to_post



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB