View on GitHub

razer-blade-stealth-linux

Install and run Linux on a Razer Blade Stealth (late 2016) and Razer Core.

Razer Blade Stealth Linux & Ubuntu 18.04

Razer Blade Stealth (late 2016, Intel 7500U, UHD / HiDPI) Ubuntu Linux 18.04.

1. Issues

1.1. Installation

Running the live session and starting the installation ends with segfaults.

sudo apt install intel-microcode

1.2. Suspend Loop

After resume, the system loops back in suspend. The system send an ACPI event where the kernel defaults are different.

Change kernel defaults:

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="button.lid_init_state=open"

Update grub

sudo update-grub

1.3. Caps-Lock Crash

The RBS crashes randomly mostly if you hit “Caps Lock”, causes by the build-in driver.

Modify /etc/default/keyboard, replacing capslocks by a second ctrl:

sudo nano /etc/default/keyboard
XKBOPTIONS="ctrl:nocaps"

Solution 2:

Only needed if you run X11 instead of Wayland and enabled Capslock.

Get your keyboard description and use it instead of “AT Raw Set 2 keyboard”:

xinput list | grep "Set 2 keyboard"

Config

Section "InputClass"
    Identifier      "Disable built-in keyboard"
    MatchProduct    "AT Raw Set 2 keyboard"
#   MatchProduct    "AT Translated Set 2 keyboard"
    Option          "Ignore"    "true"
EndSection

Re’disable keyboard after suspend:

#!/bin/sh
# http://askubuntu.com/questions/873626/crash-when-toggling-off-caps-lock

case $1 in
    resume|thaw)
        xinput set-prop "AT Raw Set 2 keyboard" "Device Enabled" 0
#       xinput set-prop "AT Translated Set 2 keyboard" "Device Enabled" 0
    ;;
esac

1.4. Touchpad Temporary Freezes

With libinput, the pointer “jumps” while moving. The synaptics driver hasn’t this issue. Other users with RBS late 2017 reports dead zones, I’m not sure if they have tested the synaptics driver. Maybe 4.17-1 kernel solves this problem Issue 19.

Note: A new kernel workd better with libinput.

For me, synaptics works:

sudo apt install xserver-xorg-input-synaptics
sudo cp etc/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf.d/50-synaptics.conf

Reboot

Check if synaptics driver is running:

xinput list-props 'Synaptics TM2438-005'

At boot and after suspend, the settings “TapButton3=0 ClickFinger3=0” are gone. Workaround:

sudo cp etc/pm/sleep.d/30_synaptics /etc/pm/sleep.d/30_synaptics
cp config/autostart/synaptics.desktop ~/.config/autostart/synaptics.desktop

1.5. Touchpad Suspend

Touchpad fails resuming from suspend with:

rmi4_physical rmi4-00: rmi_driver_reset_handler: Failed to read current IRQ mask.
dpm_run_callback(): i2c_hid_resume+0x0/0x120 [i2c_hid] returns -11
PM: Device i2c-15320205:00 failed to resume async: error -11

Temporary fix:

sudo rmmod i2c_hid && sudo modprobe i2c_hid

Solution:

Libinput-gestures solves the problem:

sudo gpasswd -a $USER input
sudo apt install xdotool wmctrl libinput-tools
git clone http://github.com/bulletmark/libinput-gestures
cd libinput-gestures
sudo ./libinput-gestures-setup install
libinput-gestures-setup autostart

My config. (If you prefer natural scrolling, change up/down)

Logout - Login

1.6. Touchscreen & Firefox

Firefox doesn’t seem to care about the touchscreen at all.

Tell Firefox to use XINPUT2:

sudo nano /etc/environment
MOZ_USE_XINPUT2=1

Logout - Login.

2. Tweaks

2.1. Power Management

TLP is an advanced power management tool for Linux that tries to apply tweaks for you automatically, depending on your Linux distribution and hardware.

sudo apt-get install tlp tlp-rdw
sudo systemctl enable tlp

2.2. Touchpad tap & click

macOS touchpad feeling.

sudo apt install gnome-tweak-tool

2.3. “Capitaine” Cursors

2.4. Dual Boot Antergos

“update-grub” add only /boot/intel-ucode.img to initrd. (Maybe) a hack, but works well on my system.

patch /etc/grub.d/30_os-prober etc/grub.d/os-prober.patch

2.5. Grub Razer Theme

sudo cp -r themes/grub /boot/grub/themes/razer
sudo cp etc/default/grub /etc/default/grub
sudo update-grub

2.7. Gnome Theme

My current favorite :)

apt install numix-gtk-theme numix-icon-theme gnome-icon-theme

2.8. Steam Interface

Change Steam interface enlargement based on monitor size:

3. Unsolved Issues

3.1. Keyboard Colors & Openrazer

Currently Openrazer not used.

Issue: Settings are lost after suspend (Gnome, Wayland).

3.2. Webcam

Working only with 176x in cheese, or 640x480 in guvcview with 15/1 frames.

This fix not really helped:

/etc/modprobe.d/uvcvideo.conf

## fix issue with built-in webcam
options uvcvideo quirks=512

3.3. Razer Core

Thunderbolt works, but nvidia with optirun won’t work.