Git Product home page Git Product logo

razer-blade-stealth-linux's Introduction

Razer Blade Stealth Linux

Razer Blade Stealth (late 2016, Intel 7500U, UHD / HiDPI) Linux Ubuntu & Arch setup, including Razer Core with discrete NVIDIA GPU setup connected via thunderbolt.

This page is available as Github Page

Contact me at twitter @rolandguelle for questions or open an issue.

My current setup is Ubuntu 21.04 (Ubuntu, Gnome, Wayland).

Preparation

Disk Resize

Resize disk via Windows 10

Guides

Ubuntu 21.04

Ubuntu 21.04

Ubuntu 20.10

Ubuntu 20.10

Ubuntu 19.10

Ubuntu 19.10

Ubuntu 19.04

Ubuntu 19.04

Ubuntu 18.10

Ubuntu 18.10

Ubuntu 18.04

Ubuntu 18.04

Ubuntu 17.10

Ubuntu 17.10

Arch (Antergos)

Arch (Antergos)

Elementary OS

Elementary OS

Other Hardware Models

Other Hardware Models

Credits

razer-blade-stealth-linux's People

Contributors

lattice0 avatar rolandguelle avatar tomsquest avatar zvnexus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

razer-blade-stealth-linux's Issues

Ubuntu 18.04 has problems resuming from suspend

In the past week my 2016 RBS running Ubuntu 18.04 has started having issues with resuming from suspend, it seems like it will resume once after i shut the lid, but if i shut the lid a second time the system seems to freeze, either with a black screen or a frozen unlock screen.

Multimedia Function Keys

Thanks for the hints on archlinux installation. I proceeded with the installation but the sound/brightness keys do not work (on tty, I do not have a WM/DE). Did you have the same issue ?

4k over HDMI

First of all: Awesome repo!

Second: Have you been able to run a 4k screen over the HDMI port?

Touchpad suspend solution not "bulletproof".

While, in general, using libinput-gestures does seem to address the touchpad being non-functional on resume, it doesn't functional at all if you hibernate rather than just suspend the system.

I experimented quite a bit with this and found this solution (for Arch) worked GREAT for me:

https://github.com/parkouss/systemd-suspend-modules

All you have to do is copy the bash script in the referenced repo to /usr/lib/systemd/system-sleep and create an /etc/suspend-modules.conf file with "i2c_hid" in it and you're good to go.

Hope this helps anyone else who's trying to hibernate (not just suspend) this laptop!

Recent battery issues with 18.04

Just updated my blade stealth (2017) to 18.04 and have been only been getting 3 hours of battery. I think it might have something to do with the fans as they seem to be louder than before. I'm not sure if this is actually what's causing the battery issues though.

I've been monitoring cpu and ram usage which seems to be averaging around 28% CPU and 4.5GB/16GB ram. Seems pretty normal to me.

Is anyone else running into this issue?

Ubuntu 18.04 (4.18.0-3-generic)

RBS late-2019 GTX booting Ubuntu 19 from Live USB

Razer Blade Stealth Late 2019 GTX 1650 model
Out of the box - managed to boot Mint 19.1 (Xenial) from USB.
Did not install.
After some windows use, Windows & Nvidia updates -
Will not boot from USB.

Tried Ubuntu 19.10/19.4, Mint 18.4/19.1/19.2.
Tried nomodeset, nouveau.modeset=0 (or 1),
Fast Boot on and off
Secure Boot on and off - This actually changes consule resolution, with Mint showing blank screen without it.

Errors presented:
sda access beyond end of device
and
unknown input (this one is non-halting though)

Edit: Also seeing -
thermal thermal_zone1: critical temprature reached (198 C), shutting down
I get that on ubuntu, always 198c.
Tried boot parameters like thermal.act=-1 , thermal.off=1, thermal.noact=1 - no effect.

Can someone confirm?

RBS 2017 Webcam

Hello there, thanks for all the good work and detailed guide !

I have a RBS 2017 and everything is working but the webcam, all we all know.

But i noticed it works almost perfectly (at least it's not all green or black and have decent fps) using Slack or Hangout !
it's the only two website i figured it is working (even betetr than using a software).

I know nothing about codecs and webcam in general, but why is this so ?
Would it be possible to use the same stream as they use on slack/hangout and create a "virtual webcam" from this good stream, to be able to use it on any other software / websites?

Sorry about this issue, it's not really an issue about the repo but more a question and some "ask for help" arround webcam workarround

Hide mouse cursor when using touch screen?

Hi,

I was wondering if you by any chance have found a way to hide the cursor when interacting with the touch screen? I find it annoying that the mouse follows my fingers...

Caps-lock Carsh

I have RBS and Caps Lock crash is not resolving.
Full disclosure: I am newbie in Linux.

Running UBuntu 18.04.1
when I type
xinput list | grep "Set 2 keyboard"

it shows nothing as output.

even when I type

xinput list

this is my output

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Razer Razer Blade Stealth               	id=12	[slave  pointer  (2)]
⎜   ↳ Razer Razer Blade Stealth               	id=13	[slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                        	id=14	[slave  pointer  (2)]
⎜   ↳ Synaptics TM2438-005                    	id=15	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=9	[slave  keyboard (3)]
    ↳ USB Camera: USB Camera                  	id=10	[slave  keyboard (3)]
    ↳ Razer Razer Blade Stealth               	id=11	[slave  keyboard (3)]
    ↳ Razer Razer Blade Stealth               	id=16	[slave  keyboard (3)]

PLease help.
Thanks in advance.

bumblebee kills external monitor

Super awesome repo! Thanks.

But I did a bunch of these and then did a reboot and lost my external monitor (black screen). It wouldn't even show up in Display. I tried all day to update drivers and chased several versions of nvidia, no version (purge nvidia), and lots of others. Eventually I used Timeshift to push back to a state before I did anything from this repo and chased the issue down to bumblebee. This command is what kills the external monitor (hdmi):

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

after a reboot. Probably an issue with bumblebee, but thought I would post here for others. I will update if I ever find the time to chase this.

Linux Mint 19
Razer Blade late 2016
GTX 1060
1080p

Disappearing bluetooth issue

Hi,

First of all thanks for everything, your instructions were really helpful in setting up my RBS!

It's been months since I've been using Ubuntu on my RBS (i7 8550U) and everything works fine except for one thing: Bluetooth. Actually it works fine but I noticed that bluetooth is disappearing randomly when I'm watching videos in full screen (weird, right?). And it only comes back when turning the computer off and on again (not restart).

I've tried messing with bios settings, tlp settings, I've tried removing my script disabling bluetooth when it goes into suspend mode, but no luck. Almost every time I watch episodes on VLC or Netflix or YouTube bluetooth goes away after a while.

I am currently on Ubuntu 18.10, kernel 4.18.12 but it's been the same with Ubuntu 17.10 and 18.04, and other kernel versions.

I am out of ideas, has anyone experienced the same issue?

Thanks a lot!

All Linux Distros have teleporting cursor?

Haven't been able to resolve this issue on my 1st Gen Stealth. Happens in every Distro, never used to happen in 16.04 when I ran it but now it happens in every version and distro above it.

Black Screen on external monitor connected to the Core

Not sure if this is the appropriate place to post this, but I followed the instructions and razercore status confirms that it is connected, however the monitor connected to my gtx1060 in the core shows that it has a signal since the display stays on except that it is black. I am unsure if I missed a step to enable the display or if it may just be a bug, any help would be greatly appreciated!

Not sure if it helps but I am running a Intel 6500u (Skylake) Razer Blade stealth with a V1 Razer Core and an EVGA GTX1060 6GB on Ubuntu 17.10

Crash when unplugging keyboards from 2017 Razer Blade Stealth

I know this isn't read by the actual Razer team, but it does seem like the best place to collect Linux annoyances with these laptops. (And thanks for all the effort, after reinstalling and running through the config here for the first time ever my laptop mostly works properly!)

I'm getting the same behaviour when unplugging a keyboard as I see when toggling caps lock, namely static on the audio output and display, and a hard crash. I assume this is something to do with the system caps lock state attempt to resolve itself to the currently connected input devices, but I have no idea if its possible to disable that behaviour.

Suspend wake issue

Hello, I've been having problems with a Razer Blade Stealth 2017 (I7-8550U) immediately waking up from suspend: led indicator goes white for half a second, then turns green and the laptop immediately wakes up again.

I'm running Manjaro with gnome, but the issue is also reproducible on an archlinux iso and an ubuntu live.

I tried the following:

  • adding button.lid_init_state=open to kernel cmdline options
  • echo XHC | sudo tee /proc/acpi/wakeup
  • Set IgnoreLid=true in /etc/UPower/UPower.conf
  • Set HandleLidSwitch=ignore in /etc/systemd/logind.conf (and other lid-related options)
  • Disabled "Suspend when laptop lid is closedingnome-tweaks`

I noticed that the acpi lid state is stuck on "closed" (it's set on "open" on boot, but gets stuck on closed after the first suspend)

$ cat /proc/acpi/button/lid/LID0/state
state: closed

What I see by monitoring acpi events with acpid and acpi_listen, is that after each suspend event I get the following entries in the logs (even if I don't open/close the lid):

button/lid LID close
button/lid LID open

I'm not sure this is helpful and/or wrong behaviour

The issue is particularly weird because the issue disappears when connected to a USB-C hub (power passthrough/hdmi/USB) connected to an external monitor and keyboard/mouse, the laptop suspends and does not wake up, not even when unplugged.

Razer Synapse tool - CPU Frequency / Throttling improved in "Gaming mode"

It seems the Razer software tool Razer Synapse is able to extract additional performance when using "Game Mode".

I recently re-installed Windows 10 alongside Linux on my late-2019 Stealth (GTX1650).
While experimenting with ThrottleStop, using its internal benchmarking/burn tool,
I noticed that CPU Thermal Protection (TP) kicks in rather quickly at 60 degrees, and frequency is reduced to 1.5Ghz.

However, after installing Synapse and setting it to Game Mode, CPU TP kickes in later, and frequency is higher at 1.65-1.7GHz.

This performance control seems to be effective, and I'm wondering if we're missing out in Linux (assuming it's custom firmware instructions like fan control, which Synapse is able to adjust manually as well).

Suspend wakeup graphics issue

When I wake my system from the suspend state, it will occasionally flicker the screen and then either go black or display the lock screen. It won't let me move my mouse or anything so I just need to restart by holding the power button for a few seconds. I would guess that it's something related to the graphics driver. Has anyone run into a similar issue?

KDE Neon 5.12 (Ubuntu 16.04) installed on my 2017 Blade Stealth (7500U)

Unable to change libinput-gesture config

Hi,
I tried to use your config for libinput gestures in both the local config ~/.config/libinput-gestures.conf and /etc/libinput-gestures.conf. Every time I change swipe up and down and execute libinput-gestures-setup restart, I still get natural scrolling. I've logged out and back in and it still doesn't change. I've also restarted and that didn't help. I'm unsure what I should do or if I should ask you or report this issue with libinput-gestures. Hope you can help, thanks.

External monitor randomly going blank for a few seconds

Hi,
I'm experiencing some issues with the external monitor that I have hooked up to the HDMI port of my Razer Blade Stealth late '17 (CPU i7-8550 / Graphics Intel® UHD Graphics 620) with Ubuntu 18.04. Basically every once in a while the external screen goes blank for a few seconds. It looks pretty random in terms of frequency and delay, but another hypothesis that I have is that is connected with some particular draw commands that are being issued by the graphics card (because the problem normally always happen after an action on my side).
I already set the kernel parameter i915.edp_vswing=2 but that didn't fix the problem.

If you have any ideas, please help.

Cheers

Ubuntu 17.10 libinput instead of synaptics

In the guide, there is an "X11" synaptic configuration for the touchpad, but apparently, 17.10 is using "libinput" (synclient wasn't even available).

That makes the step useless unless there are additional instructions on how to replace libinput with synaptic.

2019 model

I did a bunch of research on installing Ubuntu on the RBS 2019 model before I purchased one and reading all the hacks required I was pretty worried.

The good news is for anyone wondering (like I was) - Ubuntu 18.04 LTS installed just fine without any additional work (resizing windows happily from within the installer).

So far I haven't needed any tweaks or patches for hardware from the guides in this repo.

The RGB lighting is supported out of the box by openrazer/polychromatic
Suspend and waking from is working perfectly
Wifi, bluetooth, audio, webcam, touchpad, multimedia keys etc all working perfectly
nvidia-prime switches between the intel and nvidia gpu's perfectly

Just thought I should report this, as there isn't much about the 2019 model available online yet.

Broken download links

All the links in the preparation section are broken except one: Fix for INTEL-SA-00086 Intel Management Engine Critical Firmware Update

Possible problem with samsung SSDs that might be affecting razer's notebooks

I've had corruption problems and downraded to ubuntu 16.04 which worked well until I applied some updates. It looks like there's a bug in samsung SSDs that starts with ubuntu 17.04 tat might be the cause of this, as I figured out and posted here:

https://askubuntu.com/questions/998471/razer-blade-stealth-disk-corruption-fsck-needed-probably-samsung-ssd-bug-afte

(probable fix also linked in my post)

Probably a good thing to list in this repository.

Flickering screen issue with Ubuntu 17.10

(not sure if this is a good place to post this, but assuming this repo gets high visibility from fellow blade owners)

I've recently noticed screen flickering after upgrading switching to 17.10 (fresh install, vanilla, wayland) anybody else experiencing this?

Crash after Signup

Hello, i installed Ubuntu 18.04 on RBS 2016 7500U with UHD-Display.
Most time i started the device, it boots up to the Signup. But most times after the Signups, the System crashs with grizzling sounds and weird artifacts on the screen. Then i can only shut down the device with the power button. Only a few times, the system works. But then it works fine. Help me please.

Document OpenRazer

I found them when looking for an alternative to disabling my caps lock key in order to fix the bug with it.
They offer drivers for various razer peripherals

Touchscreen goes crazy after idle

For some reason I wasn't able to identify, almost everytime ubuntu goes to lock screen, the touchscreen starts to randomly click everywhere. It eventually brings the on-screen keyboard and start typing whatever thing and keeps trying to log in.

At first, I got really scared because it really looks like a macro trying to authenticate and trying random passwords. But eventually, I realized it clicks in places that don't make sense and closes and open the keyboard several times.

I also thought it was just my screen being dirty, but I've been keeping it very clean and it happens multiple times immediately after cleaning and letting it idle. The issue was also being solved by cleaning but I think its just because in the process of cleaning I provide actual input, so it made me realize I can make it stop even without cleaning the screen by just touching somewhere.

I'm on Ubuntu 18.04. I usually run on Wayland because of the partial scaling and wasn't able to identify if it happens also on Xorg. Anyway, it usually happens on the lock screen, so I'm not sure whatever user initiated can influence that.

Trackpad/Keyboard issues after resume

I'm seeing problems with the trackpad and keyboard after resume on occasion, i'll open the lid and the password field on the lock screen immediately fills up, if i hit a key the phantom key presses stop and i can log in. After this happens mouse/trackpad doesnt work, the cursor doesnt show up, swiping on the trackpad doesnt seem to move the cursor, however clicking still works and the cursor can be moved with the touchscreen.

Has anyone else run into this?

Just a thank you!

This repo came many times in results for issues about our dear Razer stealth with linux, thank you for your documented and updated repo!

Ubuntu 19.04 Wifi Issues *Solved*

Hi, I just bought an RBS and installed Ubuntu 19.04. I have been having all sorts of wifi issues, mostly inconsistent interruptions between access points. I was looking in dmesg and got lucky seeing an xhci handoff controller issue. Turning off Legacy USB support and XHCI handoff to Enable ( from auto ) in BIOS with the latest 4.4.1c3 firmware from the atk10k GitHub repo solved my issues.

20.4 Guide

20.4 is LTS. Which guide should I use and would Canonical backport some of these issues?

Caps-Lock Crash Fixed, but Caps-Lock was Disabled(non-active anymore)

Hey, I agree about your support on Razer Blade Stealth Linux & Ubuntu 19.04 at part 1.2 that is Caps-Lock Crash. But, I still need my Caps-Lock working again, because I have push this button when type uppercase, yeah, you know, it's habbit.

Please give me a solution to make it working again without crash. How I do this? I've tired searching on Google, Ubuntu Forums and Stack Overflow, and I still not find the solution. I need the Caps-Lock for uppercase. So, please help me. Thanks for the support before.

How to set up the laptop (Wayland suggestions)

First off I want to share how I installed Ubuntu in my laptop
It is a Razer blade stealth (late 2016) with 2k display an 128 gb ssd.
Processor: Intel® Core™ i7-7500U CPU @ 2.70GHz × 4
Graphics: Mesa Intel® HD Graphics 620 (KBL GT2)

  1. Using the windows installation I updated the BIOS and all the drivers from the Razer website, just to be safe.
  2. I opened the back and I unplugged the battery and the CMOS battery for a couple minutes and assemble it back up
  3. I plugged my Ubuntu 20.04 LTS installation drive. I then turned the laptop on, It takes an extra minute to boot.
  4. Once booted in the live installer I chose offline installation, minimal and third party software and drivers. This last enabled an option to set a password, I didn't understand much of this but I accepted and used the same password I have set for the bios. (I noticed I have enabled secure boot in bios).
  5. OK, the installation went smoothly as it can be. At this point I had to be careful of the three major problems of installing ubuntu in this laptop:
  • First the caps lock button will freeze your machine. So don't press it yet.
  • Second, closing the lid of your laptop will make it work erratically when you take out of suspend. So don't close the lid, its better to keep it plugged during installation.
  • And third, you may see the screen flickers black sometimes, this is more frequent under heavy load. There is nothing to do for this, just ignore it.
  1. ok after you are done installing I would recommend to reboot and then update
    sudo apt update
    sudo apt upgrade
  2. Reboot again, an we are almost done.
  3. To fix the problem with the Caps lock freezing, I prefer to disable the device that causes this. If you type xinput list you'll see a list of devices.
    AT Raw Set 2 keyboard is the device that causes the computer to freeze. So to disable you can run
    xinput set-prop "AT Raw Set 2 keyboard" "Device Enabled" 0
    and test if you can use your caps lock key normally. It should word as a regular caps key.
    This change will last until you reboot. To make it permanent I run this:

cd /etc/X11/
sudo mkdir xorg.conf.d
cd xorg.conf.d/
sudo touch 20-razer.conf
sudo nano 20-razer.conf

Add this to the file:

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

Save it and close the file.

  1. Ok, to fix the problem with suspending the laptop by closing the lid this is what I did:

sudo nano /etc/default/grub

and add this parameter in GRUB_CMDLINE_LINUX_DEFAULT, it should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash button.lid_init_state=open"

Save, close and then run

sudo update-grub

  1. The problem with the screen flickering black should have disappeared. The update and upgrade process fixes this one.
  2. (Optional) Lastly I tested Firefox and the touchscreen doesn't work with it. To fix this I opened this file:
    sudo nano /etc/environment

and I added this in a new line at the end of the file:

MOZ_USE_XINPUT2=1

This makes Firefox work with touch.
Probably you have to reboot at this point to some changes to take effect..

OK, Now to explain the problem I have. I prefer not to have caps lock set as another ctrl key. i prefer the regular caps lock. I can do this as long as ubuntu uses Xorg, but in Wayland i was not able to make this change. Specifically the one explained in step 8. Maybe someone knows how can we achieve this in wayland. I'm no expert on anything so if you have suggestions or you have something I can test I am open for it.
I see Ubuntu testing to change to Wayland and I'll like to be ready for it in case it is used in the next LTS version.

Best regards

David Navas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.