From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Aaron Lu <aaron.lu@intel.com>
Cc: linux-acpi@vger.kernel.org, intel-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
"Daniel Vetter" <daniel@ffwll.ch>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
"Matthew Garrett" <matthew.garrett@nebula.com>,
"Seth Forshee" <seth.forshee@canonical.com>,
"Lee Chun-Yi" <joeyli.kernel@gmail.com>,
"Richard Purdie" <rpurdie@rpsys.net>,
"Igor Gnatenko" <i.gnatenko.brain@gmail.com>,
"Yves-Alexis Perez" <corsac@debian.org>,
"Felipe Contreras" <felipe.contreras@gmail.com>,
"Henrique de Moraes Holschuh" <ibm-acpi@hmh.eng.br>,
"Jani Nikula" <jani.nikula@linux.intel.com>,
"Ben Jencks" <ben@bjencks.net>,
"Steven Newbury" <steve@snewbury.org.uk>,
"James Hogan" <james@albanarts.com>,
"Kamal Mostafa" <kamal@canonical.com>,
"Joerg Platte" <jplatte@naasa.net>,
"Kalle Valo" <kvalo@adurom.com>,
"Martin Steigerwald" <Martin@lichtvoll.de>,
"Jörg Otte" <jrg.otte@gmail.co>
Subject: Re: [PATCH v3 4/4] thinkpad-acpi: fix handle locate for video and query of _BCL
Date: Fri, 27 Sep 2013 12:16:59 -0300 [thread overview]
Message-ID: <20130927151659.GA4140@khazad-dum.debian.net> (raw)
In-Reply-To: <20130926014411.GA14158@aaronlu.linux.com>
On Thu, 26 Sep 2013, Aaron Lu wrote:
> I checked the git log for the commit to use tpacpi_acpi_handle_locate to
> locate video controller's ACPI handle, it's:
>
> commit 122f26726b5e16174bf8a707df14be1d93c49d62
> Author: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> Date: Mon Aug 9 23:48:18 2010 -0300
Yeah...
> So I checked out that commit and found that it shouldn't work either,
> since it has the same problem of the current code.
>
> The ACPI video controller device is given an id of ACPI_VIDEO_HID, but
> it's only known to Linux ACPI, not ACPICA, so the function provided by
> ACPICA acpi_get_devices will not work in this case, as that function will
> really check the control method of _HID under the handle, which does not
> exist no matter if Linux ACPI has added an id to its device structure or
> not. OTOH, the function provided by Linux ACPI acpi_device_hid will see
> the added id. In a word, the add of the HID will not affect the ASL
> namespace layout of the device node(thus, no _HID control method will
> be added to the device node).
Erk. It went broken for a long time, and the users didn't notice(!)...
> commit ff413195e830541afeae469fc866ecd0319abd7e
> Author: Alex Hung <alex.hung@canonical.com>
> Date: Tue Apr 24 16:40:52 2012 +0800
>
> thinkpad-acpi: fix issuing duplicated key events for brightness up/down
>
> The tp_features.bright_acpimode will not be set correctly for brightness
> control because ACPI_VIDEO_HID will not be located in ACPI. As a result,
> a duplicated key event will always be sent. acpi_video_backlight_support()
> is sufficient to detect standard ACPI brightness control.
>
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Until that. And unfortunately I did not connect the dots at the time.
Thanks for explaining the issue properly.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2013-09-27 15:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 9:47 [PATCH v3 0/4] Fix Win8 backlight issue Aaron Lu
2013-09-24 9:47 ` [PATCH v3 1/4] backlight: introduce backlight_device_registered Aaron Lu
2013-09-24 9:47 ` [PATCH v3 2/4] ACPI / video: seperate backlight control and event interface Aaron Lu
2013-09-24 9:54 ` Aaron Lu
2013-10-07 12:09 ` Rafael J. Wysocki
2013-09-24 9:47 ` [PATCH v3 3/4] ACPI / video: Do not register backlight if win8 and native interface exists Aaron Lu
2013-09-25 17:53 ` Rafael J. Wysocki
2013-09-26 5:15 ` Aaron Lu
2013-09-24 9:47 ` [PATCH v3 4/4] thinkpad-acpi: fix handle locate for video and query of _BCL Aaron Lu
2013-09-25 19:58 ` Henrique de Moraes Holschuh
2013-09-26 1:44 ` Aaron Lu
2013-09-27 15:16 ` Henrique de Moraes Holschuh [this message]
2013-09-27 15:20 ` Henrique de Moraes Holschuh
2013-09-27 15:33 ` Yves-Alexis Perez
2013-09-27 18:05 ` Henrique de Moraes Holschuh
2013-09-28 12:28 ` Yves-Alexis Perez
2013-09-24 12:42 ` [PATCH v3 0/4] Fix Win8 backlight issue Igor Gnatenko
2013-09-25 8:29 ` Jörg Otte
2013-09-25 9:17 ` Aaron Lu
2013-09-25 10:41 ` Jani Nikula
2013-09-25 15:51 ` Jörg Otte
2013-09-25 16:17 ` Jani Nikula
2013-09-26 7:49 ` Jörg Otte
2013-09-27 0:26 ` Rafael J. Wysocki
2013-09-28 16:34 ` Jörg Otte
2013-09-27 11:02 ` Mika Westerberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130927151659.GA4140@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=Martin@lichtvoll.de \
--cc=aaron.lu@intel.com \
--cc=ben@bjencks.net \
--cc=corsac@debian.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=felipe.contreras@gmail.com \
--cc=i.gnatenko.brain@gmail.com \
--cc=ibm-acpi@hmh.eng.br \
--cc=intel-gfx@lists.freedesktop.org \
--cc=james@albanarts.com \
--cc=jani.nikula@linux.intel.com \
--cc=joeyli.kernel@gmail.com \
--cc=jplatte@naasa.net \
--cc=jrg.otte@gmail.co \
--cc=kamal@canonical.com \
--cc=kvalo@adurom.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.garrett@nebula.com \
--cc=rjw@sisk.pl \
--cc=rpurdie@rpsys.net \
--cc=seth.forshee@canonical.com \
--cc=steve@snewbury.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox