Nvidia X Server Settings and prime-run not working!

Hello, I use my laptop a lot, it has a dedicated gpu and when i want to game i use that, I have been using it before, although for some reason recently it has stopped working altogheter.
Some programs work with prime-run, some, specifically java related ones (Minecraft), can’t obtain a graphic context.

I tried opening X Server Settings as to no avail, what should I do?

I think I have the same problem. nvidia-smi dmon shows no usage in the dGPU while running games, and the performance level has no effect over this. I have no clue on what to do

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…

  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)

:+1:

P.S. @tomazpcnm If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU or Kernel, … you have without typing it every time.

System:
  Kernel: 5.10.19-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=dc958c3d-f772-403d-ba4f-3c5900bd8a65 ro quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel, plank, vala-panel 
  wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: GL753VD v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: GL753VD v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: GL753VD.306 date: 01/02/2018 
Battery:
  ID-1: BAT0 charge: 36.6 Wh condition: 38.4/48.2 Wh (80%) volts: 16.2/14.4 
  model: Simplo SDI ICR18650 type: Li-ion serial: <filter> status: Unknown 
  cycles: 33 
Memory:
  RAM: total: 15.52 GiB used: 5.78 GiB (37.2%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP 
  arch: Kaby Lake family: 6 model-id: 9E (158) stepping: 9 microcode: DE 
  L2 cache: 6 MiB bogomips: 44817 
  Speed: 1319 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 1319 2: 1323 
  3: 1321 4: 1345 5: 1347 6: 1327 7: 1315 8: 1296 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  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: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel HD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:591b class ID: 0300 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: ASUSTeK 
  driver: nvidia v: 460.56 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1c8d class ID: 0302 
  Device-3: Realtek USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus ID: 1-11:7 chip ID: 0bda:57f6 class ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.10 driver: loaded: modesetting 
  display ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 3286x1080 s-dpi: 96 s-size: 869x285mm (34.2x11.2") 
  s-diag: 915mm (36") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 128 size: 382x215mm (15.0x8.5") 
  diag: 438mm (17.3") 
  Monitor-2: HDMI-1 res: 1366x768 hz: 60 dpi: 85 size: 410x230mm (16.1x9.1") 
  diag: 470mm (18.5") 
  OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel CM238 HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 chip ID: 8086:a171 class ID: 0403 
  Device-2: Logitech G432 Gaming Headset type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-2.2:10 chip ID: 046d:0a9c 
  class ID: 0300 serial: <filter> 
  Sound Server: ALSA v: k5.10.19-1-MANJARO 
Network:
  Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: e000 
  bus ID: 02:00.0 chip ID: 8086:095a class ID: 0280 
  IF: wlan0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 03:00.0 
  chip ID: 10ec:8168 class ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
  bus ID: 1-9:5 chip ID: 8087:0a2a class ID: e001 
  Message: Required tool hciconfig not installed. Check --recommends 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 2.05 TiB used: 919.64 GiB (43.8%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Micron model: 1100 MTFDDAV256TBN 
  size: 238.47 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: A020 scheme: GPT 
  ID-2: /dev/sdb maj-min: 8:16 vendor: HGST (Hitachi) model: HTS721010A9E630 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: A3V0 scheme: GPT 
  ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Western Digital 
  model: WD Elements 25A2 size: 931.48 GiB block size: physical: 512 B 
  logical: 512 B serial: <filter> rev: 1021 scheme: GPT 
  Optical-1: /dev/sr0 vendor: Slimtype model: DVD A DA8AESH rev: XAAM 
  dev-links: cdrom 
  Features: speed: 24 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r state: running 
Partition:
  ID-1: / raw size: 40.2 GiB size: 39.32 GiB (97.81%) used: 36.14 GiB (91.9%) 
  fs: ext4 dev: /dev/sdb4 maj-min: 8:20 label: N/A 
  uuid: dc958c3d-f772-403d-ba4f-3c5900bd8a65 
  ID-2: /boot/efi raw size: 260 MiB size: 256 MiB (98.46%) 
  used: 31 MiB (12.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: SYSTEM 
  uuid: 0AE0-F7F5 
  ID-3: /run/media/kz-n/D2 raw size: 19.03 GiB size: 18.61 GiB (97.77%) 
  used: 13.87 GiB (74.5%) fs: ext4 dev: /dev/sdb3 maj-min: 8:19 label: D2 
  uuid: 1bd691ec-b849-49fc-b2a6-d81603bfe425 
  ID-4: /run/media/kz-n/Elements raw size: 931.48 GiB 
  size: 931.48 GiB (100.00%) used: 869.61 GiB (93.4%) fs: ntfs dev: /dev/sdc1 
  maj-min: 8:33 label: Elements uuid: 22C89D40C89D1361 
Swap:
  Alert: No Swap data was found. 
Unmounted:
  ID-1: /dev/sda2 maj-min: 8:2 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/sda3 maj-min: 8:3 size: 237.42 GiB fs: ntfs label: OS 
  uuid: C004E40804E3FEF2 
  ID-3: /dev/sda4 maj-min: 8:4 size: 800 MiB fs: ntfs label: RECOVERY 
  uuid: F6AA2CB8AA2C7771 
  ID-4: /dev/sdb1 maj-min: 8:17 size: 871.78 GiB fs: ntfs label: DATA 
  uuid: 0A1276E51276D4E3 
  ID-5: /dev/sdb2 maj-min: 8:18 size: 513 MiB fs: vfat label: N/A 
  uuid: B0EA-1AF6 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-2: 1-2:2 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  chip ID: 1a40:0101 class ID: 0900 
  Device-1: 1-2.1:4 info: GAOMON Gaomon Tablet type: Mouse 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  chip ID: 256c:006d class ID: 0301 
  Device-2: 1-2.2:10 info: Logitech G432 Gaming Headset type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0 
  speed: 12 Mb/s chip ID: 046d:0a9c class ID: 0300 serial: <filter> 
  Device-3: 1-2.3:8 info: Logitech G502 SE HERO Gaming Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  chip ID: 046d:c08b class ID: 0300 serial: <filter> 
  Device-4: 1-2.4:9 info: Microdia USB DEVICE type: Keyboard,Mouse 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  chip ID: 0c45:8513 class ID: 0301 
  Device-5: 1-3:3 info: ASUSTek ITE Device(8910) type: Keyboard 
  driver: asus,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s chip ID: 0b05:1854 
  class ID: 0301 
  Device-6: 1-9:5 info: Intel Bluetooth wireless interface type: Bluetooth 
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s chip ID: 8087:0a2a 
  class ID: e001 
  Device-7: 1-11:7 info: Realtek USB2.0 HD UVC WebCam type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 0bda:57f6 
  class ID: 0e02 serial: <filter> 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.0 speed: 5 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
  Device-1: 2-1:2 info: Western Digital Elements 25A2 type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 3.1 speed: 5 Gb/s chip ID: 1058:25a2 
  class ID: 0806 serial: <filter> 
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 2600 
Info:
  Processes: 270 Uptime: 10h 56m wakeups: 1 Init: systemd v: 247 Compilers: 
  gcc: 10.2.0 Packages: apt: 0 pacman: 1311 lib: 386 flatpak: 0 Shell: Bash 
  v: 5.1.0 running in: xfce4-terminal inxi: 3.3.01

Minecraft needs openjdk-8 to run and manjaro defaults to 15? I think any way make sure you are using the correct version of jdk for Minecraft and see if that fixes it

1 Like

Minecraft uses its own jre that’s included in the launcher, this isn’t just a problem with Minecraft or java applications they are just what i tried them on, prime-run work on any other game or program.
And x server settings doesn’t open, which i think means it cant connect with the drivers…

1 Like

That’s good!

Well, than it’s a MineCraft issue, so have you tried @sawdoctor 's excellent advice already?

:thinking:

it is not, no program works with prime-run, i just think that the programs i try them on manage to fallback on the integrated graphics card to function.
I’ve tried all my library, custom engine games, unity… unreal;
they all “cannot obtain a graphical context”

And also minecraft uses its own java runtime that’s included in the launcher, so it doesnt get affected by what manjaro uses…

what’s the output to:

prime-run glxinfo | grep vendor
mhwd --listinstalled

:question:

Sorry for late response,

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
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2020.11.30               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!

Which command gives that error? The last one? What does the first one give?

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

,

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2020.11.30               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!

prime-run glxinfo | grep vendor
and
mhwd --listinstalled
respectively

Execute:

mhwd --remove pci video-modesetting 

and try again…

:thinking:

Error: config 'video-modesetting' is required by config(s): video-hybrid-intel-nvidia-prime

I don’t know any more what’s going on with your machine and I’m all out of bright ideas!

:sob:

1 Like

I see in your inxi some weirdness to me but that can be a laptop thing: you have one screen with 3280x1080 resolution, that I guess is made of two monitors side by side one 1920x1080 (laptop screen) and one 1366x768 (external?).

Do you have a secondary monitor plugged in? What happens if you unplug it and if you restart and try to run the prime-run glxinfo | grep vendor command again?

1 Like