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 & Arch (Antergos)

Razer Blade Stealth (late 2016, Intel 7500U, UHD / HiDPI) Arch (Antergos). Tested with Antergos (Wayland & Gnome) Arch, but other Arch based distros should work too.

1. Issues

Works without Problems:

1.1. Suspend Loop

Add kernel parameter:

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

Update Grub:

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

1.2. Touchpad

Works, without suspend issues.

1.2.1. Libinput-gestures

Install Libinput-gestures, my config. (If you prefer natural scrolling, change up/down)

1.2.2. Synaptics (X11)

Disable touchpad while typing and some other tunings:

1.2.3. Libinput Coordinates

Adjust “libinput” coordinate ranges for absolute axes: 61-evdev-local.hwdb:

sudo cp etc/udev/hwdb.d/61-evdev-local.hwdb /etc/udev/hwdb.d/61-evdev-local.hwdb

Update settings:

sudo systemd-hwdb update
sudo udevadm trigger /dev/input/event*

1.3. Onscreen Keyboard

Everytime the touchscreen is used, an onscreen keyboard opens. Disable caribou (the on screen keyboard) in “Startup Applications”.

Display “hidden apps”:

sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop

Open “Startup Applications”, disable caribou (and maybe Desktop Sharing, Backup Monitor and some others). Remove caribou from “Startup Applications” is not enough :( Blocks caribou (the on screen keyboard) from popping up when you use a touchscreen with a Gnome extension.

Manual installation:

mkdir -p ~/.local/share/gnome-shell/extensions/cariboublocker@git.keringar.xyz
cd ~/.local/share/gnome-shell/extensions/cariboublocker@git.keringar.xyz
wget https://github.com/keringar/cariboublocker/raw/master/extension.js
wget https://github.com/keringar/cariboublocker/raw/master/metadata.json
cd
gsettings get org.gnome.shell enabled-extensions

Add Gnome extension (add the new extension to your existing extensions):

gsettings set org.gnome.shell enabled-extensions "['cariboublocker@git.keringar.xyz']"

Logout - Login.

1.4. 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. Top Icon Plus

Install Top Icon Plus.

2.2. Gdm

Replace lightdm with gdm:

systemctl disable lightdm.service
pacman -Rs lightdm-webkit2-greeter light-locker-settings light-locker lightdm
pacman -S gdm
pacman -S gtk-engines
systemctl enable gdm.service
pacman -Rs xscreensaver
pacman -S gnome-screensaver

2.3. Theme

gnome-tweak-tool / Appearance

gnome-tweak-tool / Fonts

gnome-tweak-tool / Keyboard & Mouse / Touchpad

2.4. Power Management

Install TLP tools:

sudo pacman -S tlp tlp-rdw

Enable TLP tools:

sudo systemctl enable tlp
sudo systemctl enable tlp-sleep

Bumblebee with NVIDIA driver

sudo nano /etc/default/tlp
# Bumblebee with NVIDIA driver
# https://wiki.archlinux.org/index.php/TLP#Bumblebee_with_NVIDIA_driver
RUNTIME_PM_BLACKLIST="07:00.0 07:00.1"

3. Razer Core

3.1. Installation

Install NVIDIA & bumblebee:

sudo pacman -S bumblebee primus nvidia nvidia-utils virtualgl

Install 32bit driver for steam:

sudo pacman -S lib32-virtualgl lib32-nvidia-utils

3.2. Setup

Add user to bumblebee group:

sudo gpasswd -a $USER bumblebee

Set driver to nvidia:

$ sudo nano /etc/bumblebee/bumblebee.conf
Driver=nvidia

TODO / WIP:

3.3. Bash Alias razerrun

Bash Alias:

$ nano .bashrc
alias razerrun='PRIMUS_SYNC=1 vblank_mode=0 primusrun'

Test:

razerrun glxinfo | grep OpenGL

3.4. Thunderbolt

Install “bolt” for thunderbolt management:

sudo pacman -S bolt
# Authorize and store a device in the database
boltctl enroll

4. Unsolved Issues

4.1. Keyboard Colors & Openrazer

Currently Openrazer not used.

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

4.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

4.3. Wifi

Connection lost, maybe firmware