Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-23 Thread Yves-Alexis Perez
On mar., 2013-09-17 at 17:23 +0800, Aaron Lu wrote:
 v1 has the subject of Rework ACPI video driver and is posted here:
 http://lkml.org/lkml/2013/9/9/74
 Since the objective is really to fix Win8 backlight issues, I changed
 the subject in this version, sorry about that.
 
 This patchset has three patches, the first introduced a new API named
 backlight_device_registered in backlight layer that can be used for
 backlight interface provider module to check if a specific type
 backlight
 interface has been registered, see changelog for patch 1/3 for
 details.
 Then patch 2/3 does the cleanup to sepeate the backlight control and
 event delivery functionality in the ACPI video module and patch 3/3
 solves some Win8 backlight control problems by avoiding register ACPI
 video's backlight interface if:
 1 Kernel cmdline option acpi_backlight=video is not given;
 2 This is a Win8 system;
 3 Native backlight control interface exists.

I've tested this on my x230 (using pure UEFI with CSM disabled). As far
as I can tell, it works as I would expect:

- brightness keys work in initramfs, in console after boot, in lightdm
prompt and in Xfce (wether or not xfce4-power-manager is running).

I don't have brightness notifications (from xfce4-power-manager) but I
don't usually need them so I'm fine with that.

Regards,
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-23 Thread Aaron Lu
On 09/18/2013 08:36 PM, Igor Gnatenko wrote:
 On Wed, 2013-09-18 at 20:31 +0800, Aaron Lu wrote:
 On 09/18/2013 02:30 PM, Igor Gnatenko wrote:
 On Wed, 2013-09-18 at 09:03 +0800, Aaron Lu wrote:
 On 09/17/2013 09:34 PM, Igor Gnatenko wrote:

 Aaron, how about fix indicator on ThinkPads ?

 Can you please describe the problem in detail, is it that when you
 adjust brightness level through hotkey, there is no GUI indication?
 Thanks.

 -Aaron

 Yes. On my ThinkPad X230 I pressing backlight hotkeys. Actually
 brightnes changing, but have no indicator in GUI.

 Oh, that's still the problem of _BCL not getting executed once for
 Lenovo thinkpad laptops. I borrowed a Thinkpad X1 this afternoon and can
 reproduce this, I'll take a look at this issue. The thinkpad-acpi module
 already has a call to _BCL but somehow that doesn't happen.

 Since it's national holidays here, I'll check this issue when I got back
 to work on this Saturday. Thanks for the quick test :-)
 Thanks. No problem ;-)

Here is a quick fix for thinkpad-acpi.c:
https://github.com/aaronlu/linux acpi_video_win8
commit thinkpad-acpi: fix handle locate for video and query of _BCL.

Note that it is a separate issue specifically for thinkpad so I'll
submit that patch in another thread.

Thanks,
Aaron
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-23 Thread Igor Gnatenko
On Sun, 2013-09-22 at 17:10 +0800, Aaron Lu wrote:
 On 09/18/2013 08:36 PM, Igor Gnatenko wrote:
  On Wed, 2013-09-18 at 20:31 +0800, Aaron Lu wrote:
  On 09/18/2013 02:30 PM, Igor Gnatenko wrote:
  On Wed, 2013-09-18 at 09:03 +0800, Aaron Lu wrote:
  On 09/17/2013 09:34 PM, Igor Gnatenko wrote:
 
  Aaron, how about fix indicator on ThinkPads ?
 
  Can you please describe the problem in detail, is it that when you
  adjust brightness level through hotkey, there is no GUI indication?
  Thanks.
 
  -Aaron
 
  Yes. On my ThinkPad X230 I pressing backlight hotkeys. Actually
  brightnes changing, but have no indicator in GUI.
 
  Oh, that's still the problem of _BCL not getting executed once for
  Lenovo thinkpad laptops. I borrowed a Thinkpad X1 this afternoon and can
  reproduce this, I'll take a look at this issue. The thinkpad-acpi module
  already has a call to _BCL but somehow that doesn't happen.
 
  Since it's national holidays here, I'll check this issue when I got back
  to work on this Saturday. Thanks for the quick test :-)
  Thanks. No problem ;-)
 
 Here is a quick fix for thinkpad-acpi.c:
 https://github.com/aaronlu/linux acpi_video_win8
 commit thinkpad-acpi: fix handle locate for video and query of _BCL.
 
 Note that it is a separate issue specifically for thinkpad so I'll
 submit that patch in another thread.
 
 Thanks,
 Aaron
Excellent! I've tested 3 patches from this patchset + 1 latest patch
from you branch and it is works fine. Regulating and indicating works
OK.

Thank you. I think you need to make new patch-set within 4 patches.

-- 
Igor Gnatenko
Fedora release 20 (Heisenbug)
Linux 3.12.0-0.rc1.git0.1.fc20.x86_64

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-19 Thread Aaron Lu
On 09/18/2013 02:30 PM, Igor Gnatenko wrote:
 On Wed, 2013-09-18 at 09:03 +0800, Aaron Lu wrote:
 On 09/17/2013 09:34 PM, Igor Gnatenko wrote:

 Aaron, how about fix indicator on ThinkPads ?

 Can you please describe the problem in detail, is it that when you
 adjust brightness level through hotkey, there is no GUI indication?
 Thanks.

 -Aaron
 
 Yes. On my ThinkPad X230 I pressing backlight hotkeys. Actually
 brightnes changing, but have no indicator in GUI.

Oh, that's still the problem of _BCL not getting executed once for
Lenovo thinkpad laptops. I borrowed a Thinkpad X1 this afternoon and can
reproduce this, I'll take a look at this issue. The thinkpad-acpi module
already has a call to _BCL but somehow that doesn't happen.

Since it's national holidays here, I'll check this issue when I got back
to work on this Saturday. Thanks for the quick test :-)

-Aaron
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-19 Thread Igor Gnatenko
On Wed, 2013-09-18 at 20:31 +0800, Aaron Lu wrote:
 On 09/18/2013 02:30 PM, Igor Gnatenko wrote:
  On Wed, 2013-09-18 at 09:03 +0800, Aaron Lu wrote:
  On 09/17/2013 09:34 PM, Igor Gnatenko wrote:
 
  Aaron, how about fix indicator on ThinkPads ?
 
  Can you please describe the problem in detail, is it that when you
  adjust brightness level through hotkey, there is no GUI indication?
  Thanks.
 
  -Aaron
  
  Yes. On my ThinkPad X230 I pressing backlight hotkeys. Actually
  brightnes changing, but have no indicator in GUI.
 
 Oh, that's still the problem of _BCL not getting executed once for
 Lenovo thinkpad laptops. I borrowed a Thinkpad X1 this afternoon and can
 reproduce this, I'll take a look at this issue. The thinkpad-acpi module
 already has a call to _BCL but somehow that doesn't happen.
 
 Since it's national holidays here, I'll check this issue when I got back
 to work on this Saturday. Thanks for the quick test :-)
Thanks. No problem ;-)
 
 -Aaron


-- 
Igor Gnatenko
Fedora release 20 (Heisenbug)
Linux 3.11.1-300.fc20.x86_64

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-18 Thread Aaron Lu
On 09/17/2013 09:34 PM, Igor Gnatenko wrote:
 On Tue, 2013-09-17 at 17:23 +0800, Aaron Lu wrote:
 v1 has the subject of Rework ACPI video driver and is posted here:
 http://lkml.org/lkml/2013/9/9/74
 Since the objective is really to fix Win8 backlight issues, I changed
 the subject in this version, sorry about that.

 This patchset has three patches, the first introduced a new API named
 backlight_device_registered in backlight layer that can be used for
 backlight interface provider module to check if a specific type backlight
 interface has been registered, see changelog for patch 1/3 for details.
 Then patch 2/3 does the cleanup to sepeate the backlight control and
 event delivery functionality in the ACPI video module and patch 3/3
 solves some Win8 backlight control problems by avoiding register ACPI
 video's backlight interface if:
 1 Kernel cmdline option acpi_backlight=video is not given;
 2 This is a Win8 system;
 3 Native backlight control interface exists.

 Technically, patch 2/3 is not required to fix the issue here. So if you
 think it is not necessary, I can remove it from the series.

 Apply on top of v3.12-rc1.

 Aaron Lu (3):
   backlight: introduce backlight_device_registered
   ACPI / video: seperate backlight control and event interface
   ACPI / video: Do not register backlight if win8 and native interface
 exists

  drivers/acpi/internal.h |   5 +-
  drivers/acpi/video.c| 442 
 
  drivers/acpi/video_detect.c |  14 +-
  drivers/video/backlight/backlight.c |  31 +++
  include/acpi/video.h|   2 +
  include/linux/backlight.h   |   4 +
  6 files changed, 300 insertions(+), 198 deletions(-)

 
 Aaron, how about fix indicator on ThinkPads ?

Can you please describe the problem in detail, is it that when you
adjust brightness level through hotkey, there is no GUI indication?
Thanks.

-Aaron
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-18 Thread Igor Gnatenko
On Wed, 2013-09-18 at 09:03 +0800, Aaron Lu wrote:
 On 09/17/2013 09:34 PM, Igor Gnatenko wrote:
  On Tue, 2013-09-17 at 17:23 +0800, Aaron Lu wrote:
  v1 has the subject of Rework ACPI video driver and is posted here:
  http://lkml.org/lkml/2013/9/9/74
  Since the objective is really to fix Win8 backlight issues, I changed
  the subject in this version, sorry about that.
 
  This patchset has three patches, the first introduced a new API named
  backlight_device_registered in backlight layer that can be used for
  backlight interface provider module to check if a specific type backlight
  interface has been registered, see changelog for patch 1/3 for details.
  Then patch 2/3 does the cleanup to sepeate the backlight control and
  event delivery functionality in the ACPI video module and patch 3/3
  solves some Win8 backlight control problems by avoiding register ACPI
  video's backlight interface if:
  1 Kernel cmdline option acpi_backlight=video is not given;
  2 This is a Win8 system;
  3 Native backlight control interface exists.
 
  Technically, patch 2/3 is not required to fix the issue here. So if you
  think it is not necessary, I can remove it from the series.
 
  Apply on top of v3.12-rc1.
 
  Aaron Lu (3):
backlight: introduce backlight_device_registered
ACPI / video: seperate backlight control and event interface
ACPI / video: Do not register backlight if win8 and native interface
  exists
 
   drivers/acpi/internal.h |   5 +-
   drivers/acpi/video.c| 442 
  
   drivers/acpi/video_detect.c |  14 +-
   drivers/video/backlight/backlight.c |  31 +++
   include/acpi/video.h|   2 +
   include/linux/backlight.h   |   4 +
   6 files changed, 300 insertions(+), 198 deletions(-)
 
  
  Aaron, how about fix indicator on ThinkPads ?
 
 Can you please describe the problem in detail, is it that when you
 adjust brightness level through hotkey, there is no GUI indication?
 Thanks.
 
 -Aaron

Yes. On my ThinkPad X230 I pressing backlight hotkeys. Actually
brightnes changing, but have no indicator in GUI.

-- 
Igor Gnatenko
Fedora release 20 (Heisenbug)
Linux 3.11.1-300.fc20.x86_64

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-17 Thread Igor Gnatenko
On Tue, 2013-09-17 at 17:23 +0800, Aaron Lu wrote:
 v1 has the subject of Rework ACPI video driver and is posted here:
 http://lkml.org/lkml/2013/9/9/74
 Since the objective is really to fix Win8 backlight issues, I changed
 the subject in this version, sorry about that.
 
 This patchset has three patches, the first introduced a new API named
 backlight_device_registered in backlight layer that can be used for
 backlight interface provider module to check if a specific type backlight
 interface has been registered, see changelog for patch 1/3 for details.
 Then patch 2/3 does the cleanup to sepeate the backlight control and
 event delivery functionality in the ACPI video module and patch 3/3
 solves some Win8 backlight control problems by avoiding register ACPI
 video's backlight interface if:
 1 Kernel cmdline option acpi_backlight=video is not given;
 2 This is a Win8 system;
 3 Native backlight control interface exists.
 
 Technically, patch 2/3 is not required to fix the issue here. So if you
 think it is not necessary, I can remove it from the series.
 
 Apply on top of v3.12-rc1.
 
 Aaron Lu (3):
   backlight: introduce backlight_device_registered
   ACPI / video: seperate backlight control and event interface
   ACPI / video: Do not register backlight if win8 and native interface
 exists
 
  drivers/acpi/internal.h |   5 +-
  drivers/acpi/video.c| 442 
 
  drivers/acpi/video_detect.c |  14 +-
  drivers/video/backlight/backlight.c |  31 +++
  include/acpi/video.h|   2 +
  include/linux/backlight.h   |   4 +
  6 files changed, 300 insertions(+), 198 deletions(-)
 

Aaron, how about fix indicator on ThinkPads ?

-- 
Igor Gnatenko
Fedora release 20 (Heisenbug)
Linux 3.11.1-300.fc20.x86_64

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH v2 0/3] Fix Win8 backlight issue

2013-09-17 Thread Aaron Lu
v1 has the subject of Rework ACPI video driver and is posted here:
http://lkml.org/lkml/2013/9/9/74
Since the objective is really to fix Win8 backlight issues, I changed
the subject in this version, sorry about that.

This patchset has three patches, the first introduced a new API named
backlight_device_registered in backlight layer that can be used for
backlight interface provider module to check if a specific type backlight
interface has been registered, see changelog for patch 1/3 for details.
Then patch 2/3 does the cleanup to sepeate the backlight control and
event delivery functionality in the ACPI video module and patch 3/3
solves some Win8 backlight control problems by avoiding register ACPI
video's backlight interface if:
1 Kernel cmdline option acpi_backlight=video is not given;
2 This is a Win8 system;
3 Native backlight control interface exists.

Technically, patch 2/3 is not required to fix the issue here. So if you
think it is not necessary, I can remove it from the series.

Apply on top of v3.12-rc1.

Aaron Lu (3):
  backlight: introduce backlight_device_registered
  ACPI / video: seperate backlight control and event interface
  ACPI / video: Do not register backlight if win8 and native interface
exists

 drivers/acpi/internal.h |   5 +-
 drivers/acpi/video.c| 442 
 drivers/acpi/video_detect.c |  14 +-
 drivers/video/backlight/backlight.c |  31 +++
 include/acpi/video.h|   2 +
 include/linux/backlight.h   |   4 +
 6 files changed, 300 insertions(+), 198 deletions(-)

-- 
1.8.4.12.g2ea3df6

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel