Installing Arch Linux on MSI GP63 (nvidia video setup)

August 14, 2018
archlinux msi gp63 nvidia optimus video

Recently got a MSI GP63 laptop, so I installed the arch on it right away. Below is some experience that would like to share, so other people would feel life is easier when installing arch linux.

The basic/general stuff, such as alter the BIOS setting, disk partition, set up locale etc, will be skipped. Cause these information are all over the net. The focus wil be on the video and audio.

Booting with the USB:

I put below 2 kernel parameters to bring up the laptop with usb stick.


Video card

Since this notebook is nvidia optimus, and personally I need nvidia. And bumblebee is not my favour, so I stick nvidia with xorg. Arch Wiki has many reference for it. But let’s share what I did.

Install below packages inaddition to xorg and your favour window manager.

linux-headers nvidia-dkms xorg-xrandr nvidia-settings nvidia-utils xf86-video-intel lib32-nvidia-utils lib32-opencl-nvidia opencl-headers opencl-nvidia 

And I use light for handling backlight

yaourt -S light

Since I picked dkms, so the pacman hook is added as listed in the wiki.

Create /etc/X11/xorg.conf with below content. And you can see the intel is also added to it (just device) cause this guy handle backlight.

Section "Module"
  Load "modesetting"

Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "PCI:1:0:0"
  Option "AllowEmptyInitialConfiguration"

Section "Device"
    Identifier "Intel Graphics"
    Driver     "intel"
    BusID      "PCI:00:02:0"
    Option     "Backlight" "intel_backlight"

Add below kernel parameter to grub /etc/default/grub


Add modules to /etc/mkinitcpio.conf

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Rebuilt initramfs and update grub config

sudo mkinitcpio  -p linux
sudo grub-mkconfig  -o /boot/grub/grub.cfg

Inside xinitrc, add below

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 120

disable one of the unused systemd backlight service

  sudo systemctl mask systemd-backlight@backlight\:acpi_video0.service


Hopefully, I didn’t miss anything, and you can successfully reboot and enjoy using nvidia for X. Sound is 98% work out of the box after pulseaudio and alsa installed. The 2% left were very annoying to me, will talk about it in next post.


Arch Linux Nvidia Wiki.

Arch Linux Optimus Wiki