Cannot run any application with dedicated graphics card

Hello everyone, today i'm asking for help because I cannot seem to run anything using my dGPU.
I tried a whole lot of things I found on the internet and could not seem to get anything working using the dGPU. (It went to the point I had to use my live USB to change files of my manjaro system)

My laptop (inxi -Fx)

System:    Host: manjaro Kernel: 5.4.34-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.18.4 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Hewlett-Packard product: HP Pavilion 17 Notebook PC v: 0974110000405F10000620180 
           serial: <root required> 
           Mobo: Hewlett-Packard model: 2282 v: 77.26 serial: <root required> UEFI: Insyde v: F.12 date: 08/18/2014 
Battery:   ID-1: BAT0 charge: 22.7 Wh condition: 22.7/22.7 Wh (100%) model: Hewlett-Packard Primary status: Full 
CPU:       Topology: Dual Core model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell rev: 1 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19162 
           Speed: 2387 MHz min/max: 800/2700 MHz Core speeds (MHz): 1: 2377 2: 2376 3: 2403 4: 2458 
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GM108M [GeForce 840M] vendor: Hewlett-Packard driver: N/A bus ID: 0a:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting resolution: 1600x900~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.0.4 direct render: Yes 
Audio:     Device-1: Intel Haswell-ULT HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:03.0 
           Device-2: Intel 8 Series HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           Device-3: SteelSeries ApS type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 2-6.4:6 
           Sound Server: ALSA v: k5.4.34-1-MANJARO 
Network:   Device-1: Broadcom and subsidiaries BCM43142 802.11b/g/n vendor: Hewlett-Packard driver: wl v: kernel port: 6040 
           bus ID: 08:00.0 
           IF: wlo1 state: dormant mac: 7e:06:2e:62:89:8d 
           Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 
           bus ID: 09:00.0 
           IF: eno1 state: up speed: 100 Mbps duplex: full mac: 8c:dc:d4:8a:13:bb 
Drives:    Local Storage: total: 1.59 TiB used: 16.85 GiB (1.0%) 
           ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS541075A9E680 size: 698.64 GiB 
           ID-2: /dev/sdb type: USB vendor: SanDisk model: SD9SN8W1T00 size: 931.51 GiB 
Partition: ID-1: / size: 133.80 GiB used: 16.85 GiB (12.6%) fs: ext4 dev: /dev/sdb2 
Sensors:   System Temperatures: cpu: 53.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 185 Uptime: 15m Memory: 7.71 GiB used: 1.68 GiB (21.8%) Init: systemd Compilers: gcc: 9.3.0 Shell: zsh 
           v: 5.8 inxi: 3.0.37

Example application run attempt (primusrun minecraft-launcher almost same output using prime-run)

primus: fatal: failed to connect to Bumblebee daemon: No such file or directory
primus: fatal: failed to connect to Bumblebee daemon: No such file or directory
primus: fatal: failed to connect to Bumblebee daemon: No such file or directory
primus: fatal: failed to connect to Bumblebee daemon: No such file or directory
[0423/204416.949963:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0423/204416.951778:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0423/204417.529104:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0423/204417.531097:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0423/204418.089638:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0423/204418.091943:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0423/204418.648125:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0423/204418.650378:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0423/204419.158244:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[0423/204419.170139:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[0423/204419.171835:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[0423/204419.172566:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[0423/204419.173328:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[0423/204419.184254:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.

What happens when I launch any minecraft version:

Time: 23/04/20 20:27
Description: Initializing game

org.lwjgl.LWJGLException: X Error - disp: 0x7f0244b30be0 serial: 140 error: BadValue (integer parameter out of range for operation) request_code: 152 minor_code: 24
        at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320)
        at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
        at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:51)
        at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
        at org.lwjgl.opengl.Display.create(Display.java:850)
        at org.lwjgl.opengl.Display.create(Display.java:757)
        at org.lwjgl.opengl.Display.create(Display.java:739)
        at bcd.ap(SourceFile:601)
        at bcd.an(SourceFile:437)
        at bcd.a(SourceFile:384)
        at net.minecraft.client.main.Main.main(SourceFile:124)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:30)

:face_with_monocle: ... like what?

In manjaro we have tools for this ... working outside of them is not usually advisable.
For example - mhwd already has 'profiles' for dual-gfx/optimus .. including Bumblebee and PRIME.

..I guess lets start with what mhwd sees.

mhwd -li

1 Like

What I tried:



wiki archlinux org/index.php/NVIDIA_Optimus#Using_optimus-manager (followed some instructions from here)
wiki archlinux org/index.php/NVIDIA#Configuration (same here)
bbs archlinux org/viewtopic.php?id=236486 (to fix the X error, didn't help)

Sorry for the links but I am limited to two links atm

mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
   network-broadcom-wl            2018.10.07                true            PCI


Warning: No installed USB configs!

Also forgot to say it, idk if it has an impact on my issue but I installed the basic manjaro, not the full one with office etc...

PRIME doesnt use 'primusrun'.
Instead use this:

prime-run

Test with something like glxgears or glxinfo. ex:

glxinfo | grep 'renderer string'
prime-run glxinfo | grep 'renderer string'

But structurally you should probably undo everything else you did and force reinstall that 'intel-nvidia-440xx-prime' through mhwd.. ex
mhwd -f -i pci video-hybrid-intel-nvidia-440xx-prime

1 Like

Forum kindly sponsored by