Skip to content

38 comments

That looks really cool. Congratulations on writing that driver, stuff like this still seems almost unachievable to me; I have no idea on how to really start talking to the hardware...

55 points

Many thanks. This has taken me about 3 months of on-off work to get to this point. Driver itself was made out of pure frustration with Linux performance being tanked compared to windows, just because synapse under Windows could raise the CPU tdp from 35w to 55w, and raise the fan RPM to prevent overheating.

Now though, with my driver I can happily play half life alyx without any issue or stuttering, and laptop is loud, but cool

11 points

You should really submit this to the kernel!

39 points

Why? All of the mentioned features work out of the box already. OpenRazer adds the keyboard stuff.

Also anyone with a keen eye can see the issues with this driver. It’s great that OP is getting some experience learning drivers, but in no way would I run this on my personal machine without some serious changes.

2 points

This is a totally different framework to openrazer, yeah the RGB mechanics working in open razer, but open razer does not to the laptop-only features, such as fan RPM adjustment and power modes (gaming or creator mode)

11 points

Because not everyone uses arch and even among arch users something that works out of the box is better than something that you have to build

3 points

I use openrazer with Polychromatic at the moment, I am interested in trying your driver though. How do you control things with yours?

15 points

Currently, they aren't compatible with one another. Openrazer claims the laptop's keyboard for itself, then stops other kernel modules using it....if they fix that I don't see why one can't run both kernel modules together :D.

my driver exposes attributes in sysfs, however keyboard backlight control is done differently now such that KDE and gnome see the backlight interface as standard so they can control it from within the DE, or by most other userspace programs.

9 points

Hi, i was wondering if you could guide me to some resources for getting started with this kind of stuff. Thanks in andvance!

4 points

Litterally just read documentation, and have a good end goal. Avoid starting something with a million features, or else you'll get consumed by it. Baby steps makes the whole process easier.

Most of this was done by sniffing packets synapse was sending to the laptop's keyboard over USB, then reimplementing those packets after understanding what they did

5 points

can you do this for asus laptops? because asus is always blocking control so i've you could do it i will be very thankfull

2 points

I can't magically make these unfortunately, only reason why I could for razer is because I have a razer notebook...

1 points

Ok, so after a full source code review, OP has super clean code! I don’t think it’s kernel worthy, yet.

Great Job!

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.