Bug 101851 - Thinkpad X240 brightness keys broken
Summary: Thinkpad X240 brightness keys broken
Status: CLOSED DOCUMENTED
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Video (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Aaron Lu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 11:20 UTC by Mathieu OTHACEHE
Modified: 2015-08-25 08:44 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.2.0-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg output (62.44 KB, text/plain)
2015-07-23 11:20 UTC, Mathieu OTHACEHE
Details
acpidump (412.38 KB, text/plain)
2015-07-23 11:20 UTC, Mathieu OTHACEHE
Details
proposed patch (1.17 KB, patch)
2015-07-23 11:21 UTC, Mathieu OTHACEHE
Details | Diff

Description Mathieu OTHACEHE 2015-07-23 11:20:00 UTC
Created attachment 183321 [details]
dmesg output

Hi !

I found myself in case described by bug https://bugzilla.kernel.org/show_bug.cgi?id=81691 but with a different laptop.

My Thinkpad X240 has a working acpi_video backlight control, but due to bios claiming win8 support, the native backlight interface (i915) is loaded.

The native interface works as intended, brightness events are sent to userspace but I have nothing set up to handle them (kde, gnome or acpid ...).

Forcing acpi_video to load and handle backlight control, using the quirk described in bug 81691 solves my problem (see patch attached).

Thanks,

Mathieu
Comment 1 Mathieu OTHACEHE 2015-07-23 11:20:48 UTC
Created attachment 183331 [details]
acpidump
Comment 2 Mathieu OTHACEHE 2015-07-23 11:21:07 UTC
Created attachment 183341 [details]
proposed patch
Comment 3 Aaron Lu 2015-07-27 08:59:42 UTC
(In reply to Mathieu OTHACEHE from comment #0)
> Created attachment 183321 [details]
> dmesg output
> 
> Hi !
> 
> I found myself in case described by bug
> https://bugzilla.kernel.org/show_bug.cgi?id=81691 but with a different
> laptop.
> 
> My Thinkpad X240 has a working acpi_video backlight control, but due to bios
> claiming win8 support, the native backlight interface (i915) is loaded.
> 
> The native interface works as intended, brightness events are sent to
> userspace but I have nothing set up to handle them (kde, gnome or acpid ...).

Is it because you do not use kde/gnome?
Comment 4 Mathieu OTHACEHE 2015-07-29 17:50:57 UTC
Yes, with my distrib : Archlinux+openbox, there's no default userspace program to handle brightness events. I have to use xbindkeys like described here http://www.function.fr/advanced-linux-configuration-for-lenovo-thinkpad-x240/

Just tested with gnome and kde, brightness keys are working out of the box.
Comment 5 Aaron Lu 2015-07-30 02:26:58 UTC
If you do not want user space program and prefer the acpi interface, you can add acpi_backlight=video to kernel cmdline on v4.2 kernel or video.use_native_backlight=0 on previous kernel.

I think the intention of the DMI table is for systems that its native interface should work but actually didn't and only acpi_video interface works. This isn't the case here and people of this laptop using GNOME/KDE shouldn't have this problem, so I prefer not to add it to the DMI table. Are you OK with this?
Comment 6 Aaron Lu 2015-08-19 09:28:54 UTC
I'll close it as documented.
Comment 7 Mathieu OTHACEHE 2015-08-25 08:00:04 UTC
Ok, thanks for your answer. The kernel cmdline solution is working fine !
Comment 8 Aaron Lu 2015-08-25 08:44:52 UTC
(In reply to Mathieu OTHACEHE from comment #7)
> Ok, thanks for your answer. The kernel cmdline solution is working fine !

Good to know this, thanks!

Note You need to log in before you can comment on or make changes to this bug.