1. 12 2月, 2015 10 次提交
  2. 11 2月, 2015 1 次提交
  3. 10 2月, 2015 1 次提交
    • A
      toshiba_acpi: Make toshiba_eco_mode_available more robust · 98fc4ec6
      Azael Avalos 提交于
      Some Toshiba laptops do not come with the ECO led installed, however,
      the driver is registering support for it when it should not.
      
      This patch makes the toshiba_eco_mode_available function more robust
      in detecting ECO led capabilities, not registering the led on laptops
      that do not support it and registering the led when it really does.
      
      The ECO led function now returns 0x8e00 (Not Installed) by querying
      with in[3] = 0, whenever theres no physical LED installed, and
      returning 0x8300 (Input Data Error) when it is, however, there are
      some BIOSes that have stub function calls not returning anything and
      and the LED device was being registered too, hence the change of the
      default return value from 1 to 0.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      
      Minor comment update, fixed a whitespace error, s/truly/actual/.
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      98fc4ec6
  4. 08 2月, 2015 2 次提交
  5. 07 2月, 2015 4 次提交
  6. 29 1月, 2015 5 次提交
  7. 24 1月, 2015 7 次提交
  8. 16 12月, 2014 1 次提交
    • R
      platform/x86/acerhdf: Still depends on THERMAL · 200db647
      Randy Dunlap 提交于
      acerhdf uses thermal interfaces so it should depend on THERMAL.
      It also should not select a thermal driver without checking that
      THERMAL is enabled.
      
      This fixes the following build errors when THERMAL=m and
      ACERHDF=y.
      
      drivers/built-in.o: In function `acerhdf_set_mode':
      acerhdf.c:(.text+0x3e02e1): undefined reference to `thermal_zone_device_update'
      drivers/built-in.o: In function `acerhdf_unbind':
      acerhdf.c:(.text+0x3e052d): undefined reference to `thermal_zone_unbind_cooling_device'
      drivers/built-in.o: In function `acerhdf_bind':
      acerhdf.c:(.text+0x3e0593): undefined reference to `thermal_zone_bind_cooling_device'
      drivers/built-in.o: In function `acerhdf_init':
      acerhdf.c:(.init.text+0x1c2f5): undefined reference to `thermal_cooling_device_register'
      acerhdf.c:(.init.text+0x1c360): undefined reference to `thermal_zone_device_register'
      drivers/built-in.o: In function `acerhdf_unregister_thermal':
      acerhdf.c:(.text.unlikely+0x3c67): undefined reference to `thermal_cooling_device_unregister'
      acerhdf.c:(.text.unlikely+0x3c91): undefined reference to `thermal_zone_device_unregister'
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Acked-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      200db647
  9. 04 12月, 2014 9 次提交
    • A
      thinkpad-acpi: Try to use full software mute control · 9a417ec0
      Andy Lutomirski 提交于
      ThinkPads have hardware volume controls and three buttons to control
      them.  (These are separate from the standard mixer.)  By default,
      the buttons are:
      
       - Mute: Mutes the hardware volume control and, on some models,
         generates KEY_MUTE.
      
       - Up: Unmutes, generates KEY_VOLUMEUP, and increases volume if
         applicable.  (Newer thinkpads only have hardware mute/unmute.)
      
       - Down: Unmutes, generates KEY_VOLUMEDOWN, and decreases volume
         if applicable.
      
      This behavior is unfortunate, since modern userspace will also
      handle the hotkeys and change the other mixer.  If the software
      mixer is muted and the hardware mixer is unmuted and you push mute,
      hilarity ensues as they both switch state.
      
      Rather than adding a lot of complex ALSA integration to fix this,
      just disable the special ThinkPad volume controls when possible.
      This turns the mute and volume buttons into regular buttons, and
      standard software controls will work as expected.
      
      ALSA already knows about the mute light on models with a mute light,
      so everything should just work.
      
      This should also allow us to remove _OSI(Linux) for all ThinkPads.
      
      For future reference: It turns out that we can ask ACPI for one of
      three behaviors directly on very new models.  They are "latch" (the
      default), "none" (no automatic control), and "toggle" (mute unmutes
      when muted).  All of the modes besides "none" seem to be a bit
      buggy, though, and there doesn't seem to be a consistent way to get
      any notification when the HW mute state is changed.
      Signed-off-by: NAndy Lutomirski <luto@mit.edu>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      9a417ec0
    • P
      acerhdf: minor clean up · f587f07f
      Peter Feuerer 提交于
        * renamed bios_settings_t to bios_settings, as it is no typedef
        * replaced "unsigned char" by u8 in bios_settings struct for better
          readability.
      
      Cc: platform-driver-x86@vger.kernel.org
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andreas Mohr <andi@lisas.de>
      Acked-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      f587f07f
    • P
      acerhdf: added critical trip point · 7e8b6d73
      Peter Feuerer 提交于
      added critical trip point which represents the temperature limit.
      Added return -EINVAL in case wrong trip point is provided.
      
      Cc: platform-driver-x86@vger.kernel.org
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andreas Mohr <andi@lisas.de>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Javi Merino <javi.merino@arm.com>
      Signed-off-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      7e8b6d73
    • P
      acerhdf: Use bang-bang thermal governor · 48c8dd64
      Peter Feuerer 提交于
      acerhdf has been doing an on-off fan control using hysteresis by
      post-manipulating the outcome of thermal subsystem trip point handling.
      This patch enables acerhdf to use the bang-bang governor, which is
      intended for on-off controlled fans.
      
      Cc: platform-driver-x86@vger.kernel.org
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      CC: Zhang Rui <rui.zhang@intel.com>
      Cc: Andreas Mohr <andi@lisas.de>
      Cc: Javi Merino <javi.merino@arm.com>
      Acked-and-tested-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      48c8dd64
    • P
      acerhdf: Adding support for new models · 7438d990
      Peter Feuerer 提交于
      added following new models:
         * Aspire 5755G
         * AO521
         * AO751h
         * Aspire One 753
         * Extensa 5420
         * Aspire 5315
         * Aspire 5739G
         * TravelMate TM8573T
      
      Cc: platform-driver-x86@vger.kernel.org
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andreas Mohr <andi@lisas.de>
      Acked-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      7438d990
    • P
      acerhdf: Adding support for "manual mode" · 5ef6578c
      Peter Feuerer 提交于
      Some Acer models require an additional command to turn off the fan after
      bios mode has been enabled.  Adding new section in bios table to allow
      support for those models, by writing an extra "manual mode" register.
      
      Cc: platform-driver-x86@vger.kernel.org
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andreas Mohr <andi@lisas.de>
      Acked-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NPeter Feuerer <peter@piie.net>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      5ef6578c
    • P
      dell-smo8800: Add more ACPI ids and change description of driver · e4da9142
      Pali Rohár 提交于
      This patch adds other ACPI ids from Windows inf driver which should be handled
      by dell-smo8800 driver. ACPI devices have same structure -- one IRQ number.
      
      This patch also updates description of module.
      Signed-off-by: NPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      e4da9142
    • P
      platform: x86: dell-laptop: Add support for keyboard backlight · 02b2aaaa
      Pali Rohár 提交于
      This patch adds support for configuring keyboard backlight settings on supported
      Dell laptops. It exports kernel leds interface and uses Dell SMBIOS tokens or
      keyboard class interface.
      
      With this patch it is possible to set:
      * keyboard backlight level
      * timeout after which will be backlight automatically turned off
      * input activity triggers (keyboard, touchpad, mouse) which enable backlight
      * ambient light settings
      
      Settings are exported via sysfs:
      /sys/class/leds/dell::kbd_backlight/
      
      Code is based on newly released documentation by Dell in libsmbios project.
      
      Thanks to Dan Carpenter who reported bug about unpredictable results in
      quirks->kbd_timeouts for loop. His fix adds needs_kbd_timeouts flag to
      quirk structure to indicate if kbd_timeouts array is empty or not.
      Signed-off-by: NPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: NGabriele Mazzotta <gabriele.mzt@gmail.com>
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Minor English corrections to comments.
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      02b2aaaa
    • A
      toshiba_acpi: Add keyboard backlight mode change event · 80546905
      Azael Avalos 提交于
      A previous patch added support to handle more events.
      
      This patch adds support to update the sysfs group whenever we receive
      a 0x92 event, which indicates a change in the keyboard backlight mode,
      removing the update group code from toshiba_kbd_bl_mode_store, as it is
      no longer needed there.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      80546905
反馈
建议
客服 返回
顶部