1. 29 4月, 2008 4 次提交
    • H
      ACPI: thinkpad-acpi: add sysfs led class support to thinkpad leds (v3.2) · af116101
      Henrique de Moraes Holschuh 提交于
      Add a sysfs led class interface to the led subdriver.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      af116101
    • H
      ACPI: thinkpad-acpi: add sysfs led class support for thinklight (v3.1) · e306501d
      Henrique de Moraes Holschuh 提交于
      Add a sysfs led class interface to the thinklight (light subdriver).
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e306501d
    • H
      ACPI: thinkpad-acpi: claim tpacpi as an official short handle (v1.1) · 95e57ab2
      Henrique de Moraes Holschuh 提交于
      Unfortunately, a lot of stuff in the kernel has size limitations, so
      "thinkpad-acpi" ends up eating up too much real estate.  We were using
      "tpacpi" in symbols already, but this shorthand was not visible to
      userland.
      
      Document that the driver will use tpacpi as a short hand where necessary,
      and use it to name the kernel thread for NVRAM polling (now named
      "ktpacpi_nvramd").
      
      Also, register a module alias with the shorthand.  One can refer to the
      module using the shorthand name.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      95e57ab2
    • H
      ACPI: thinkpad-acpi: BIOS backlight mode helper (v2.1) · b5972796
      Henrique de Moraes Holschuh 提交于
      Lenovo ThinkPads with generic ACPI backlight level control can be easily
      set to react to keyboard brightness key presses in a more predictable way
      than what they do when in "DOS / bootloader" mode after Linux brings
      up the ACPI interface.
      
      The switch to the ACPI backlight mode in the firmware is designed to be
      safe to use only as an one way trapdoor.  One is not to force the firmware
      to switch back to "DOS/bootloader" mode except by rebooting.  The mode
      switch itself is performed by calling any of the ACPI _BCL methods at least
      once.
      
      When in ACPI mode, the backlight firmware just issues (standard) events for
      the brightness up/down hot key presses along with the non-standard HKEY
      events which thinkpad-acpi traps, and doesn't touch the hardware.
      
      thinkpad-acpi will:
      
      1. Place the ThinkPad firmware in ACPI backlight control mode
         if one is available
      2. Suppress HKEY backlight change notifications by default
         to avoid double-reporting when ACPI video is loaded when
         the ThinkPad is in ACPI backlight control mode
      3. Urge the user to load the ACPI video driver
      
      The user is free to use either the ACPI video driver to get the brightness
      key events, or to override the thinkpad-acpi default hotkey mask to get
      them from thinkpad-acpi as well (this will result in duplicate events if
      ACPI video is loaded, so let's hope distros won't screw this up).
      
      Provided userspace is sane, all should work (and *keep* working), which is
      more that can be said about the non-ACPI mode of the new Lenovo ThinkPad
      BIOSes when coupled to current userspace and X.org drivers.
      
      Full guidelines for backlight hot key reporting and use of the
      thinkpad-acpi backlight interface have been added to the documentation.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b5972796
  2. 16 2月, 2008 5 次提交
  3. 09 2月, 2008 1 次提交
  4. 02 2月, 2008 7 次提交
  5. 06 11月, 2007 4 次提交
  6. 20 10月, 2007 2 次提交
  7. 26 9月, 2007 1 次提交
  8. 17 9月, 2007 2 次提交
    • H
      ACPI: thinkpad-acpi: bump up version to 0.16 · 3b0c6485
      Henrique de Moraes Holschuh 提交于
      Name it thinkpad-acpi version 0.16 to avoid any confusion with some 0.15
      thinkpad-acpi development snapshots and backports that had input layer
      support, but no hotkey_report_mode support.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      3b0c6485
    • H
      ACPI: thinkpad-acpi: revert new 2.6.23 CONFIG_THINKPAD_ACPI_INPUT_ENABLED option · ff80f137
      Henrique de Moraes Holschuh 提交于
      Revert new 2.6.23 CONFIG_THINKPAD_ACPI_INPUT_ENABLED Kconfig option because
      it would create a legacy we don't want to support.
      
      CONFIG_THINKPAD_ACPI_INPUT_ENABLED was added to try to fix an issue that is
      now moot with the addition of the netlink ACPI event report interface to
      the ACPI core.
      
      Now that ACPI core can send events over netlink, we can use a different
      strategy to keep backwards compatibility with older userspace, without the
      need for the CONFIG_THINKPAD_ACPI_INPUT_ENABLED games.  And it arrived
      before CONFIG_THINKPAD_ACPI_INPUT_ENABLED made it to a stable mainline
      kernel, even, which is Good.
      
      This patch is in sync with some changes to thinkpad-acpi backports, that
      will keep things sane for userspace across different combinations of kernel
      versions, thinkpad-acpi backports (or the lack thereof), and userspace
      capabilities:
      
      Unless a module parameter is used, thinkpad-acpi will now behave in such a
      way that it will work well (by default) with userspace that still uses only
      the old ACPI procfs event interface and doesn't care for thinkpad-acpi
      input devices.
      
      It will also always work well with userspace that has been updated to use
      both the thinkpad-acpi input devices, and ACPI core netlink event
      interface, regardless of any module parameter.
      
      The module parameter was added to allow thinkpad-acpi to work with
      userspace that has been partially updated to use thinkpad-acpi input
      devices, but not the new ACPI core netlink event interface.  To use this
      mode of hot key reporting, one has to specify the hotkey_report_mode=2
      module parameter.
      
      The thinkpad-acpi driver exports the value of hotkey_report_mode through
      sysfs, as well.  thinkpad-acpi backports to older kernels, that do not
      support the new ACPI core netlink interface, have code to allow userspace
      to switch hotkey_report_mode at runtime through sysfs.  This capability
      will not be provided in mainline thinkpad-acpi as it is not needed there.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Michael S. Tsirkin <mst@dev.mellanox.co.il>
      Cc: Hugh Dickins <hugh@veritas.com>
      Cc: Richard Hughes <hughsient@gmail.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ff80f137
  9. 12 8月, 2007 1 次提交
  10. 22 7月, 2007 13 次提交