1. 01 9月, 2022 1 次提交
  2. 26 8月, 2022 1 次提交
  3. 15 7月, 2022 1 次提交
  4. 12 5月, 2022 1 次提交
  5. 27 4月, 2022 5 次提交
  6. 05 2月, 2022 2 次提交
  7. 22 12月, 2021 3 次提交
  8. 02 12月, 2021 1 次提交
  9. 16 11月, 2021 1 次提交
    • L
      platform/x86: asus-wmi: Add support for custom fan curves · 0f0ac158
      Luke D. Jones 提交于
      Add support for custom fan curves found on some ASUS ROG laptops.
      
      These laptops have the ability to set a custom curve for the CPU
      and GPU fans via two ACPI methods.
      
      This patch adds two pwm<N> attributes to the hwmon sysfs,
      pwm1 for CPU fan, pwm2 for GPU fan. Both are under the hwmon of the
      name `asus_custom_fan_curve`. There is no safety check of the set
      fan curves - this must be done in userspace.
      
      The fans have settings [1,2,3] under pwm<N>_enable:
      1. Enable and write settings out
      2. Disable and use factory fan mode
      3. Same as 2, additionally restoring default factory curve.
      
      Use of 2 means that the curve the user has set is still stored and
      won't be erased, but the laptop will be using its default auto-fan
      mode. Re-enabling the manual mode then activates the curves again.
      
      Notes:
      - pwm<N>_enable = 0 is an invalid setting.
      - pwm is actually a percentage and is scaled on writing to device.
      Signed-off-by: NLuke D. Jones <luke@ljones.dev>
      Link: https://lore.kernel.org/r/20211024033705.5595-2-luke@ljones.devReviewed-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      0f0ac158
  10. 27 10月, 2021 1 次提交
  11. 26 8月, 2021 2 次提交
  12. 20 8月, 2021 1 次提交
  13. 12 8月, 2021 3 次提交
  14. 08 4月, 2021 1 次提交
  15. 24 11月, 2020 1 次提交
  16. 28 10月, 2020 1 次提交
    • S
      platform/x86: asus-wmi: Add support for SW_TABLET_MODE on UX360 · ea856ec2
      Samuel Čavoj 提交于
      The UX360CA has a WMI device id 0x00060062, which reports whether the
      lid is flipped in tablet mode (1) or in normal laptop mode (0).
      
      Add a quirk (quirk_asus_use_lid_flip_devid) for devices on which this
      WMI device should be used to figure out the SW_TABLET_MODE state, as
      opposed to the quirk_asus_use_kbd_dock_devid.
      
      Additionally, the device needs to be queried on resume and restore
      because the firmware does not generate an event if the laptop is put to
      sleep while in tablet mode, flipped to normal mode, and later awoken.
      
      It is assumed other UX360* models have the same WMI device. As such, the
      quirk is applied to devices with DMI_MATCH(DMI_PRODUCT_NAME, "UX360").
      More devices with this feature need to be tested and added accordingly.
      
      The reason for using an allowlist via the quirk mechanism is that the new
      WMI device (0x00060062) is also present on some models which do not have
      a 360 degree hinge (at least FX503VD and GL503VD from Hans' DSTS
      collection) and therefore its presence cannot be relied on.
      Signed-off-by: NSamuel Čavoj <samuel@cavoj.net>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20201020220944.1075530-1-samuel@cavoj.netReviewed-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      ea856ec2
  17. 06 10月, 2020 1 次提交
    • H
      platform/x86: asus-wmi: Fix SW_TABLET_MODE always reporting 1 on many different models · 1797d588
      Hans de Goede 提交于
      Commit b0dbd97d ("platform/x86: asus-wmi: Add support for
      SW_TABLET_MODE") added support for reporting SW_TABLET_MODE using the
      Asus 0x00120063 WMI-device-id to see if various transformer models were
      docked into their keyboard-dock (SW_TABLET_MODE=0) or if they were
      being used as a tablet.
      
      The new SW_TABLET_MODE support (naively?) assumed that non Transformer
      devices would either not support the 0x00120063 WMI-device-id at all,
      or would NOT set ASUS_WMI_DSTS_PRESENCE_BIT in their reply when querying
      the device-id.
      
      Unfortunately this is not true and we have received many bug reports about
      this change causing the asus-wmi driver to always report SW_TABLET_MODE=1
      on non Transformer devices. This causes libinput to think that these are
      360 degree hinges style 2-in-1s folded into tablet-mode. Making libinput
      suppress keyboard and touchpad events from the builtin keyboard and
      touchpad. So effectively this causes the keyboard and touchpad to not work
      on many non Transformer Asus models.
      
      This commit fixes this by using the existing DMI based quirk mechanism in
      asus-nb-wmi.c to allow using the 0x00120063 device-id for reporting
      SW_TABLET_MODE on Transformer models and ignoring it on all other models.
      
      Fixes: b0dbd97d ("platform/x86: asus-wmi: Add support for SW_TABLET_MODE")
      Link: https://patchwork.kernel.org/patch/11780901/
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=209011
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1876997Reported-by: NSamuel Čavoj <samuel@cavoj.net>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      1797d588
  18. 24 9月, 2020 1 次提交
  19. 15 7月, 2020 1 次提交
  20. 10 7月, 2020 1 次提交
  21. 01 6月, 2020 1 次提交
    • C
      platform/x86: asus_wmi: Reserve more space for struct bias_args · 7b91f156
      Chris Chiu 提交于
      On the ASUS laptop UX325JA/UX425JA, most of the media keys are not
      working due to the ASUS WMI driver fails to be loaded. The ACPI error
      as follows leads to the failure of asus_wmi_evaluate_method.
        ACPI BIOS Error (bug): AE_AML_BUFFER_LIMIT, Field [IIA3] at bit offset/length 96/32 exceeds size of target Buffer (96 bits) (20200326/dsopcode-203)
        No Local Variables are initialized for Method [WMNB]
        ACPI Error: Aborting method \_SB.ATKD.WMNB due to previous error (AE_AML_BUFFER_LIMIT) (20200326/psparse-531)
      
      The DSDT for the WMNB part shows that 5 DWORD required for local
      variables and the 3rd variable IIA3 hit the buffer limit.
      
      Method (WMNB, 3, Serialized)
      { ..
          CreateDWordField (Arg2, Zero, IIA0)
          CreateDWordField (Arg2, 0x04, IIA1)
          CreateDWordField (Arg2, 0x08, IIA2)
          CreateDWordField (Arg2, 0x0C, IIA3)
          CreateDWordField (Arg2, 0x10, IIA4)
          Local0 = (Arg1 & 0xFFFFFFFF)
          If ((Local0 == 0x54494E49))
        ..
      }
      
      The limitation is determined by the input acpi_buffer size passed
      to the wmi_evaluate_method. Since the struct bios_args is the data
      structure used as input buffer by default for all ASUS WMI calls,
      the size needs to be expanded to fix the problem.
      Signed-off-by: NChris Chiu <chiu@endlessm.com>
      Reviewed-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      7b91f156
  22. 12 5月, 2020 3 次提交
  23. 08 5月, 2020 1 次提交
  24. 20 3月, 2020 2 次提交
  25. 01 2月, 2020 1 次提交
    • A
      platform/x86: asus-wmi: switch to use <linux/units.h> helpers · f07b9fdf
      Akinobu Mita 提交于
      The asus-wmi driver doesn't implement the thermal device functionality
      directly, so including <linux/thermal.h> just for
      DECI_KELVIN_TO_CELSIUS() is a bit odd.
      
      This switches the asus-wmi driver to use deci_kelvin_to_millicelsius()
      in <linux/units.h>.
      
      The format string is changed from %d to %ld due to function returned
      type.
      
      Link: http://lkml.kernel.org/r/1576386975-7941-4-git-send-email-akinobu.mita@gmail.comSigned-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
      Acked-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Cc: Sujith Thomas <sujith.thomas@intel.com>
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Andy Shevchenko <andy@infradead.org>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Amit Kucheria <amit.kucheria@verdurent.com>
      Cc: Jean Delvare <jdelvare@suse.com>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Keith Busch <kbusch@kernel.org>
      Cc: Jens Axboe <axboe@fb.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Sagi Grimberg <sagi@grimberg.me>
      Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Johannes Berg <johannes.berg@intel.com>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
      Cc: Kalle Valo <kvalo@codeaurora.org>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Luca Coelho <luciano.coelho@intel.com>
      Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
      Cc: Stanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f07b9fdf
  26. 13 1月, 2020 2 次提交