lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 23 Dec 2012 18:21:18 +0100 From: Roland Stigge <stigge@...com.de> To: gregkh@...uxfoundation.org, corentin.chary@...il.com, mjg@...hat.com, platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org Cc: Roland Stigge <stigge@...com.de> Subject: [PATCH] samsung-laptop: Set keyboard backlight initially After boot, /sys/devices/platform/samsung/leds/samsung::kbd_backlight/brightness shows the maximum value (8) by readout, but the led is off. I need to manually set it to the respective value to have keyboard backlight. Fixing via readout-write in samsung_leds_init(). Tested on Samsung NP900X3C. Signed-off-by: Roland Stigge <stigge@...com.de> -- I'm encountering a similar issue after suspend/resume (led is off). Still wondering if and by which technique I should add a respective .resume() because the driver currently doesn't have pm support and also doesn't register as a driver. Any hint appreciated. Thanks in advance! diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c index dd90d15..1d3292c 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -1053,6 +1053,7 @@ static int __init samsung_leds_init(struct samsung_laptop *samsung) ret = led_classdev_register(&samsung->platform_device->dev, &samsung->kbd_led); + kbd_led_set(&samsung->kbd_led, kbd_led_get(&samsung->kbd_led)); } if (ret) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists