Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Razer Blade Stealth Linux & Ubuntu 21.04

Razer Blade Stealth (Early 2016, Intel 6500U, UHD / HiDPI) Ubuntu Linux 20.10, running Wayland & Gnome.

Issues

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"

Tweaks

Install Gnome Tweak Tool:

sudo apt install gnome-tweak-tool

"Capitaine" Cursors

mv capitaine-cursors-light ~/.icons/
  • Select via gnome-tweaks-tool: Appearance, Themes, Cursor
  • change cursor size
gsettings set org.gnome.desktop.interface cursor-size 32

Grub Theme

Razer Grub Theme for RBS 4k.

sudo mkdir /boot/grub/themes
sudo cp -r themes/grub /boot/grub/themes/razer

Add Theme:

sudo nano /etc/default/grub
GRUB_GFXMODE="3840x2160-32"
GRUB_THEME="/boot/grub/themes/razer/theme.txt"

Update Grub

sudo update-grub

Razer Core

Thunderbolt

  • Connect Razer Core
  • Authorization: Settings -> Devices -> Thunderbolt
  • Razer Core: Authorized

Note: This 2m cable works without problems. I measured no (performance) differences compared with the included very short cable (tested on Windows & Linux).

Nvidia Driver

Install nvidia-driver-390 driver:

sudo apt install nvidia-driver-390

Bumblebee

Install Bumblebee / Primus:

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic socat mesa-utils

Change bumblebee.conf

sudo nano /etc/bumblebee/bumblebee.conf
LibraryPath=/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
XorgModulePath=/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules/input

Change /etc/environment

sudo nano /etc/environment
__GLVND_DISALLOW_PATCHING=1

Create Nvidia Blacklist:

sudo nano /etc/modprobe.d/blacklist-nvidia.conf
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset

Patch primusrun

sudo mv /usr/bin/primusrun /usr/bin/primusrun.bak
sudo cp usr/bin/primusrun /usr/bin/

Test:

primusrun glxinfo | grep OpenGL

Vulkan drivers

Install vkrun from the package primus_vk is as drop-in replacement for primusrun that enables to run Vulkan-based applications.

sudo apt-get install vulkan-tools primus-vk primus-vk-nvidia

Test:

pvkrun vulkaninfo --summary

Steam

Install Corefonts for Steam Play:

sudo apt install ttf-mscorefonts-installer

Enable Proton for Windows Games:

  • Settings
  • Steam Play
  • Advanced
  • Enable Steam Play for all other titles

Run steam games on your external GPU over Bumblebee/primusrun:

  • Start steam
  • Select your game
  • Select "Properties"
  • "Set Launch Options"
  • Insert "primusrun %command%" or "pvkrun %command%"