Skip to content

Latest commit

 

History

History
300 lines (207 loc) · 7.2 KB

ubuntu-18-10.md

File metadata and controls

300 lines (207 loc) · 7.2 KB

Razer Blade Stealth Linux & Ubuntu 18.10

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

1. Issues

1.1. 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.2. 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"

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

1.4. Gestures with Libinput

Setup Libinput-gestures:

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.5. Dual Boot Antergos

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

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

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. "Capitaine" Cursors

sudo add-apt-repository ppa:dyatlov-igor/la-capitaine
sudo apt update
sudo apt install la-capitaine-cursor-theme
  • Select via tweaks tool, Appearance, Themes, Cursor

2.3. 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_GFXPAYLOAD_LINUX="3840x2160-32"
GRUB_THEME="/boot/grub/themes/razer/theme.txt"

Update Grub

sudo update-grub

2.4. Gnome Theme

sudo apt install gnome-shell-extensions
cp -r themes/RBS ~/.themes
  • Logout - Login

  • Tweaks

  • Extensions

  • User Themes: Yes

  • Logout - Login

  • Appearance

  • Shell: RBS

  • Interface: Garuda Regular 11

  • Document: Gurada Regular 11

  • Monospace: Ubuntu Mono Regular 11

2.5. Steam Interface

Change Steam interface enlargement based on monitor size:

  • Settings
  • Interface
  • Enlarge text and icons based on monitor size

2.6. Touchpad

  • Tweaks
  • Touchpad
  • Disable while typing: Off

2.7. Disable Center New Window

  • Tweaks
  • Windows
  • Center New Window: Off

3. Razer Core

Running a thunderbolt 3 device like the Razer Core and an external GPU with Linux sounds like fun :)

3.1. Thunderbolt

  • Authorization: Settings -> Devices -> Thunderbolt
  • This 2m cable works without problems. I measured no (performance) differences compared with the included very short cable (tested on Windows & Linux).
  • Razer Core: Authorized

3.2. Nvidia Driver

Install nvidia-driver-390, over Software-Settings or manually:

sudo apt install nvidia-driver-390

3.3. Bumblebee

Install Bumblebee / Primus:

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic

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/

Run game on external GPU:

primusrun 0ad

3.4. Steam

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

  • Start steam
  • Select your game
  • Select "Properties"
  • "Set Launch Options"
  • Insert "primusrun %command%"
  • Install Corefonts for Steam Play:
sudo apt install ttf-mscorefonts-installer

3.5. WIP

  • External screen

4. Unsolved Issues

4.1. Keyboard Colors & Openrazer

Openrazer lost settings after suspend.

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
options uvcvideo quirks=512

Web Browser:

"works almost perfectly (at least it's not all green or black and have decent fps) using Slack or Hangout"

4.3. Wifi

Connection lost, maybe firmware