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

@Turysaz
Copy link

Turysaz commented Feb 1, 2018

Thanks a lot! 👍

@xanvierb
Copy link

Installing it right now. Wasn't able to get in the installation in the first place, thanks!
I'm using an laptop with GTX950M

@steven-jeanneret
Copy link

Thank's a lot, it help me to install Manjaro and the acpi_osi=! acpi_osi=\"Windows 2009\" solve a problem on my Ubuntu too.

@marc-fez
Copy link

Really useful, helped me get manjaro budgie installed on my Dell XPS 15.

By the way, I found the solution to the mhwd problem here: https://forum.manjaro.org/t/manjaro-hangs-at-mhwd-command/37805/6

Instead of editing the /lib/calamares/modules/mhwdcfg/main.py script, I created the symlink as indicated. After installing and rebooting, I had to recreate the symlink or mhwd would hang even when just listing devices.

I

@MissakaI
Copy link

MissakaI commented May 5, 2018

Where should I enter systemd.mask=mhwd-live.service.

@joeky888
Copy link

joeky888 commented May 5, 2018

Hi, @MissakaI

Source here: https://forum.manjaro.org/t/a-start-job-is-running-for-livemedia-mhwd-script/3395/20

in short,

Install majaro live usb

In grub activate non-free drivers

Edit the kernel parameters in grub (Press E key) and add the systemd.mask=mhwd-live.service and boot.

like this:

1

2

Once in the live image, before installig you have to edit with sudo the following file:

sudo nano /usr/lib/calamares/modules/mhwdcfg/main.py

Change:

def run(self):
  for b in self.bus:
    for id in self.identifier['net']:
      self.configure(b, id)
    for id in self.identifier['video']:
   self.configure(b, id)
   return None

to

def run(self):
  return None

@BavarianGOD
Copy link

Thanks for the really helpful posts.
What am I making wrong?
I have an image DVD with manjaro on it.
I did the setup like like described about.
After a min or so the installation stops. I press CTRL+Alt+F2

I have to log in with manjaro and pw manjaro
I get to the terminal and edit the

sudo nano /usr/lib/calamares/modules/mhwdcfg/main.py
file

after saving and exit the editor I am back in the terminal and nothing happens
sudo update-grub doesnt work.
pacman keyr-ring etc also doesnt get the positiv results.
A reboot brings me back to the beginning with no change.

I am really frustated now.
I have a Samsung laptop built in 2013
hybrid amd E2-2000 nevdia HD 7420
2 Prezessors with 1.6 Ghz
8 GB RAM

Ubuntu didnt work well. so i want to try manjaro.

Greetings from south Germany,

Yours Erwin

@MissakaI
Copy link

MissakaI commented May 14, 2018

@j16180339887
Thanks a lot. Ok now I've managed the installation and restarted right away. I was able to reach the login page. I entered the password, hit enter, login screen fades away and nothing beyond that point. Tried Ctrl+Alt+F2, no response.

Ok. Fixed.

@coderade
Copy link

coderade commented Jun 4, 2018

Vlw cara, eu tenho um novo notebook avell e tive o mesmo problema.
Muito obrigado por compartilhar a sua solução!

Thank you!

@aljordan
Copy link

Excellent guide. Thanks so much.

@rlaace423
Copy link

rlaace423 commented Jul 9, 2018

@MissakaI
After installation, at grub, press "e" and add below line
acpi_osi=! acpi_osi="Windows 2009"
after linux command (which is before "echo ... ramdisk" line.)

Then, follow again what this article says!

@8tomat8
Copy link

8tomat8 commented Jul 25, 2018

On my Dell XPS 15 9570 it solve the problem! Thanks

@DBFritz
Copy link

DBFritz commented Aug 15, 2018

@mauri870
Thanks a lot! Excellent guide!

@Mrigank11
Copy link

Thanks a lot!! You really made my day.
Works perfectly on GTX 1050MX.

@balliegojr
Copy link

Hello friend.

I have the exact same model you have. Today I'm using Manjaro i3 community distro, but at the time I was setting up the machine (about two years ago) I wasn't able to make bumblebee work, so I went with nvidia only, which is working fine for this distro.
However, few weeks ago I've tried to setup a new environment, Manjaro Gnome, and I had a few problems, so I have a couple of questions:

1.) Does your setup work fine with external displays?
2.) What desktop environment are you using?

Thanks!

@k9bbzJavftZaqAqSW3dY
Copy link

k9bbzJavftZaqAqSW3dY commented Oct 29, 2018

Thanks a ton OP, I had a hard time with my new laptop and was about to give up and use Windows... What a great guy!

This is what I needed to get it running on the ASUS Zenbook UX550VD, with one change:
It was necessary to append grub by
acpi_osi=! acpi_osi="Windows 2009"
and reboot BEFORE running:
sudo mhwd -a pci nonfree 0300

Copy link

ghost commented Nov 2, 2018

@joeky888

I used this method to successfully install the system to my laptop, but at startup, enter the login interface to enter the password, and then directly stuck in the login interface, what may be caused by this?

@Fenrihr
Copy link

Fenrihr commented Dec 10, 2018

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

@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