Summary: | zero-based value (mis)handling of maximum brightness (max_brightness) for keyboard backlight | ||
---|---|---|---|
Product: | upower | Reporter: | Gabriel M. Elder <gabriel> |
Component: | general | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | jwrdegoede, vinf100 |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Gabriel M. Elder
2017-03-03 03:04:20 UTC
Hans, if you have hardware to test this... So I just tested this (again) on my XPS 15 and max_brightness there is 2 and there are 3 levels: 0 off 1 medium 2 high Also per: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/ABI/testing/sysfs-class-led """ What: /sys/class/leds/<led>/brightness Date: March 2006 KernelVersion: 2.6.17 Contact: Richard Purdie <rpurdie@rpsys.net> Description: Set the brightness of the LED. Most LEDs don't have hardware brightness support, so will just be turned on for non-zero brightness settings. The value is between 0 and /sys/class/leds/<led>/max_brightness. What: /sys/class/leds/<led>/max_brightness Date: March 2006 KernelVersion: 2.6.17 Contact: Richard Purdie <rpurdie@rpsys.net> Description: Maximum brightness level for this LED, default is 255 (LED_FULL). If the LED does not support different brightness levels, this should be 1. """ Things really are 0 based, so if on your dell max_brightness is 10, but you can only write up to 9 to the brightness attribute, that is a kernel bug and you should file a bug against the kernel for this. Note I'm not saying there is no bug, just that the problem is not in upower and that it needs to be fixed in the right place. Given the above, I'm closing this bug. Please file a bug at bugzilla.kernel.org and send a mail to: [hans@shalem linux]$ scripts/get_maintainer.pl -f drivers/platform/x86/dell-laptop.c "Pali Rohár" <pali.rohar@gmail.com> (maintainer:DELL LAPTOP DRIVER) Darren Hart <dvhart@infradead.org> (maintainer:X86 PLATFORM DRIVERS) Andy Shevchenko <andy@infradead.org> (maintainer:X86 PLATFORM DRIVERS) platform-driver-x86@vger.kernel.org (open list:DELL LAPTOP DRIVER) linux-kernel@vger.kernel.org (open list) Pointing to the bug toy filed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.