Bug 196913
Summary: | keyboard backlight max_brightness value outside allowable range on Dell Latitude E6410 laptop | ||
---|---|---|---|
Product: | Drivers | Reporter: | Gabriel M. Elder (gabriel) |
Component: | Other | Assignee: | drivers_other |
Status: | NEW --- | ||
Severity: | normal | CC: | gabriel, kai.heng.feng, pali, superm1, xer |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.12.9-300 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | decrement one level for kbd_info.levels |
Description
Gabriel M. Elder
2017-09-12 06:04:19 UTC
output from smbios-keyboard-ctl --info: Libsmbios version : 2.3.0 smbios-keyboard-ctl version : 2.3.0 Capabilities of KeyBoard Illumination on your system: ------------------------------------------------------------------- Supported USER Selectable Modes : Always OFF Auto: ALS- and input-activity-based On; input-activity based Off Auto: Input-activity-based On; input-activity based Off Supported Keyboard illumination type : Backlight Supports Keyboard illumination on : Any Keystroke Touchpad activity Pointing stick Can configure Keyboard illumination timeout unit in : Seconds Minutes Hours Supported Keyboard light brightness levels : 10 Maximum acceptable seconds timeout value : 255 Maximum acceptable minutes timeout value : 255 Maximum acceptable hours timeout value : 12 Maximum acceptable days timeout value : 0 output from smbios-keyboard-ctl --get-status: Helper function to print current status of keyboard illumination Current status of KeyBoard Illumination setting on your system: ------------------------------------------------------------------- Configured mode state: Auto: Input-activity-based On; input-activity based Off Your Keyboard will illumination on: Any Keystroke Touchpad activity Pointing stick Keyboard illumination timeout has bee set at: 10 Seconds Current setting of ALS value that turns the light on or off: 18 Current ALS Reading : 16 Current keyboard light level : 9 # smbios-keyboard-ctl --set-level=10; echo $? Old Keyboard illumination level is: 9 Set Trigger Failed. Failed to write config Error Return Code : cbRES1: 0x-2 cbRES2: 0x93512 cbRES3: 0xCFFFF 0 Created attachment 258559 [details]
decrement one level for kbd_info.levels
Please try this patch.
If this patch works, we should ask the original author about this behavior.
Finally had a chance to make this mod, compile and try it out. Based on my testing, it seems to completely correct the problem. Upon initially opening the power panel in gnome-control-center, the keyboard brightness slider is all the way over to the right, where one would expect it to be, as well as all of the brightness step levels. Closing the lid, putting it to sleep and waking it back up does not have the annoying keyboard backlight disabling side-effect that I described above. # cat -v /sys/class/dmi/id/sys_vendor Dell Inc. # cat -v /sys/class/dmi/id/product_name Latitude E6410 # cat -v /sys/class/dmi/id/sys_vendor | hexdump 0000000 6544 6c6c 4920 636e 0a2e 000000a # cat -v /sys/class/dmi/id/product_name | hexdump 0000000 614c 6974 7574 6564 4520 3436 3031 000a 000000f Here are proposed patches: v1: https://patchwork.kernel.org/patch/10007167/ v2: https://patchwork.kernel.org/patch/10015149/ Based on my testing, the v2 patch seems to work fine. If necessary, I am willing to test whatever final proposed patch the community recommends, settles on, and accepts. Would you all like me to test the v3 patch as well? Or are we calling it good at this point, and can expect this to be merged into a final stable kernel release sometime soon? I must admit, I'm looking forward to officially making this bug go bye-bye! Hello, This keyboard backlight issue also affects the Dell Latitude E6400, I can set the brightness to 9 but it is reported to have a maximum of 10 (10 can never be reached ever). This does mess KDE up as it increments in units of 2, so it may only reach level 8 and the backlight meter does not fill completely. Sometimes when resuming from sleep the backlight might not be turned on and I need to adjust the levels before it turns on again. This is the system identification: root@oaktree:/home/stephanie# cat -v /sys/class/dmi/id/sys_vendor Dell Inc. root@oaktree:/home/stephanie# cat -v /sys/class/dmi/id/product_name Latitude E6400 root@oaktree:/home/stephanie# cat -v /sys/class/dmi/id/sys_vendor | hexdump -C 00000000 44 65 6c 6c 20 49 6e 63 2e 0a |Dell Inc..| 0000000a root@oaktree:/home/stephanie# cat -v /sys/class/dmi/id/product_name | hexdump -C 00000000 4c 61 74 69 74 75 64 65 20 45 36 34 30 30 20 20 |Latitude E6400 | 00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000020 0a |.| 00000021 Running the previous commands in the log gives also: root@oaktree:/home/stephanie# smbios-keyboard-ctl --set-level=10; echo $? Old Keyboard illumination level is: 9 Set Trigger Failed. Failed to write config Error Return Code : cbRES1: 0x-2 cbRES2: 0x0 cbRES3: 0x0 0 Thanks. Adding a quirk for my system and using the same defined quirk makes the backlight operate as normal. Mario, should we add also Dell Latitude E6400 into that quirk list? Or is there any better way? |