Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

[BUG] Keyboard backlit switching off when loading the driver #53

Open
EyeOfCat opened this issue Nov 13, 2020 · 1 comment
Open

[BUG] Keyboard backlit switching off when loading the driver #53

EyeOfCat opened this issue Nov 13, 2020 · 1 comment

Comments

@EyeOfCat
Copy link

Describe the bug
When driver loads keyboard backlit switched off.

To Reproduce
Load the driver.

Expected behavior
Honestly don't know, may be adjusting kdb brightness level, not switching it off.

Optional but useful, packet capture from synapse

I'm no kernel driver developer, so if you can tell me, what should I do, to provide any helpfull information, I'll try my best.
For now, to use driver with kbd backlit turned on I made this silly change to it:

diff --git a/driver/src/razer_common.c b/driver/src/razer_common.c
index d4561b5..b962cc2 100644
--- a/driver/src/razer_common.c
+++ b/driver/src/razer_common.c
@@ -163,7 +163,7 @@ static DEVICE_ATTR_WO(key_colour_map);
 static DEVICE_ATTR_RO(product);
 
 static int backlight_sysfs_set(struct led_classdev *led_cdev, enum led_brightness brightness) {
-    return sendBrightness(laptop.usb_dev, (__u8) brightness);
+    return 0;//sendBrightness(laptop.usb_dev, (__u8) brightness);
 }
 
 static enum led_brightness backlight_sysfs_get(struct led_classdev *ledclass) {
@EyeOfCat EyeOfCat changed the title [BUG] [BUG] Keyboard backlit switching off when loading the driver Nov 13, 2020
@gorghino
Copy link

Up. I find it annoying that I have to manually turns the kdb brightness level up everytime I boot my OS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants