NVRM: RmInitAdapter failed! | frech ArchLinux install | bumblebee

hey guys…i’m about to pull my hair out, cant figure out why i cant make it work.

so i’m trying to get bumblebee to work, no luck so far.

–>>FRESH ARCH INSTALL<<–
installed i3,spotify, steam and a couple of other things but have yet to mess with system settings and what not.

computer name:

Acer Aspire E5-571G

i added some stuff:

8G ram, 500GB SSD

not that it matters just to give you guys as much info as possible.

uname -a

Linux void 5.0.0-arch1-1-ARCH #1 SMP PREEMPT Mon Mar 4 14:11:43 UTC 2019 x86_64 GNU/Linux

lspci | egrep ‘VGA|3D’

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)

packages installed:

nvidia
lib32-nvidia-utils
nvidia-settings
nvidia-utils
bumblebee
mesa
xf86-video-intel
lib32-virtualgl
mesa-demos
xorg-server
xorg-server-common

optirun -vvv glxgears:

[ 1033.858761] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1033.859447] [DEBUG]optirun version 3.2.1 starting...
[ 1033.859477] [DEBUG]Active configuration:
[ 1033.859486] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1033.859494] [DEBUG] X display: :8
[ 1033.859502] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
[ 1033.859576] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1033.859627] [DEBUG] Accel/display bridge: auto
[ 1033.859648] [DEBUG] VGL Compression: proxy
[ 1033.859667] [DEBUG] VGLrun extra options:
[ 1033.859691] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 1033.859750] [DEBUG]Using auto-detected bridge virtualgl
[ 1042.063171] [INFO]Response: No - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:3:0:0.  Please

[ 1042.063186] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:3:0:0.  Please

[ 1042.063191] [DEBUG]Socket closed.
[ 1042.063200] [ERROR]Aborting because fallback start is disabled.
[ 1042.063204] [DEBUG]Killing all remaining processes.

/var/log/Xorg.8.log

/etc/bumblebee/bumblebee.conf

etc/bumblebee/xorg.conf.nvidia

dmesg

bootloeader options (systemd)

title	Arch Linux
linux	/vmlinuz-linux
initrd	/intel-ucode.img
initrd	/initramfs-linux.img
options	cryptdevice=/dev/sda2:luks:allow-discards resume=/dev/mapper/vg0-swap root=/dev/mapper/vg0-root rw quiet modprobe.blacklist=nouveau rcutree.rcu_idle_gp_delay=1

hope you guys can help me, let me know if you need any more info.

edit:

lsmod

i found this thread about the “RmInitAdapter failed!” , sadly i dont have the

Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1

on my xorg.conf.nvidia…
also as pointed out on my systemd conf, i do have

rcutree.rcu_idle_gp_delay=1

digging into the nvidia forums:
nvidia-smi -q

No devices were found

honestly i’m just trying anything and everything at this point…
found another thread that said to use

pcie_aspm=off

on the kernel, that didnt work

nvidia-bug-report.sh

about the report:
aside from the obvious

RmInitAdapter failed!

i found this:

[   11.287967] bbswitch: module verification failed: signature and/or required key missing - tainting kernel
[   11.288207] bbswitch: version 0.8
[   11.288213] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[   11.288222] bbswitch: Found discrete VGA device 0000:03:00.0: \_SB_.PCI0.RP05.PEGP
[   11.288236] ACPI Warning: \_SB.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20181213/nsarguments-66)
[   11.288361] bbswitch: detected an Optimus _DSM function
[   11.288375] pci 0000:03:00.0: enabling device (0006 -> 0007)
[   11.288435] bbswitch: Succesfully loaded. Discrete card 0000:03:00.0 is on
[   11.303338] bbswitch: disabling discrete graphics

also

[   45.003098] bbswitch: enabling discrete graphics
[   45.068449] IPMI message handler: version 39.2
[   45.070418] ipmi device interface
[   45.190433] nvidia: module license 'NVIDIA' taints kernel.
[   45.190435] Disabling lock debugging due to kernel taint
[   45.204573] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[   45.305139] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  418.43  Tue Feb 19 01:12:11 CST 2019
[   53.504298] NVRM: RmInitAdapter failed! (0x26:0x65:1106)
[   53.504326] NVRM: rm_init_adapter failed for device bearing minor number 0
[   68.249397] NVRM: RmInitAdapter failed! (0x26:0x65:1106)
[   68.249430] NVRM: rm_init_adapter failed for device bearing minor number 0
[  234.642029] NVRM: RmInitAdapter failed! (0x26:0x65:1106)
[  234.642068] NVRM: rm_init_adapter failed for device bearing minor number 0

is the connection with the gpu broken or something? not sure what to make of this:

*** /proc/driver/nvidia/./gpus/0000:03:00.0/information
*** ls: -r--r--r-- 1 root root 0 2019-03-11 18:02:31.852095882 +0000 /proc/driver/nvidia/./gpus/0000:03:00.0/information
Model: 		 Unknown
IRQ:   		 48
GPU UUID: 	 GPU-????????-????-????-????-????????????
Video BIOS: 	 ??.??.??.??.??
Bus Type: 	 PCIe
DMA Size: 	 40 bits
DMA Mask: 	 0xffffffffff
Bus Location: 	 0000:03:00.0
Device Minor: 	 0
Blacklisted:	 No

i didnt changed the ???, thats how the log shows it…but then again i’m no nvidia/hardware expert, so it could be nothing related

Please try kernel parameters
acpi_osi=! acpi_osi=“Windows 2009”

hello! thanks for the help.

sadly it didnt work.

new-nvidia-bug-report

new dmesg

a quick look into dmesg shows it giving the same error " NVRM: RmInitAdapter failed! "

let me know if you need more logs.

EDIT:

i also tried: [ acpi_osi=! acpi_osi=“Windows 2015” ]

same problem, dmesg shows a new message, i’m not sure if it is relevant.

[   24.092315] nvidia: module license 'NVIDIA' taints kernel.
[   24.092318] Disabling lock debugging due to kernel taint
[   24.106498] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[   24.207033] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  418.43  Tue Feb
19 01:12:11 CST 2019
[   32.408330] NVRM: RmInitAdapter failed! (0x26:0x65:1106)
[   32.408368] NVRM: rm_init_adapter failed for device bearing minor number 0

windows 2015 dmesg

Can you remove bbswitch so the nvidia gpu doesn’t get turned off to rule out a general hw failure? Did you already try a 4.x kernel?

removed bbswitch ( pacman -Rns bbswitch )

tried with the kernel options:
acpi_osi=! acpi_osi=“Windows 2009”
acpi_osi=! acpi_osi=“Windows 2015”
and without those 2

still doesnt work.

i haven’t tried to rollback on the kernel just yet, mainly because i’m not quite sure how to do it, but i will look at the wiki right now, do you have a kernel version that you recommend?

maybe i should try the lts? (linux-lts)

4.19/4.20 should be fine.

Sorry for the delay, had some problem but i did it.

i am now on the lts kernel (linux-lts) (version 4.19)

still doesnt work, but NOW the error calls of nauveou, the problem is that i NEED to have noueveau blacklisted or it will freeze my computer ( i didnt tested nauveou on this kernel)

anyway using the acpi_osi=! acpi_osi=“Windows 2009”

nvidia-bug
lts-dmesg

edit:

disabled modprobe.blacklist=nouveau
pc didnt freeze (yay) but still the same problem when i call optirun -vvv glxgears

[   19.295902] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   19.296510] [DEBUG]optirun version 3.2.1 starting...
[   19.296543] [DEBUG]Active configuration:
[   19.296562] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   19.296573] [DEBUG] X display: :8
[   19.296584] [DEBUG] LD_LIBRARY_PATH:
[   19.296594] [DEBUG] Socket path: /var/run/bumblebee.socket
[   19.296604] [DEBUG] Accel/display bridge: auto
[   19.296614] [DEBUG] VGL Compression: proxy
[   19.296627] [DEBUG] VGLrun extra options:
[   19.296658] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[   19.296797] [DEBUG]Using auto-detected bridge virtualgl
[   22.775242] [INFO]Response: No - error: [XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)

[   22.775261] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)

[   22.775268] [DEBUG]Socket closed.
[   22.775279] [ERROR]Aborting because fallback start is disabled.
[   22.775284] [DEBUG]Killing all remaining processes.

discard it!

i forgot to install nvidia-lts.
installed it, now i’m having the SAME problem that i did on the 5.0 kernel.

Please attach a new dmesg with bbswitch uninstalled and nouveau blacklisted.

lts-kernel,nouveau-blacklisted-dmesg

edit: and bbswitch is unistalled since i did the pacman -Rns a few posts back.

I suspect the gpu might be broken, you can only install Windows and check if it works there but I doubt it.

ok.
by suggestion of an respected user on the arch forum i went ahead and

systemctl set-default multi-user.target

logged in as root, did the nvidia-smi -q and “No devices were found”

does this align with your suspicions ?

If the driver is loaded, yes.