Dismiss Notice
Some Razer services have been impacted due to the unique circumstances COVID-19 has created. We apologize for any inconvenience and appreciate your understanding during this critical time.

New distro new life for my Razer Blade 14 2017!

Discussion in 'The Linux Corner' started by GreatAttractor, Dec 5, 2017.

Thread Status:
Not open for further replies.
  1. GreatAttractor

    GreatAttractor New Member

    Hi everyone,

    I had a lot of trouble making NVIDIA works on my Razer Blade, but now Bumble bee is finally working.

    I am using Antergos Linux, a distro based on Arch: it is a rolling distributions so you will always have the latest packages, it also it provides Deepin as a desktop which seem to work very well.

    Probably with Ubuntu 17.10 or Debian Buster you can achieve the same results: faster pc, stable, steam working, games working, sleep/standby working: pretty amazing stuff.

    The kernel is Linux blade 4.14.3-1-ARCH, GCC is the latest 7.2, again: the system run very smoothly and flawlessly.

    But some workarounds, as always, were necessary, so lets recap here the changes I made after installing from usb key:

    1) To make bumblebee working we need to install packages and disable the nouveau driver:

    pacman -S bumblebee mesa xf86-video-intel nvidia lib32-nvidia-utils lib32-virtualgl nvidia-
    settings bbswitch
    echo 'blacklist nouveau' > /etc/modprobe.d/nouveau.conf
    mkinitcpio -g /boot/initramfs-linux.img

    reboot is required to disable nouveau.

    2) I had some trouble with power management until I add these parameters:

    quiet button.lid_init_state=open pcie_aspm=off

    to the variable GRUB_CMDLINE_LINUX_DEFAULT, in the file /etc/default/grub

    then update grub with this comand:

    grub-mkconfig -o /boot/grub/grub.cfg


    reboot is required to load the new parameters.

    3) To make steam use NVIDIA you need to add these parameters (game -> properties -> set launch options...):

    LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 optirun %command%

    most games will work without modifications, I personally tried:

    Deus Ex: Mankind Divided
    Dota 2
    Dreamfall Chapters
    The Pillars of Earth
    Life is Strange

    I Keep everything at maximum and they run smoothly, you found a time saving tips on the arch wiki.

    Also: in the bios CMS is disabled.

    Just to keep track of the changes made so far:

    I had problems with the game Life is strange, the screen was tearing badly.

    To fix this, you just need to create the file:

    /etc/X11/xorg.conf.d/20-intel.conf

    with the following content:

    Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "Tearfree" "true"
    EndSection


    I also had problems with Mad Max and Tomb Raider: the bug was that these games did not want to go Full Screen.

    To fix that, you just need to edit the file:

    /etc/bumblebee/xorg.conf.nvidia.orig

    and add the following lines:

    Section "Screen"
    Identifier "Screen0"
    Device "DiscreteNvidia"
    DefaultDepth 24
    Option "UseDisplayDevice" "none"
    SubSection "Display"
    Virtual 1920 1080
    Depth 24
    EndSubSection
    EndSection


    In particurar put in the parameter Virtual the resolution of your screen, and obviously Device must match the Identifier in the Device Section.

    Hope this helps others too.

    So far I was able to play all the games in my Steam Library:

    Brutal Legends
    Bioshock Infinite
    Bound By Flame
    Brutal Legend
    Dreamfall Chapters
    Dying Light
    The Pillars of Earth
    Life is Strange
    Mad Max
    Shadow of Mordor
    Portal 2
    Tomb Raider
    Torchlight II
    The Witcher 2
     
    Last edited by a moderator: Jan 3, 2018
    Asten__ likes this.
  2. Asten__

    Asten__ Active Member

    Hi!

    Wow - great work, thank you for sharing!!
     
  3. Lemoussu

    Lemoussu New Member

    Hi !
    Thanks for all those informations !
    Your kernel parameter "pcie_aspm=off" is something I will have to try because I have some issue of screen flickering on an RBS 13.3" i7 Quad, and it seems to be worse when resuming from suspend...
    Does this parameter impact your battery life ?
     
  4. GreatAttractor

    GreatAttractor New Member

    I believe that the error message means that the 'pcie_aspm' does not work, so there is no impact on battery life.

    But obviously for better battery life pcie_aspm should work, l will test it again when kernel 4.15 will be available.

    I dont reboot my system often, usually I close the lid and reopen it the day after at work.
     
  5. GreatAttractor

    GreatAttractor New Member

    Actually with Antergos I could not enable NVIDIA PRIME on the primary display. (I did it with Kubuntu)

    And... this is a big problem because without NVIDIA PRIME the NVIDIA processor run at MAX speed, the laptop overheat and consequently everything slow down, the battery life is very short, etc.

    In gaming it is not a problem, but on all other situations is not acceptable.

    I tried everything, literally spent 2 days. Problem is : I have an external monitor now and I cant drive it with only the Intel driver so I had to disable the internal display via nvidia-settings or gnome display applet.
    Very annoying...
     
Thread Status:
Not open for further replies.
Sign In with Razer ID >


Don't have a Razer ID yet?
Get Razer ID >