1. 07 11月, 2013 1 次提交
  2. 26 10月, 2013 1 次提交
  3. 16 10月, 2013 2 次提交
    • A
      ACPI / video: Do not register backlight if win8 and native interface exists · fbc9fe1b
      Aaron Lu 提交于
      According to Matthew Garrett, "Windows 8 leaves backlight control up
      to individual graphics drivers rather than making ACPI calls itself.
      There's plenty of evidence to suggest that the Intel driver for
      Windows [8] doesn't use the ACPI interface, including the fact that
      it's broken on a bunch of machines when the OS claims to support
      Windows 8.  The simplest thing to do appears to be to disable the
      ACPI backlight interface on these systems".
      
      So for Win8 systems, if there is native backlight control interface
      registered by GPU driver, ACPI video does not need to register its own.
      Since there are systems that don't work well with this approach, a
      parameter for video module named use_native_backlight is introduced and
      has the value of false by default. For users who have a broken ACPI
      video backlight interface, video.use_native_backlight=1 is needed in
      kernel cmdline.
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      fbc9fe1b
    • A
      ACPI / video: seperate backlight control and event interface · 67b662e1
      Aaron Lu 提交于
      The backlight control and event delivery functionality provided by ACPI
      video module is mixed together and registered all during video device
      enumeration time. As a result, the two functionality are also removed
      together on module unload time or by the acpi_video_unregister function.
      The two functionalities are actually independent and one may be useful
      while the other one may be broken, so it is desirable to seperate the
      two functionalities such that it is clear and easy to disable one
      functionality without affecting the other one.
      
      APIs to selectively remove backlight control interface and/or event
      delivery functionality can be easily added once needed.
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      67b662e1
  4. 23 8月, 2013 1 次提交
  5. 05 8月, 2013 1 次提交
    • F
      ACPI / video: improve quirk check in acpi_video_bqc_quirk() · b3b301c5
      Felipe Contreras 提交于
      If the _BCL package ordering is descending, the first level
      (br->levels[2]) is likely to be 0, and if the number of levels
      matches the number of steps, we might confuse a returned level to
      mean the index.
      
      For example:
      
        current_level = max_level = 100
        test_level = 0
        returned level = 100
      
      In this case 100 means the level, not the index, and _BCM failed.
      Still, if the _BCL package ordering is descending, the index of
      level 0 is also 100, so we assume _BQC is indexed, when it's not.
      
      This causes all _BQC calls to return bogus values causing weird
      behavior from the user's perspective.  For example:
      
      xbacklight -set 10; xbacklight -set 20;
      
      would flash to 90% and then slowly down to the desired level (20).
      
      The solution is simple; test anything other than the first level
      (e.g. 1).
      
      [rjw: Changelog]
      Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b3b301c5
  6. 04 8月, 2013 4 次提交
  7. 26 7月, 2013 1 次提交
  8. 19 7月, 2013 1 次提交
  9. 18 7月, 2013 3 次提交
  10. 15 7月, 2013 3 次提交
  11. 20 6月, 2013 1 次提交
  12. 10 6月, 2013 1 次提交
  13. 02 6月, 2013 2 次提交
  14. 12 5月, 2013 1 次提交
  15. 25 4月, 2013 1 次提交
    • A
      ACPI: video: correct acpi_video_bus_add error processing · 91e13aa3
      Aaron Lu 提交于
      acpi_video_bus_get_devices() may fail due to some video output device
      doesn't have the _ADR method, and in this case, the error processing
      is to simply free the video structure in acpi_video_bus_add(), while
      leaving those already registered video output devices in the wild,
      which means for some video output device, we have already registered
      a backlight interface and installed a notification handler for it.
      So it can happen when user is using this system, on hotkey pressing,
      the notification handler will send a keycode through a non-existing
      input device, causing kernel freeze.
      
      To solve this problem, free all those already registered video output
      devices once something goes wrong in acpi_video_bus_get_devices(), so
      that no wild backlight interfaces and notification handlers exist.
      
      References: https://bugzilla.kernel.org/show_bug.cgi?id=51731
      Reported-and-tested-by: <i-tek@web.de>
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      91e13aa3
  16. 22 4月, 2013 1 次提交
  17. 25 3月, 2013 4 次提交
  18. 26 1月, 2013 2 次提交
  19. 05 12月, 2012 1 次提交
  20. 03 11月, 2012 1 次提交
  21. 21 9月, 2012 1 次提交
    • L
      ACPI video: allow events handlers to veto the keypress · 8a37c65d
      Luca Tettamanti 提交于
      The standard video events may be overloaded for device specific
      purposes. For example AMD ACPI interface overloads
      ACPI_VIDEO_NOTIFY_PROBE (0x81) to signal AMD-specific events. In such
      cases we don't want to send the keypress (KEY_SWITCHVIDEOMODE) to the
      userspace because the user did not press the mode switch key (the
      spurious keypress confuses the DE which usually changes the
      display configuration and messes up a dual-screen setup).
      This patch gives the handlers the chance to examine the event and
      block the keypress if the event is device specific.
      v2: refactor as suggested by Zhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLuca Tettamanti <kronos.it@gmail.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      8a37c65d
  22. 30 6月, 2012 1 次提交
  23. 02 6月, 2012 3 次提交
  24. 31 3月, 2012 2 次提交