]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35
authorHans de Goede <hdegoede@redhat.com>
Fri, 12 Jul 2019 10:00:33 +0000 (12:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 16 Jul 2019 15:30:09 +0000 (17:30 +0200)
commit01b90952cb7f41b2522e700ad2805f1255447e11
tree413fc3dfbf5f5a0a16336543ce55b762eabf1172
parent2016ba9bf9f315a919cd86ac33fbbb34d6950a09
ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35

Some machines change the brightness themselves when a brightness hotkey
gets pressed, despite us telling them not to. This causes the brightness to
go two steps up / down when the hotkey is pressed. This is esp. a problem
on older machines with only a few brightness levels.

This commit adds a new hw_changes_brightness quirk which makes
acpi_video_device_notify() only call backlight_force_update(...,
BACKLIGHT_UPDATE_HOTKEY) and not do anything else, notifying userspace
that the brightness was changed and leaving it at that fixing the dual
step problem.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=204077
Reported-by: Kacper Piwiński <cosiekvfj@o2.pl>
Tested-by: Kacper Piwiński <cosiekvfj@o2.pl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c