I can't run any game on my nvidia graphic card

Hello i can't run anything on my graphic card and i d'ont know why :sweat_smile:
I've installed the good driver :
image

inxi -Fxxxza --no-host 
System:    Kernel: 5.5.13-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.5-x86_64 root=UUID=c0e686a8-ffd6-4658-a08f-b3b445b74542 rw quiet 
           udev.log_priority=3 
           Desktop: Deepin 15.11 tk: Qt 5.14.1 info: dde-dock wm: DeepinWM dm: GDM 3.34.1, LightDM 1.30.0 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Dell product: XPS 15 7590 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 0VYV0G v: A00 serial: <filter> UEFI: Dell v: 1.3.3 date: 09/25/2019 
Battery:   ID-1: BAT0 charge: 97.0 Wh condition: 97.0/97.0 Wh (100%) volts: 13.2/11.4 model: SMP DELL GPM0365 type: Li-ion 
           serial: <filter> status: Full 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake family: 6 model-id: 9E (158) 
           stepping: A (10) microcode: CA L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62431 
           Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
           9: 800 10: 800 11: 800 12: 801 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Hewlett-Packard driver: nvidia v: 440.64 
           bus ID: 01:00.0 chip ID: 10de:1f91 
           Display: x11 server: X.Org 1.20.7 driver: modesetting alternate: fbdev,intel,vesa resolution: 3840x2160~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.6 Mesa 19.3.5 compat-v: 3.0 
           direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a348 
           Sound Server: ALSA v: k5.5.13-1-MANJARO 
Network:   Device-1: Intel Wi-Fi 6 AX200 vendor: Bigfoot Networks driver: iwlwifi v: kernel port: 3000 bus ID: 3b:00.0 
           chip ID: 8086:2723 
           IF: wlp59s0 state: up mac: <filter> 
           IF-ID-1: br-0dc513c3d922 state: down mac: <filter> 
           IF-ID-2: br-392b4da55429 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-3: br-5859a23ccd9e state: down mac: <filter> 
           IF-ID-4: br-9eca6d1de6cf state: down mac: <filter> 
           IF-ID-5: br-a6037d6ad919 state: down mac: <filter> 
           IF-ID-6: br-c5acbe227883 state: down mac: <filter> 
           IF-ID-7: br-e6879542b4d3 state: down mac: <filter> 
           IF-ID-8: docker0 state: down mac: <filter> 
           IF-ID-9: veth2c57399 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-10: veth2fce8c6 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-11: veth69f2563 state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 953.87 GiB used: 121.96 GiB (12.8%) 
           ID-1: /dev/nvme0n1 model: KXG60ZNV1T02 NVMe KIOXIA 1024GB size: 953.87 GiB block size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 10604106 scheme: GPT 
Partition: ID-1: / raw size: 953.37 GiB size: 937.40 GiB (98.33%) used: 121.96 GiB (13.0%) fs: ext4 dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 61.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 328 Uptime: 4h 38m Memory: 31.00 GiB used: 3.57 GiB (11.5%) Init: systemd v: 244 Compilers: gcc: 9.3.0 
           clang: 9.0.1 Shell: zsh v: 5.8 running in: deepin-terminal inxi: 3.0.37 
mhwd -li: 

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI


Warning: No installed USB configs!
cat /etc/X11/mhwd.d/nvidia.conf

##
## Generated by mhwd - Manjaro Hardware Detection
##

i've tried this tuto but this won't work :cry: Guide: Install and configure optimus-manager for hybrid GPU setups (Intel/NVIDIA)
( i'm under deepin )

Each time i tried to run minecraft with prime-run the logs says : image

and the game crash, if someone can help me please to solve this ^^'

thanks a lot

Why your GUI shows you have video-nvidia-440xx and the terminal video-hybrid-intel-nvidia-440xx-prime?

And if you are really on video-hybrid-intel-nvidia-440xx-prime then why didn't you try:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia before launching command?

sry the GUI was an old screen ( updated )
and i've tried the command but the result is :

$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

OK. So i have set everything up as per the arch wiki and the nvidia docs http://us.download.nvidia.com/XFree86/Linux-x86_64/430.14/README/randr14.html and if i execute:

$ sudo xrandr --setprovideroutputsource modesetting NVIDIA-0
Could not find provider with name NVIDIA-0
glxinfo | grep vendor

I get

server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel Open Source Technology Center

This is the expected response. However if i try prime offloading using

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor

I get

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

Also the output from nvidia-smi is

       Sat Apr  4 18:25:34 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1650    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   50C    P0     5W /  N/A |      0MiB /  3914MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+```

Show me what files you got:

ls -lav /etc/X11/
ls -lav /etc/X11/xorg.conf.d/

and also:

systemctl status optimus-manager

seems to me that you are still in intel-mode. you have to change to nvidia mode. is optimus or bumblebee installed ? please check the output of 'systemctl status optimus-manager' and 'systemctl status bumblebee' and post the output.

ls -lav /etc/X11/

total 44
drwxr-xr-x   6 root root  4096  4 avril 18:38 .
drwxr-xr-x 112 root root 12288  4 avril 18:21 ..
drwxr-xr-x   2 root root  4096  2 déc.  16:40 imwheel
drwxr-xr-x   2 root root  4096 30 mars  18:12 mhwd.d
drwxr-xr-x   3 root root  4096  2 déc.  16:41 xinit
-rw-r--r--   1 root root  1643  4 avril 18:38 xorg.conf
-rw-r--r--   1 root root   482  4 avril 18:38 xorg.conf.backup
drwxr-xr-x   2 root root  4096  4 avril 18:21 xorg.conf.d
-rw-r--r--   1 root root   482  4 avril 18:38 xorg.conf.nvidia-xconfig-original
ls -lav /etc/X11/xorg.conf.d/

total 12
drwxr-xr-x 2 root root 4096  4 avril 18:21 .
drwxr-xr-x 6 root root 4096  4 avril 18:38 ..
-rw-r--r-- 1 root root  108  4 avril 18:21 10-optimus-manager.conf

and the status :

systemctl status optimus-manager



● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2020-04-04 18:21:46 CEST; 7h ago
    Process: 601 ExecStartPre=/usr/bin/prime-switch-boot (code=exited, status=0/SUCCESS)
   Main PID: 942 (python3)
      Tasks: 1 (limit: 38070)
     Memory: 50.3M
     CGroup: /system.slice/optimus-manager.service
             └─942 /usr/bin/python3 -u /usr/bin/optimus-manager-daemon

avril 04 18:21:45 magnus prime-switch-boot[610]: Running /etc/optimus-manager/nvidia-disable.sh
avril 04 18:21:45 magnus prime-switch-boot[610]: ERROR : cannot run /etc/optimus-manager/nvidia-disable.sh. Continuing anyways. Error is : Failed to execute '/etc/optimus-manager/nvidia-disab>
avril 04 18:21:45 magnus prime-switch-boot[610]: Loaded extra Intel Xorg options (0 lines)
avril 04 18:21:45 magnus prime-switch-boot[610]: Loaded extra Nvidia Xorg options (0 lines)
avril 04 18:21:45 magnus prime-switch-boot[610]: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
avril 04 18:21:46 magnus systemd[1]: Started Optimus Manager Commands Daemon.
avril 04 18:21:46 magnus python3[942]: Optimus Manager (Daemon) version 1.2.2
avril 04 18:21:46 magnus python3[942]: Automatic log cropping
avril 04 18:21:46 magnus python3[942]: Opening UNIX socket
avril 04 18:21:46 magnus python3[942]: Awaiting commands

normaly bumblebee is not needed, nvidia prime is only needed ith the command prime-run

you're right but we need to know what is installed. Okay please post the output of 'sudo systemctl --print-mode'. if this is intel please change to nvidia via 'sudo systemctl --set-startup nvidia' and reboot. be aware that the "switch-mode" is actually broken, so you need to use the startup method and a reboot.

Ok, from the outputs I see that you are running optimus-manager but you didn't configure it correctly.

You have /etc/X11/xorg.conf which should be disabled, so renamed it to .bak or bak2 or whatever.
xorg.conf.nvidia-xconfig-original should be inactive, but I can't be sure if system is not able to intelligently ignore certain extensions and still read the config. Usually, extensions like .bak or .backup are safe and known to disable the config.

Another problem is here:

ERROR : cannot run /etc/optimus-manager/nvidia-disable.sh. Continuing anyways. Error is : Failed to execute '/etc/optimus-manager/nvidia-disab>

Why optimus-manager tries to load this script? You messed something and I don't know what. Correctly running and configured optimus-manager shouldn't have this script anyway so maybe you were trying to disable it?

For me the status shows like this:

 michaldybczak  alienware-PC  ~  systemctl status optimus-manager
● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
     Active: active (running) since Mon 2020-04-06 18:52:56 CEST; 30min ago
    Process: 815 ExecStartPre=/usr/bin/prime-switch-boot (code=exited, status=0/SUCCESS)
   Main PID: 1088 (python3)
      Tasks: 1 (limit: 9371)
     Memory: 51.4M
     CGroup: /system.slice/optimus-manager.service
             └─1088 /usr/bin/python3 -u /usr/bin/optimus-manager-daemon

kwi 06 18:52:55 alienware-PC prime-switch-boot[822]: Setting up Intel state
kwi 06 18:52:55 alienware-PC prime-switch-boot[822]: Loading module nouveau
kwi 06 18:52:56 alienware-PC prime-switch-boot[822]: Loaded extra Intel Xorg options (0 lines)
kwi 06 18:52:56 alienware-PC prime-switch-boot[822]: Loaded extra Nvidia Xorg options (0 lines)
kwi 06 18:52:56 alienware-PC prime-switch-boot[822]: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
kwi 06 18:52:56 alienware-PC systemd[1]: Started Optimus Manager Commands Daemon.
kwi 06 18:52:56 alienware-PC python3[1088]: Optimus Manager (Daemon) version 1.2.2
kwi 06 18:52:56 alienware-PC python3[1088]: Automatic log cropping
kwi 06 18:52:56 alienware-PC python3[1088]: Opening UNIX socket
kwi 06 18:52:56 alienware-PC python3[1088]: Awaiting commands

Show me:

ls -lav /etc/optimus-manager/

Try to switch to nvidia few times and then show me logs:

journalctl -b -p3 > journalctl.log

journalctl -u optimus-manager.service > optimus-manager.log

The commands above will save the data to the files. Open them, move to the recent date, copy and paste here with proper formatting.

I also need your dm log, but what dm is used by deepin? Lightdm? If so:

journalctl -u lightdm.service > lightdm.log

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by