Drivers for razer blad 14 2022

What have you tried: i have tried to install driver for my razer blade 14, i intalled openrazer cause this is the easiest way i thought. So the first step to add the repo worked.

What is the error: Error! Your kernel headers for kernel 6.8.11-amd64 cannot be found at /lib/modules/6.8.11-amd64/build or /lib/modules/6.8.11-amd64/source.
Please install the linux-headers-6.8.11-amd64 package or use the --kernelsourcedir option to tell DKMS where it’s located.

What device is this on: Razerblade 14

I allready looked which kernel im using via uname -r and its saying: 6.8.11-amd64
if i try to install the acc version of openrazer it gives me the error above.
i tried this command:
sudo dkms install -m openrazer-driver/3.9.0

maybe somone of u had the same kernel problems and know how to solve this or can me explain how i can use --kernelsourcedir to say DKMS where the kernels are loctated.
I also dont know how to find out the location of my kernel.

Im a big newbie and its the start of my linux history.

You need to add the kernel headers so dkms can create the correct kernel extension drivers;

sudo apt update
sudo apt install linux-headers-$(uname -r)

Then you should be able to run your dkms commands successfully.

1 Like

do you mean:
sudo apt install linux-headers-6.8.11-amd64(uname -r)

cause this brings me this error:
zsh: missing delimiter for ‘u’ glob qualifier

i am a newbie so sorry if its error codes thats easy to fix.
Do u have a guide or something from which u learn some linux or kali stuff.

And thanks for ur fast response

here is the error when im filling in this code “sudo apt install linux-headers-$(uname -r)”

error:
“Error: Unable to locate package linux-headers-6.8.11-amd64
Error: Couldn’t find any package by glob ‘linux-headers-6.8.11-amd64’”

Then your likely missing the dkms package as well so, in order;

sudo apt update
sudo apt -y install dkms
sudo apt install linux-headers-$(uname -r)
sudo dkms install -m openrazer-driver/3.9.0
1 Like

still dont work.

i have allready installed dkms.
i typed in the command u said

sudo apt -y install dkms

the response is that my dkms is on the newest version and packages installed in dkms.

so this stilll dont work and gives me the same error above

sudo apt install linux-headers-§(uname -r)

the error:

Error: Unable to locate package linux-headers-6.8.11-amd64
Error: Couldn’t find any package by glob ‘linux-headers-6.8.11-amd64’

so the dkms command will still not work and still give me that error:

Error! Your kernel headers for kernel 6.8.11-amd64 cannot be found at /lib/modules/6.8.11-amd64/build or /lib/modules/6.8.11-amd64/source.
Please install the linux-headers-6.8.11-amd64 package or use the --kernelsourcedir option to tell DKMS where it’s located.

maybe u know how i can add the location via the --kernelsourcedir command ?

Try changing to the cloudfare repo for updating and try commands again.

Go to ‘settings → Kali Tweaks’ once launched, scroll down to network repositories, and change to cloudflare CDN

  • use arrow keys to move between options, hit space bar to choose a highlighted option, then tab key to highlight ‘Apply’ and hit enter, then try the above commands again.

Worked, thank you very much. Do u know where I can learn a little bit about the baiscs?

https://linuxjourney.com/