Skip to content

Instantly share code, notes, and snippets.

@mauri870
Last active March 2, 2022 02:23
Show Gist options
  • Save mauri870/5a54e415140875b9150ca31c491811f6 to your computer and use it in GitHub Desktop.
Save mauri870/5a54e415140875b9150ca31c491811f6 to your computer and use it in GitHub Desktop.
Installation of Manjaro 17 and nvidia/bumblebee drivers on Avell G1513

After a weekend of research, stress and pain I finally figure out how to install manjaro 17 and configure the nvidia/bumblebee drivers on my avell laptop

Here's my notebook specs:

$ inxi -MGCNA

Machine:   Device: laptop System: Avell High Performance product: 1513
           Mobo: N/A model: N/A v: 0.1 UEFI: American Megatrends v: N.1.02 date: 09/28/2016
Battery    BAT0: charge: 44.0 Wh 100.0% condition: 44.0/44.0 Wh (100%)
CPU:       Quad core Intel Core i7-6700HQ (-HT-MCP-) cache: 6144 KB 
           clock speeds: max: 3500 MHz 1: 2598 MHz 2: 2604 MHz 3: 2568 MHz 4: 2581 MHz 5: 2609 MHz 6: 2566 MHz
           7: 2593 MHz 8: 2601 MHz
Graphics:  Card-1: Intel HD Graphics 530
           Card-2: NVIDIA GM107M [GeForce GTX 960M]
           Display Server: X.Org 1.19.3 driver: intel Resolution: 1920x1080@60.02hz
           GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) GLX Version: 3.0 Mesa 17.0.5
Audio:     Card Intel Sunrise Point-H HD Audio driver: snd_hda_intel Sound: ALSA v: k4.9.27-1-MANJARO
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           Card-2: Intel Wireless 7265 driver: iwlwifi

The first problem occurred when booting the live usb with nonfree drivers, it simply hangs with the message A start job is running for LiveMedia MHWD Script. Possibly the Manjaro Hardware Detection(a.k.a MHWD) couldn't configure the correct drivers for this setup. I tryed some flags like xdriver=vesa, nouveau.modeset=0, and finally nomodeset that brings me a bit closer to the xserver session, but again it hangs now with the message Started TLP system startup/shutdown.

With some research I find the kernel flag systemd.mask=mhwd-live.service that brings me to the manjaro live session (blocks the mhwd from detecting the optimal drivers).

Then I start the installer and proceed with a normal installation but the installer again gets stuck now in 78% Running mhwdcfg, the screen simply freezes. To get arround this problem I restart and use the same flag described above to get into the live session and comment the run method on /lib/calamares/modules/mhwdcfg/main.py at the end of the file and repeat the installation again:

def run():
    """ Configure the hardware """
    
    mhwd = MhwdController()
    
    # return mhwd.run()
    return None # <- Add this and comment the above line

With this trick I finished the installation, restart and manjaro works fine!

First of all update your system with sudo pacman -Syu and once completed install the linux headers with sudo pacman -S linux49-headers(use your kernel version) then the non-free drivers with sudo mhwd -a pci nonfree 0300 and follow the bumblebee instruction from manjaro website.

Reboot the system and add the following kernel flags otherwise the system won't boot:

acpi_osi=! acpi_osi="Windows 2009"

Once you get into your graphical interface test if bumblebee is running correctly:

systemctl status bumblebeed
optirun -b none nvidia-settings -c :8

You should see the nvidia-settings showing your dedicated GPU, for me works like a charm!

Don't forget to add acpi_osi=! acpi_osi=\"Windows 2009\" to your GRUB_CMDLINE_LINUX_DEFAULT on /etc/default/grub and run sudo update-grub or grub-mkconfig -o /boot/grub/grub.cfg if the alias is not defined in your system.

Don't forget to prepend optirun or primusrun before any command in order to run with the dedicated GPU. E.g. optirun blender

@Peilix
Copy link

Peilix commented Dec 18, 2018

@Fenrihr I just Solve the Installation at my Lenovo Legion Y530(8300H with 1050Ti) buy not use this way. I add acpi=off when grub and install driver, then boot successfully.

@fraregom
Copy link

Install manjaro live usb;
In grub activate non-free drivers
Then edit the kernel parameters in grub (Press E key) and add the systemd.mask=mhwd-live.service and boot.

It didn't work for my HP Omen 15-DC0053la (Intel i7 8750H + NVIDIA GeForce GTX 1050) and manjaro-xfce-18.0-stable-x86_64.iso.
What make my liveusb boot was keeping driver=free.

And for boot the installed system, i use nouveau.modeset=0 acpi_osi=! acpi_osi=\"Windows 2009\" but cannot get the bumblebee drivers run. If someone have an idea or a possible solution, here is the post in manjaro forum:
https://forum.manjaro.org/t/cant-make-manjaro-boot-with-bumblebee-drivers-in-hp-omen-15-dc0053la/68180

@Fenrihr Hi, Were you able to fix it? I have a similar problem, in my case the system boot but after login the screen freezes. Sometimes can I see the desktop (after suspend in the login screen, can I login without any problem). I have a MSI GE62 Apache Pro with a Nvidia 960m and Intel i7 6700HQ (OS: Manjaro 18 with Gnome)

@khichinho
Copy link

@fraregom I have a similar configuration like you (Inspiron7559). This solved the problem for me.
https://connorkuehl.github.io/dell-inspiron-7559-linux-guide/#toc-reading

@dutofanim
Copy link

dutofanim commented Mar 7, 2019

@fraregom i get the same problem. I can install manjaro 18 KDE, but when i run it, the system freezes after the login screen. Have you found a solution for this problem? My hardware: Intel I7-8750H and a Nvidia 1050-TI

@MasterRedStorm
Copy link

@dutofanim I have the exact same Problem and the exact same question: did you solve the system freezing after the login screen?
Hardware XMG Laptop with: Intel I7-8750H and a Nvidia 1050-TI

@adwait-thattey
Copy link

Thanks a lot. This worked for me in Manjaro 18, Nvidia 1050 as well as Nvidia 1060

@daviszerro
Copy link

Worked. i5-8300H + GTX 1050Ti, manjaro-kde-18.0.4-stable-x86_64. Thank you very much.

@LaurentOngaro
Copy link

I've got the same issue With installing Manjaro 18.0.4 KDE on my MSI Apache PRO GE62 (I5 and NVIDIA 970M) laptop.
All the given solutions failed for me, except the one given by @Peilix.
To be more precise, I've:

  • booted with and LiveUSB key
  • let Free drivers as set by default
  • moved my cursor to the line starting by "Boot:..." and pressed the E key
  • moved my cursor to the end of the first line (the one that starts with set param:")
  • added acpi=off
  • saved my changes by pressing CTRL+X

the system booted and the installer ran well.

@Valenciano118
Copy link

Hi, I have an HP Omen computer from last year with an i7-8750H and a 1050 Ti. Some months ago I saw this guide and tried it, but after successfully installing I could never make it boot. Last month I had an issue with my Ubuntu installation and since I opted to format everything I decided to give a try again to Manjaro.

So after a couple weeks trying things I have finally managed to make it work. I'm not going to get too much into detail, but I'll explain the basic stuff so you can make it work.

I follow the installation process in this guide and it works flawlessly.

I can't get bumblebee to work, so I use Optimus-Switch which requires a boot to change the graphics card. You can take a look here to choose whatever you want.

So without exiting the installation state when it has finished I open a terminal and chroot into my installation.

I update all the packages and proceed to install my Optimus-Switch nvidia drivers. For me the modprobe acpi_call always fails, but I imagine it is because were are in a chroot environment.

Once I have installed it, I exit, unmount and reboot and in the Grub menu I change the parameters. I change the "quiet" to a "3", that way we start in text mode.

Then I log in and do the modprobe acpi_call to check it is working and set the graphics card. Once that's done I reboot and it is working without any problem, then I just have to finish configuring the Optimus-Switch as it is written on it's guide.

And then everything is working fine, I hope this helps you guys. By the way there's no need for me to use any acpi_osi for the system to boot up.

@Bruno-TT
Copy link

Thanks so much OP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment