Resources:
There are a couple of known issues:
Add to /etc/default/grub
Add space after quiet and add button.lid command below.
The line should look like this when finished:
GRUB_CMDLINE_LINUX="rhgb quiet button.lid_init_state=open i915.edp_vswing=2"
$ xinput list
Capture name of input. Looks like this: ("AT Raw Set 2 keyboard")
To make sure this works before making permanent type the below command:
xinput set-prop "AT Raw Set 2 keyboard" "Device Enabled" 0
Test Caps Lock. If this no longer produces an error, make the changes permanent.
Make a directory and file
cd /etc/X11/
sudo mkdir xorg.conf.d
cd xorg.conf.d/
sudo touch 20-razer.conf
sudo nano 20-razer.conf
Copy the following to newly created 20-razer.conf
Section "InputClass"
Identifier "Disable built-in keyboard"
MatchIsKeyboard "on"
MatchProduct "AT Raw Set 2 keyboard"
Option "Ignore" "true"
EndSection