[RFC 0/3] Add acpi_video_unregister_backlight and use it in acer-wmi

2014-05-12 Thread Hans de Goede
Hi Aaron and Lee, While working on figuring out howto fix this Acer backlight bug properly: https://bugzilla.redhat.com/show_bug.cgi?id=1012674 TL;DR: needs acpi-video to not register the backlight device, but keep it processing hotkeys, like video.use_native_backlight=1 does, but this machine

[RFC 3/3] acer-wmi: Add Aspire 5741 to video_vendor_dmi_table

2014-05-12 Thread Hans de Goede
The Aspire 5741 has broken acpi-video backlight control, so add it to the quirk table. https://bugzilla.redhat.com/show_bug.cgi?id=1012674 Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/platform/x86/acer-wmi.c | 8 1 file changed, 8 insertions(+) diff --git

[RFC 2/3] acer-wmi: Switch to acpi_video_unregister_backlight

2014-05-12 Thread Hans de Goede
Switch from acpi_video_unregister(), to acpi_video_unregister_backlight(), so that the hotkeys handler registered by acpi-video stays in place. Since there are no mappings for the atkbd raw codes for the brightness keys used by newer Acer models in /lib/udev/hwdb.d/60-keyboard.hwdb, and since we

[RFC 1/3] acpi-video: Add an acpi_video_unregister_backlight function

2014-05-12 Thread Hans de Goede
Add an acpi_video_unregister_backlight function, which only unregisters the backlight device, and leaves the acpi_notifier in place. Some acpi_vendor driver need this as they don't want the acpi_video# backlight device, but do need the acpi-video driver for hotkey handling. Chances are that this