1. 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
  2. 26 7月, 2013 1 次提交
  3. 19 7月, 2013 1 次提交
  4. 18 7月, 2013 3 次提交
  5. 20 6月, 2013 1 次提交
  6. 10 6月, 2013 1 次提交
  7. 02 6月, 2013 2 次提交
  8. 12 5月, 2013 1 次提交
  9. 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
  10. 22 4月, 2013 1 次提交
  11. 25 3月, 2013 4 次提交
  12. 26 1月, 2013 2 次提交
  13. 05 12月, 2012 1 次提交
  14. 03 11月, 2012 1 次提交
  15. 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
  16. 30 6月, 2012 1 次提交
  17. 02 6月, 2012 3 次提交
  18. 31 3月, 2012 2 次提交
  19. 13 1月, 2012 1 次提交
  20. 17 7月, 2011 1 次提交
  21. 14 7月, 2011 1 次提交
  22. 10 5月, 2011 1 次提交
  23. 31 3月, 2011 1 次提交
  24. 29 3月, 2011 1 次提交
  25. 23 3月, 2011 2 次提交
  26. 14 12月, 2010 3 次提交
  27. 16 11月, 2010 1 次提交