1. 04 2月, 2018 1 次提交
  2. 28 12月, 2017 1 次提交
    • H
      ACPI / video: Default lcd_only to true on Win8-ready and newer machines · 5928c281
      Hans de Goede 提交于
      We're seeing a lot of bogus backlight interfaces on newer machines without
      a LCD such as desktops, servers and HDMI sticks. This causes userspace to
      show a non-functional brightness slider in e.g. the GNOME3 system menu,
      which is undesirable. And, in general, we should simply just not register
      a non functional backlight interface.
      
      Checking the LCD flag causes the bogus acpi_video backlight interfaces to
      go away (on the machines this was tested on).
      
      This change sets the lcd_only option by default on any machines which
      are Win8-ready, to fix this.
      
      This is not entirely without a risk of regressions, but video_detect.c
      already prefers native-backlight interfaces over the acpi_video one
      on Win8-ready machines, calling acpi_video_unregister_backlight() as soon
      as a native interface shows up. This is done because the ACPI backlight
      interface often is broken on Win8-ready machines, because win8 does not
      seem to actually use it.
      
      So in practice we already end up not registering the ACPI backlight
      interface on (most) Win8-ready machines with a LCD panel, thus this
      change does not change anything for (most) machines with a LCD panel
      and on machines without a LCD panel we actually don't want to register
      any backlight interfaces.
      
      This has been tested on the following machines and fixes a bogus backlight
      interface showing up there:
       - Desktop with an Asrock B150M Pro4S/D3 m.b. using i5-6500 builtin gfx
       - Intel Compute Stick STK1AW32SC
       - Meegopad T08 HDMI stick
      
      Bogus backlight interfaces have also been reported on:
       - Desktop with Asus H87I-Plus m.b.
       - Desktop with ASRock B75M-ITX m.b.
       - Desktop with Gigabyte Z87-D3HP m.b.
       - Dell PowerEdge T20 desktop
      
      Link: https://bugzilla.redhat.com/show_bug.cgi?id=1097436
      Link: https://bugzilla.redhat.com/show_bug.cgi?id=1133327
      Link: https://bugzilla.redhat.com/show_bug.cgi?id=1133329
      Link: https://bugzilla.redhat.com/show_bug.cgi?id=1133646Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      5928c281
  3. 14 9月, 2017 1 次提交
  4. 20 4月, 2017 1 次提交
  5. 19 4月, 2017 1 次提交
  6. 25 12月, 2016 1 次提交
  7. 17 11月, 2016 1 次提交
  8. 22 6月, 2016 1 次提交
  9. 30 5月, 2016 1 次提交
  10. 05 5月, 2016 1 次提交
  11. 10 3月, 2016 1 次提交
  12. 16 1月, 2016 4 次提交
  13. 05 1月, 2016 1 次提交
  14. 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
  15. 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
  16. 08 7月, 2015 1 次提交
  17. 19 6月, 2015 6 次提交
  18. 15 6月, 2015 2 次提交
  19. 23 3月, 2015 2 次提交
  20. 04 3月, 2015 2 次提交
  21. 18 2月, 2015 1 次提交
  22. 09 2月, 2015 1 次提交
  23. 20 1月, 2015 1 次提交
  24. 07 1月, 2015 1 次提交
  25. 23 12月, 2014 1 次提交
  26. 15 12月, 2014 1 次提交
  27. 01 12月, 2014 1 次提交