I can play games such as Zombie Defense, but most games like Alien Isolation or Dying Light are now failing (I've played them a lot just weeks ago).
The computer is a Dell Laptop: DELL XPS L502X.
$ sudo inxi --cpu --memory
[sudo] password for baltasarq:
Memory: RAM: total: 15.56 GiB used: 2.69 GiB (17.3%)
Array-1: capacity: 16 GiB note: est. slots: 2 EC: None
Device-1: ChannelA-DIMM0 size: 8 GiB speed: 1333 MT/s
Device-2: ChannelB-DIMM0 size: 8 GiB speed: 1333 MT/s
CPU: Topology: Dual Core model: Intel Core i5-2410M bits: 64 type: MT MCP L2 cache: 3072 KiB
Speed: 2596 MHz min/max: 800/2900 MHz Core speeds (MHz): 1: 2694 2: 2694 3: 2862 4: 2716
They just not launch when playing from Steam. They seem they are going to do something, but won't.
$ inxi --graphics
Graphics: Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics driver: i915 v: kernel
Device-2: NVIDIA GF108M [GeForce GT 540M] driver: nvidia v: 390.87
Display: x11 server: X.Org 1.20.1 driver: intel resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 18.2.1
$ pacman -Ss nvidia | grep instalado
core/mhwd-nvidia 1:396.54-1 [instalado]
core/mhwd-nvidia-340xx 340.107-1 [instalado]
core/mhwd-nvidia-390xx 390.87-1 [instalado]
extra/libvdpau 1.1.1+3+ga21bf7a-1 [instalado]
extra/linux414-nvidia-390xx 390.87-4 (linux414-extramodules) [instalado]
extra/linux418-nvidia-390xx 390.87-5 (linux418-extramodules) [instalado]
extra/nvidia-390xx-utils 390.87-1 [instalado]
community/bumblebee 3.2.1-20 [instalado]
multilib/lib32-libvdpau 1.1.1-3 [instalado]
multilib/lib32-nvidia-390xx-utils 390.87-1 [instalado]
multilib/lib32-opencl-nvidia 1:396.54-1 [instalado]
I can run "optirun gxlgears' without any glitch.
$ optirun -v --no-failsafe glxgears
[343689.152745] [INFO]Configured driver: nvidia
[343689.907389] [INFO]Response: Yes. X is active.
[343689.907453] [INFO]Running application using virtualgl.
7190 frames in 5.0 seconds = 1437.827 FPS
7752 frames in 5.0 seconds = 1550.327 FPS
7901 frames in 5.0 seconds = 1580.189 FPS
7884 frames in 5.0 seconds = 1576.658 FPS
^C[343713.979762] [WARN]Received Interrupt signal
$ optirun -v glxspheres64
[345044.765925] [INFO]Configured driver: nvidia
[345045.519301] [INFO]Response: Yes. X is active.
[345045.519323] [INFO]Running application using virtualgl.
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
172.383072 frames/sec - 157.964952 Mpixels/sec
173.926934 frames/sec - 159.379686 Mpixels/sec
175.632555 frames/sec - 160.942648 Mpixels/sec
177.486586 frames/sec - 162.641608 Mpixels/sec
However most games won't work.
primusrun is much worse, BTW.
$ primusrun glxgears
292 frames in 5.0 seconds = 58.315 FPS
300 frames in 5.0 seconds = 59.801 FPS
300 frames in 5.0 seconds = 59.815 FPS
... even failing on windows close.
$ primusrun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xc1
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
61.638711 frames/sec - 56.483249 Mpixels/sec
59.797681 frames/sec - 54.796203 Mpixels/sec
59.825493 frames/sec - 54.821689 Mpixels/sec
59.812262 frames/sec - 54.809565 Mpixels/sec
59.829788 frames/sec - 54.825625 Mpixels/sec
59.821646 frames/sec - 54.818164 Mpixels/sec
59.769383 frames/sec - 54.770272 Mpixels/sec
59.853944 frames/sec - 54.847760 Mpixels/sec
59.819919 frames/sec - 54.816581 Mpixels/sec
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 155 (DRI2)
Minor opcode of failed request: 7 (DRI2GetBuffersWithFormat )
Resource id in failed request: 0x4e00002
Serial number of failed request: 3622
Current serial number in output stream: 3622
primus: warning: dropping a frame to avoid deadlock
primus: warning: timeout waiting for display worker
terminate called without an active exception
Abortado (`core' generado)
Follows the journal for the session above.
sep 28 20:21:39 baltasar-pc bumblebeed[557]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
sep 28 20:21:39 baltasar-pc bumblebeed[557]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
sep 28 20:21:39 baltasar-pc bumblebeed[557]: [XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
sep 28 20:21:39 baltasar-pc bumblebeed[557]: [XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
sep 28 20:21:39 baltasar-pc bumblebeed[557]: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
sep 28 20:21:48 baltasar-pc audit[3248]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 pid=3248 comm="glxspheres64" exe="/usr/bin/glxspheres64" sig=6 res=1
sep 28 20:21:48 baltasar-pc kernel: audit: type=1701 audit(1538158908.987:8): auid=1000 uid=1000 gid=1000 ses=2 pid=3248 comm="glxspheres64" exe="/usr/bin/glxspheres64" sig=6 res=1
sep 28 20:21:49 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia_modeset' (ref count: 1).
sep 28 20:21:49 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia' (ref count: 12).
Follows the generated journal for Dying Light:
$ journalctl --system --follow
-- Logs begin at Mon 2018-09-24 20:29:44 CEST. --
sep 28 19:58:02 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia_modeset' (ref count: 1).
sep 28 19:58:02 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia' (ref count: 12).
sep 28 20:01:01 baltasar-pc CROND[2794]: (root) CMD (run-parts /etc/cron.hourly)
sep 28 20:03:20 baltasar-pc bumblebeed[557]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
sep 28 20:03:20 baltasar-pc bumblebeed[557]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
sep 28 20:03:20 baltasar-pc bumblebeed[557]: [XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
sep 28 20:03:20 baltasar-pc bumblebeed[557]: [XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
sep 28 20:03:20 baltasar-pc bumblebeed[557]: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
sep 28 20:03:22 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia_modeset' (ref count: 1).
sep 28 20:03:22 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia' (ref count: 12).
sep 28 20:04:16 baltasar-pc bumblebeed[557]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
sep 28 20:04:16 baltasar-pc bumblebeed[557]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
sep 28 20:04:16 baltasar-pc bumblebeed[557]: [XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
sep 28 20:04:16 baltasar-pc bumblebeed[557]: [XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
sep 28 20:04:16 baltasar-pc bumblebeed[557]: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
sep 28 20:04:18 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia_modeset' (ref count: 1).
sep 28 20:04:18 baltasar-pc bumblebeed[557]: Failed to unload module 'nvidia' (ref count: 12).
It seems that the problem seems to be that bumblebee cannot unload the kernel's nvidia module, though I don't see the logic here, it should load it, shouldn't it?
I've found a forum in which people talks about this problem c. 2015... it cannot be possible it remains to be solved, since I've been successfully using this computer, playing that games, at about that time...
Any hint?