Can't make Manjaro boot with bumblebee drivers in HP Omen 15-DC0053la

bumblebee
xfce
nvidia
mhwd

#1

Hi Manjaro Community…

I’ve been trying for a week to get Manjaro 18 xfce with nvidia drivers running in my new laptop HP Omen 15-DC0053la (Intel i7 8750H + NVIDIA GeForce GTX 1050) without any success.

I have read many “solutions” but none of them worked for me (unless I’m doing something wrong).

Here is my system info `inxi -Fxxz`
System:    Host: fenrihr18 Kernel: 4.19.0-3-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: Xfce 4.13.2git-UNKNOWN 
           tk: Gtk 3.24.1 wm: xfwm4 dm: LightDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: HP product: OMEN by HP Laptop 15-dc0xxx v: N/A serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: HP model: 84DA v: 93.17 serial: <filter> UEFI: AMI v: F.01 date: 04/20/2018 
Battery:   ID-1: BAT0 charge: 50.9 Wh condition: 50.9/50.9 Wh (100%) volts: 13.0/11.6 model: HP Primary serial: <filter> 
           status: Full 
CPU:       Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 9216 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 53004 
           Speed: 2803 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 2497 2: 2466 3: 2460 4: 2464 5: 2468 6: 2344 7: 2470 
           8: 2470 9: 2375 10: 2466 11: 2461 12: 2464 
Graphics:  Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Hewlett-Packard driver: N/A bus ID: 01:00.0 
           chip ID: 10de:1c8d 
           Display: x11 server: X.Org 1.20.3 driver: intel unloaded: modesetting alternate: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 18.2.3 compat-v: 3.0 
           direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a348 
           Sound Server: ALSA v: k4.19.0-3-MANJARO 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
           chip ID: 8086:a370 
           IF: wlo1 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8168 
           v: 8.045.08-NAPI port: 3000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: eno1 state: down mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 5.92 GiB (0.6%) 
           ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS721010A9E630 size: 931.51 GiB speed: 6.0 Gb/s serial: <filter> 
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus ID: 00:17.0 chip ID: 8086.282a 
Partition: ID-1: / size: 97.93 GiB used: 5.90 GiB (6.0%) fs: ext4 dev: /dev/sda6 
           ID-2: swap-1 size: 6.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 50.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 267 Uptime: 4m Memory: 7.64 GiB used: 687.8 MiB (8.8%) Init: systemd v: 239 Compilers: gcc: 8.2.1 
           Shell: bash v: 4.4.23 running in: xfce4-terminal inxi: 3.0.27 

For the instalation, i used the manjaro-xfce-18.0-stable-x86_64.iso image burned in a USB stick with dd command. The installation procedure was as follow:

  1. To boot into the live system i used the defaults options (driver=free) but disabling the Nouveau drivers in the grub through replacing nouveau.modeset=1 with modprobe.blacklist=nouveau (hint from this articule).

  2. The installation proceeded normally (with defaults).

  3. In the first boot of the installed system:
    3.1) disable the Nouveau driver with nouveau.modeset=0. If not, the system freeze after the login window (black screen with the white mouse cursor).

    3.2) from this articule, added nouveau.modeset=0 acpi_osi=! acpi_osi=\"Windows 2009\" to GRUB_CMDLINE_LINUX_DEFAULT on /etc/default/gruband run sudo update-grub && sudo reboot .

  4. Then i updated the system with sudo pacman -Syyu and once completed install the linux headers with sudo pacman -S linux419-headers and reboot

  5. Then:
    5.1) installed the non-free drivers with sudo mhwd -a pci nonfree 0300
    5.2) added my user to the bumblebee group (as suggested here)
    sudo gpasswd -a $USER bumblebee
    sudo gpasswd -a $USER video
    5.3) then sudo systemctl enable bumblebeed and reboot

  6. System feeze at boot in the mensage: Started Network Manager Script Dispatcher Service...

Here a photo of the messages at boot:

Here the output of `mhwd`:
[francisco@fenrihr18 ~]$ sudo mhwd -a pci nonfree 0300
[sudo] password for francisco: 
> Using config 'video-hybrid-intel-nvidia-bumblebee' for device: 0000:01:00.0 (0300:10de:1c8d) Display controller nVidia Corporation GP107M [GeForce GTX 1050 Mobile]
> Using config 'video-hybrid-intel-nvidia-bumblebee' for device: 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation 
> Installing video-hybrid-intel-nvidia-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Sincronizando las bases de datos de los paquetes...
advertencia: xf86-video-intel-1:2.99.917+855+g746ab3bb-1 está actualizado -- omitiéndolo
 core está actualizado
 extra está actualizado
 community está actualizado
 multilib está actualizado
resolviendo dependencias...
buscando conflictos entre paquetes...
advertencia: se ha detectado un bucle de dependencias:
advertencia: primus se instalará antes de su dependencia bumblebee

Paquetes (9) egl-wayland-1.1.0-1  eglexternalplatform-1.0+3+g7c8f8e2-1  primus-20151110-8  bumblebee-3.2.1-22  lib32-nvidia-utils-1:415.18-1  lib32-primus-20151110-4  linux419-bbswitch-0.8-6  linux419-nvidia-1:415.18-3  nvidia-utils-1:415.18-1

Tamaño total de la descarga:     76,90 MiB
Tamaño total de la instalación:  298,82 MiB

:: ¿Continuar con la instalación? [S/n] 
:: Obteniendo los paquetes...
descargando eglexternalplatform-1.0+3+g7c8f8e2-1-any.pkg.tar.xz...
descargando egl-wayland-1.1.0-1-x86_64.pkg.tar.xz...
descargando nvidia-utils-1:415.18-1-x86_64.pkg.tar.xz...
descargando linux419-nvidia-1:415.18-3-x86_64.pkg.tar.xz...
descargando linux419-bbswitch-0.8-6-x86_64.pkg.tar.xz...
descargando primus-20151110-8-x86_64.pkg.tar.xz...
descargando bumblebee-3.2.1-22-x86_64.pkg.tar.xz...
descargando lib32-nvidia-utils-1:415.18-1-x86_64.pkg.tar.xz...
descargando lib32-primus-20151110-4-x86_64.pkg.tar.xz...
comprobando el depósito de claves...
verificando la integridad de los paquetes...
cargando los archivos de los paquetes...
comprobando conflictos entre archivos...
comprobando el espacio disponible en el disco...
:: Procesando los cambios de los paquetes...
instalando primus...
instalando eglexternalplatform...
instalando egl-wayland...
instalando nvidia-utils...
==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.
Dependencias opcionales para nvidia-utils
    gtk2: nvidia-settings [instalado]
    xorg-server-devel: nvidia-xconfig
    opencl-nvidia: OpenCL support
instalando bumblebee...
Dont forget to add yourself to the 'bumblebee' group to use Bumblebee
Dependencias opcionales para bumblebee
    xf86-video-nouveau: nouveau driver [instalado]
    nouveau-dri: 3D acceleration features fo nouveau [instalado]
    bbswitch: switch on/off discrete card [pendiente]
    nvidia: NVIDIA kernel driver [pendiente]
    virtualgl: alternative back-end for optirun
    lib32-virtualgl: run 32bit applications with optirun
    lib32-primus: faster back-end for optirun [pendiente]
instalando lib32-nvidia-utils...
Dependencias opcionales para lib32-nvidia-utils
    lib32-opencl-nvidia
instalando lib32-primus...
instalando linux419-nvidia...
In order to use nvidia module, reboot the system.
instalando linux419-bbswitch...
:: Ejecutando los «hooks» de posinstalación...
(1/6) Updating linux419 module dependencies...
(2/6) Reloading system manager configuration...
(3/6) Creating system user accounts...
(4/6) Reloading device manager configuration...
(5/6) Arming ConditionNeedsUpdate...
(6/6) Updating the desktop file MIME type cache...
xorg configuration file: '/etc/X11/mhwd.d/intel.conf'
Created symlink /etc/systemd/system/multi-user.target.wants/bumblebeed.service → /usr/lib/systemd/system/bumblebeed.service.
> Successfully installed video-hybrid-intel-nvidia-bumblebee

Any idea of what to do now? pls help me!


More info:
---- Before the driver instalation:

mhwd -li
Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
         network-r8168            2016.04.20                true            PCI

Warning: No installed USB configs!
cat /etc/X11/xorg.conf.d/*.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "latam"
        Option "XkbModel" "pc105"
EndSection
pacman -Qs nvidia
local/lib32-libvdpau 1.1.1-3
    Nvidia VDPAU library
local/libvdpau 1.1.1+3+ga21bf7a-1
    Nvidia VDPAU library
local/mhwd-nvidia 1:415.18-1
    MHWD module-ids for nvidia 415.18
local/mhwd-nvidia-340xx 340.107-1
    MHWD module-ids for nvidia 340.107
local/mhwd-nvidia-390xx 390.87-1
    MHWD module-ids for nvidia 390.87
local/xf86-video-nouveau 1.0.15-3 (xorg-drivers)
    Open Source 2D acceleration driver for nVidia cards

---- After the driver instalation ():

mhwd -li
Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
         network-r8168            2016.04.20                true            PCI
video-hybrid-intel-nvidia-bumblebee            2018.08.09               false            PCI

Warning: No installed USB configs!
cat /etc/X11/xorg.conf.d/*.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "latam"
        Option "XkbModel" "pc105"
EndSection
##
## Generated by mhwd - Manjaro Hardware Detection
##
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna"
	Option      "DRI"    "true"
EndSection
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
pacman -Qs nvidia
local/bumblebee 3.2.1-22
    NVIDIA Optimus support for Linux through Primus/VirtualGL
local/lib32-libvdpau 1.1.1-3
    Nvidia VDPAU library
local/lib32-nvidia-utils 1:415.18-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.1.1+3+ga21bf7a-1
    Nvidia VDPAU library
local/linux419-nvidia 1:415.18-3 (linux419-extramodules)
    NVIDIA drivers for linux.
local/mhwd-nvidia 1:415.18-1
    MHWD module-ids for nvidia 415.18
local/mhwd-nvidia-340xx 340.107-1
    MHWD module-ids for nvidia 340.107
local/mhwd-nvidia-390xx 390.87-1
    MHWD module-ids for nvidia 390.87
local/nvidia-utils 1:415.18-1
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.15-3 (xorg-drivers)
    Open Source 2D acceleration driver for nVidia cards

#2

mhwd -li shows that video-linux is still installed. im guessing you didnt uninstall it first before installing the non-free bumblebee drivers?

right now you have both free and non-free drivers installed. uninstall the video-linux drivers from msm.

i believe its
sudo mhwd -r pci video-linux


#3

if that does not fix it, you could uninstall/install bumblebee again now that video-linux is no longer there.


#4

I had to uninstall both (video-linux and bumblebee) for the system to boot.


#5

if everything working now?


#6

yeah but without video drivers … then i try the solution of this post:

Steps:

  1. Create file /etc/modprobe.d/blacklist.conf and write content blacklist nouveau
  2. Add to kernel params acpi_rev_override=1
  3. Install bumblebee pacman -S bumblebee
  4. Enable it systemctl enable bumblebeed
  5. Start it systemctl start bumblebeed
  6. I also checked result systemctl status bumblebeed
  7. Remove old drivers mhwd -r pci video-linux or mhwd -r pci video-intel
  8. Install new mhwd -i pci video-hybrid-intel-nvidia-bumblebee
  9. sudo reboot

In the 6th step, i saw the message: “Module bbswitch not found” and in the 8th this line: modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.19.0-3-MANJARO

And when reboot the system freeze again in the same “spot”.


#7

i dont use bumblebee but check package manager and see if you have bbswitch installed that matches the kernel your using.
pacman -Q bbswitch
also, did you add your username to bumblebee group?
sudo gpasswd -a YourUsername bumblebee

if that is all good, what kernel parameters are you using?


#9

post output of:
cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT


#10

i don’t use bumblebee but check package manager and see if you have bbswitch installed that matches the kernel your using.

I install manually linux419-bbswitch with liveusb and mhwd-chroot but didn’t work either

also, did you add your username to bumblebee group?

yes i did.

This is the content of GRUB_CMDLINE_LINUX_DEFAULT:

quiet resume=UUID=<filter> acpi_osi=! acpi_osi='Windows 2009' acpi_rev_override=1

#11

i believe Windows 2009 is suppose to be between " and yours are showing ’
edit and update grub or just hit “e” at grub and put it exacly as it is below
sudo nano /etc/default/grub
acpi_osi=! acpi_osi=“Windows 2009”

edits made to grub at boot are not permanent, just that 1 boot. you could try with only those 2 parameters or just modify what you have there already to see if either will work.
try with and without acpi_rev_override=1


#12

if you edit /etc/default/grub dont forget to save and then:
sudo update-grub

you can also try other knows parameters, changing the
acpi_osi=“Windows 2009”
to
acpi_osi=“Windows 2015”
or
acpi_osi=“Windows 2006”


#13

you could also try adding another kernel, 4.14 is the previous lts kernel.
sudo mhwd -i linux414
sudo pacman -S linux414-headers
then reboot and select that kernel from grub advanced options.

and if none of that works you do have other (better IMO) options. there are a couple reasons why i dont use bumblebee myself:

  1. nothing i tried (tried alot,for a long time) would make bumblebee work for my dell optimus laptop.
  2. using video-nvidia PRIME setup just works, no need for optirun or primusrun or bbswitch.
  3. better performance all around.
  4. it’s not like i had any other options since bumblebee wouldnt work.

heres a good tutorial on how to setup using PRIME if you think it suits you better.


#14

i tested all this params in grub:

  • acpi_osi=! acpi_osi=“Windows 2009” acpi_rev_override=1 => NO
  • acpi_osi=! acpi_osi=“Windows 2013” acpi_rev_override=1 => NO
  • acpi_osi=! acpi_osi=“Windows 2015” acpi_rev_override=1 => NO
  • acpi_osi=! acpi_osi=“Windows 2016” acpi_rev_override=1 => NO
  • acpi_osi=! acpi_osi=“Windows 2009” => NO
  • acpi_osi=! acpi_osi=“Windows 2013” => NO
  • acpi_osi=! acpi_osi=“Windows 2015” => NO
  • acpi_osi=! acpi_osi=“Windows 2016” => NO
  • acpi_osi=! acpi_osi=“Windows 2009” acpi_rev_override=1 nomodeset => NO

But all that freeze in Started Network Manager Script Dispatcher Service.. Only after removing all the next packages the system start running.

uninstalled package
xf86-video-intel
linux419-nvidia
nvidia-utils
lib32-nvidia-utils
virtualgl
lib32-virtualgl
linux419-bbswitch
lib32-primus
primus
bumblebee

Also, from time to time i see the msg:

iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS


#15

what do you for output now?
inxi -Gxx
mhwd -li

one more thing i forgot to mention before was if you have the option in bios to disable the integrated intel gpu and use only nvidia you could just use nvidia only which eliminates any optimus related problems. thats if you have the bios option to do so, im not fortunate enough to have that as an option.
also, iirc bumblebee needs some of those packages to work properly


#16

i don’t have that option in the BIOS either.

`inxi -Gxx`
Graphics:  Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Hewlett-Packard driver: N/A bus ID: 01:00.0 
           chip ID: 10de:1c8d 
           Display: x11 server: X.Org 1.20.3 driver: intel unloaded: modesetting alternate: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 18.2.3 compat-v: 3.0 
           direct render: Yes
`mhwd -li`
Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI

Warning: No installed USB configs!

#17

ok so you no longer have any nvidia related drivers installed since you uninstalled them. and your able to load a graphical desktop im assuming with intel/vesa?
if you plan on using this laptop for anything gaming/graphic oriented tasks your going to need to install gpu drivers of some sort that work with the nvidia gpu.
that link above to the PRIME tutorial is how i set mine up and works great, no graphical issues and gaming works great (for the rare times i ever play games).
you can also follow the tutorial on how to use optimus-manager which lets you decide which gpu to use for each session. i believe you set which one and then reload xorg and it uses specified gpu.

i cant find anything in multiple search engines about that. im not sure how old your bios are, its filtered on your inxi output but the current version is “F.07 Rev.A” and it was released nov 12 2018
if you have windows installed dual boot this is much simpler to do from there. if not its still simple enough to do, download the .exe from HP and either put it on a fat32 formatted usb drive or just copy it directly to your EFI partition and then reboot and press whichever key/keys the brings you to boot selection menu and you should see an option for updating bios from a file, select file and update.

whichever you decide to do, since this is a new install and you tried/modified many things it may be wise and less risk of wasting time if you begin from a clean install with free drivers, update mirrors and do a full system up update and then proceed to making changes. i usually do this from live usb and manjaro-chroot -a into your new install.

note: i mention free drivers during install as it really doesnt matter, your uninstalling them after anyway. that just happened to be the only way for me to get into the live desktop and i preferred to not to use bumblebee from the get go since it only ever caused me problems no matter what parameters i added to grub command line. as of right now i have no need for any acpi kernel parameters and everything works fine. this may be the case for you also but maybe not.


#18

First, i have to say: thanks you for your time.
In the end i setup nvidia PRIME using the tutorial and a fresh install of Manjaro Budgie.

A related question, did you have any tutorial recommended for how to configure nvidia prime and optimus-manager ?


#19

i never never optimus-manager, its fairly new and i believe still in active development. as far as configuring nvidia if setup using prime, just open nvidia-settings, make changes and save.

once setup nvidia prime needs little or no maintenance, none so far for me anyway and i use it on my gnome and kde installs