On Tue, October 7, 2014 4:38 pm, Mike Larkin wrote:
> On Tue, Oct 07, 2014 at 03:22:18PM -0400, Joe Gidi wrote:
>> Hello,
>>
>> I have a ThinkPad x131e (Intel version) that generally works beautifully
>> under OpenBSD. The only quirk I've noticed so far is that the brightness
>> hotkeys (Fn-F8 and Fn-F9) don't work to control the backlight
>> brightness.
>> I am able to adjust the backlight via the xbacklight utility, though.
>>
>> The brightness hotkeys don't trigger keypress events in xev like the
>> audio
>> hotkeys do, so I assume they instead generate ACPI events.
>>
>> It appears that I may need to add some defines to
>> src/sys/dev/acpi/acpithinkpad.c to recognize the proper ACPI events, but
>> I'm not clear on how I determine the right defines to add. Can someone
>> point me in the right direction?
>>
>
> Try adding a printf to the big set of case statements in acpithinkpad.c
> that ends with handled=1; - You'll then see which of the ones in there is
> being generated (if any). You'd already be seeing the default case printf,
> that's why I think it's one of those that are all marked as handled
> without
> us doing anything.
>
> If it's not that, we'll have to dig deeper.
>
> -ml

Hi Mike,

Theo actually had me do exactly that, and we confirmed that my system is
generating these ACPI events that are already defined:
#define THINKPAD_BUTTON_BRIGHTNESS_UP   0x1010
#define THINKPAD_BUTTON_BRIGHTNESS_DOWN 0x1011

So, per Theo, it appears that the problem might be with the video driver
and not the ACPI Thinkpad driver. Please let me know if there's any other
info I can provide or any tests that would be useful.

Thanks,

-- 
Joe Gidi
j...@entropicblur.com

"You cannot buy skill." -- Ross Seyfried

Reply via email to