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

2014-05-17 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

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

2014-05-17 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

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

2014-05-17 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

[PATCH v2 0/3] Add acpi_video_unregister_backlight(), use in acer-wmi

2014-05-17 Thread Hans de Goede
Hi All, Here is a v2 of my patch series to fix: https://bugzilla.kernel.org/show_bug.cgi?id=35622 https://bugzilla.redhat.com/show_bug.cgi?id=1012674 I think its best if the entire series goes upstream through the acpi tree since the platform/x86 patches depend on the acpi changes. Changes

[PATCH 0/2] dell-wmi: Add support for Fn key combinations

2014-05-17 Thread Pali Rohár
This patch series add support for Fn key combinations to dell-wmi driver. I tested this patch series on laptop Dell Latitude E6440. Here is Bios DMI table which contains scancode to keycode mapping: Handle 0xB200, DMI type 178, 80 bytes OEM-specific Type Header and Data:

[PATCH 1/2] Input: Add keycodes for some missing Fn key combinations

2014-05-17 Thread Pali Rohár
There are already defined some Fn key combinations, but not all. This patch adds missing combinations for support in dell-wmi driver. Signed-off-by: Pali Rohár pali.ro...@gmail.com --- include/uapi/linux/input.h |6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 2/2] dell-wmi: Add support for Fn key combinations

2014-05-17 Thread Pali Rohár
Bios DMI table contains scancodes for some Fn key combinations. But corresponding keycodes in DMI table have same value 255. And dell-wmi driver map value 255 to KEY_PROG3. This means that it is not possible to distinguish between Fn key combinations (e.g Fn+Q and Fn+W), because kernel reports for

Re: [PATCH 1/2] Input: Add keycodes for some missing Fn key combinations

2014-05-17 Thread Dmitry Torokhov
Hi Pali, On Sat, May 17, 2014 at 04:43:36PM +0200, Pali Rohár wrote: There are already defined some Fn key combinations, but not all. This patch adds missing combinations for support in dell-wmi driver. Signed-off-by: Pali Rohár pali.ro...@gmail.com --- include/uapi/linux/input.h |6

Re: [PATCH 1/2] Input: Add keycodes for some missing Fn key combinations

2014-05-17 Thread Pali Rohár
On Saturday 17 May 2014 22:30:54 Dmitry Torokhov wrote: Hi Pali, On Sat, May 17, 2014 at 04:43:36PM +0200, Pali Rohár wrote: There are already defined some Fn key combinations, but not all. This patch adds missing combinations for support in dell-wmi driver. Signed-off-by: Pali

Re: [PATCH 1/2] Input: Add keycodes for some missing Fn key combinations

2014-05-17 Thread Dmitry Torokhov
On Sat, May 17, 2014 at 10:38:30PM +0200, Pali Rohár wrote: On Saturday 17 May 2014 22:30:54 Dmitry Torokhov wrote: Hi Pali, On Sat, May 17, 2014 at 04:43:36PM +0200, Pali Rohár wrote: There are already defined some Fn key combinations, but not all. This patch adds missing