1. 16 1月, 2016 1 次提交
  2. 05 1月, 2016 1 次提交
  3. 01 1月, 2016 3 次提交
    • H
      ACPI / video: Add quirks for the Dell Vostro V131 · 4b4b3b20
      Hans de Goede 提交于
      The Dell Vostro V131 has an especially broken acpi-video implementation.
      
      The backlight control bits work, but when the brightness is changed via
      the acpi-video interface the backlight flickers annoyingly before settling
      at the new brightness, switching to using the native interface fixes the
      flickering so add a quirk for this (the vendor interface has the same
      problem).
      
      Brightness keypresses reported through the acpi-video-bus are also broken,
      they get reported one event delayed, so if you press the brightness-up
      hotkey on the keyboard nothing happens, then if you press brightness-down,
      the previous brightness-up event gets reported. Since the keypresses are
      also reported via wmi (if active) and via atkbd (when wmi is not active)
      add a quirk to simply filter out the delayed (broken) events.
      Reported-and-tested-by: NMichał Kępień <kernel@kempniu.pl>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      4b4b3b20
    • H
      ACPI / video: Add a module option to disable the reporting of keypresses · 05bc59a0
      Hans de Goede 提交于
      Add a module option to disable the reporting of keypresses, in some buggy
      firmware implementatinon, the reported events are wrong. E.g. they lag
      reality by one event in the case triggering the writing of this patch.
      
      In this case it is better to not forward these wrong events to userspace
      (esp.) when there is another source of the same events which is not buggy.
      
      Note this is only intended to work around implementations which send
      events which are plain wrong. In some cases we get double events, e.g.
      from both acpi-video and the atkbd driver, in this case acpi-video is
      considered the canonical source, and the events from the other source
      should be filtered (using e.g. /lib/udev/hwdb.d/60-keyboard.hwdb).
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      05bc59a0
    • H
      ACPI / video: Add a acpi_video_handles_brightness_key_presses() helper · 90b066b1
      Hans de Goede 提交于
      Several drivers want to know if the acpi-video is generating key-presses
      for brightness change hotkeys to avoid sending double key-events to
      userspace for these. Currently these driver use this construct for this:
      
      	if (acpi_video_get_backlight_type() == acpi_backlight_vendor)
      		report_brightness_key_event();
      
      This indirect way of detecting if acpi-video is active does not make the
      code easier to understand, and in some cases it is wrong because just
      because the preferred type != vendor does not mean that acpi-video is
      actually listening for brightness events, e.g. there may be no acpi-video
      bus on the system at all.
      
      This commit adds a acpi_video_handles_brightness_key_presses() helper
      function, making the code needing this functionality both easier to read
      and more correct.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      90b066b1
  4. 02 11月, 2015 1 次提交
    • A
      ACPI / video: only register backlight for LCD device · e50b9be1
      Aaron Lu 提交于
      The firmware of ESPRIMO Mobile M9410 has two video output devices that
      have _BCM control method, one is the type of "External Digital Monitor"
      while the other is the type of "Internal/Integrated Digital Flat Panel".
      Only the 2nd video output device's _BCM control method works, but
      since we have created two and the 1st one got picked up by user space,
      the backlight functionality is broken. To solve this problem, only
      register backlight interface for "Internal/Integrated Digital Flat Panel"
      type video output device on this laptop.
      
      Another problem of this laptop is that the IDs listed by the _DOD method
      doesn't have bit 31 set, which means it doesn't follow the format
      specified by ACPI spec. But the value indicates that it actually follows
      that format so I've added a DMI quirk and a module level parameter to
      force use the device_id_scheme so that we can get the video output
      device's type to do the decision if we should register backlight
      interface.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=104121Suggested-by: NHans de Goede <hdegoede@redhat.com>
      Reported-and-tested-by: NChristian Scharl <zahlsum-kernelbugs@yahoo.de>
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e50b9be1
  5. 08 7月, 2015 1 次提交
  6. 19 6月, 2015 6 次提交
  7. 15 6月, 2015 2 次提交
  8. 23 3月, 2015 2 次提交
  9. 04 3月, 2015 2 次提交
  10. 18 2月, 2015 1 次提交
  11. 09 2月, 2015 1 次提交
  12. 20 1月, 2015 1 次提交
  13. 07 1月, 2015 1 次提交
  14. 23 12月, 2014 1 次提交
  15. 15 12月, 2014 1 次提交
  16. 01 12月, 2014 1 次提交
  17. 30 10月, 2014 1 次提交
    • A
      ACPI / video: Run _BCL before deciding registering backlight · dce4ec2e
      Aaron Lu 提交于
      The ASUS K53SM's ACPI table queries _OSI("Windows 2012") in the video
      output device's _BCL and _BCM control method instead of the usual _INI
      functions of the _SB or PCI host bridge PCI0 devices. This made our
      video module thought this is a pre-Win8 system when deciding if we
      should register a backlight interface for it and the end result is that
      a non-working acpi_video interface is registered and user is unable to
      control backlight from GUI. Solve this problem by evaluating _BCL control
      method before doing the decision.
      
      Note that for some Thinkpad systems, the _BCL is also required to be
      evaluated for the hotkey event to be generated no matter if we will
      register an ACPI video backlight interface for it or not. Since the
      thinkpad_acpi module will do this anyway we didn't add such a thing in
      the video module previously. But now with this change here, the
      thinkpad_acpi module is no more necessary for those systems regarding
      backlight functionality.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=85051Reported-and-tested-by: NRalf Jung <post+kernel@ralfj.de>
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      dce4ec2e
  18. 01 10月, 2014 1 次提交
    • A
      ACPI / video: check _DOD list when creating backlight devices · 0b8db271
      Aaron Lu 提交于
      The _DOD method lists which video output device is currently attached so
      we should only care about them and ignore others. An user recently
      reported that there are two acpi_video interfaces appeared on his system
      and one of them doesn't work. From the acpidump, it is found that there
      are more than one video output devices that have _BCM control method but
      the _DOD lists only one of them. So this patch checks if the video output
      device is in the _DOD list and will not create backlight device if it is
      not in the list. Also, we consider the broken _DOD case(reflected by the
      video->attached_count is 0) and do not change behaviour for those broken
      _DOD systems.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=84111
      Reported-and-tested-by: ntrrgc@gmail.com
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      0b8db271
  19. 22 9月, 2014 1 次提交
  20. 04 9月, 2014 1 次提交
  21. 02 9月, 2014 3 次提交
  22. 30 7月, 2014 1 次提交
  23. 21 7月, 2014 2 次提交
  24. 16 7月, 2014 1 次提交
  25. 15 7月, 2014 1 次提交
  26. 08 7月, 2014 2 次提交